Dial plan for you UK numbers

82 views
Skip to first unread message

Stephen Tyers

unread,
Jun 9, 2017, 7:33:33 AM6/9/17
to 2600hz-users
Hi,

Could somebody please help create a translation pattern to enable UK people to dial local, nation and mobile numbers and have them translated to E164. Would the below be correct, I know uk numbers are a pain and can be either 10 or 11 numbers in length. I think the below is too generic and i think i need a bit more restrictions on some the digits for the UK rather than just 10 or 11. Would this pattern also remove the zero? I'm struggling to find definitive version. Also where exactly is the configuration file to add this. I'm totally new to Kazoo.
Kind regards
Steve
"^0(\\d{10})$":{
    "prefix":"+44"
},
"^+44(\\d{10})$":{
    "prefix":"+44"
}

James Aimonetti

unread,
Jun 9, 2017, 11:42:56 AM6/9/17
to 2600hz...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

You can start reading about phone numbers in Kazoo here:

https://docs.2600hz.com/dev/doc/internationalization/numbers/

Some community members have contributed configs:

EU: https://docs.2600hz.com/dev/doc/internationalization/examples/number_manager/european_union/

Indonesia: https://docs.2600hz.com/dev/doc/internationalization/numbers/indonesia/

And some dialplans to let users dial local (which may be what you want):

Ireland: https://docs.2600hz.com/dev/doc/internationalization/examples/dialplan/IE_Local-National-Mobile/

Netherlands: https://docs.2600hz.com/dev/doc/internationalization/examples/dialplan/NL_Amsterdam/
and https://docs.2600hz.com/dev/doc/internationalization/examples/dialplan/NL_Rotterdam/

Hope those get you going in the right direction! And we'd love to see
what you come up with (and maybe a pull request with docs!) :)
- --
James Aimonetti

Lead Systems Architect
"If Dialyzer don't care, I don't care"
2600HzPDX | http://2600hz.com
sip:ja...@2600hz.com
tel:415.886.7905
irc:mc_ @ freenode
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEvSh+xZ5hP1H8lVIU1Mpr4k9cJWAFAlk6wfYACgkQ1Mpr4k9c
JWAwGQgAml1P9K0m9R/EA7FfEyc+6trtLLejXsQxmtduhFJrya0Xs74IiMW1/jXI
9fMZ7hc/RtRsqZmfcskADbnTyETtLUwYn8CMMT0qawCstu1RBTGDflEMKILiX+nT
v2RKSSfTyR0zHEsJvnHno3Oua0BA4zqswk3fDPZ0AkHXWk0Gy6enRa+0f3DuOl4N
9WzL0VJcxqa5NtuE1XjuCe1bkWvaNUp3eDCvLg10v9dT0HFr+H9SNS3R7l7eyzCi
vaob4aaGuf0uHYJ41+YCktIOKwwUjPGY2DwRjTwNljxxD8TOgkJCmEf2PxPQ6Y4M
LXl2231BPY+WbgycipoWMO5Tezgg6w==
=m5TJ
-----END PGP SIGNATURE-----

Eamon

unread,
Jun 10, 2017, 8:31:38 AM6/10/17
to 2600hz-users


"reconcile_regex": "^\\+?44?\\d{7,}$",

 "e164_converters": {
           "^020(\\d*)$": {
               "description": "London",
               "prefix": "4420"
           },
Reply all
Reply to author
Forward
0 new messages