UK Dialplan

I have asterisk based dialer that has generated dialplan on it but the dial plan is only working for US calling. I plan to modify the default dialplan for UK calling but I having hard time to get it working, is anyone could help me on this. Any reply would be great. Thanks

Here’s the default dial plan

; The following tags can be used to substitute corresponding values from the carrier options.

; Format long distance number (add default prefix).
exten => _1NXXNXXXXXX,1,Goto(<DEFAULT_PREFIX>${EXTEN:1},1)

; Format long distance number (prefix dialed, 1 missing)
exten => _NNXXNXXXXXX,1,Goto(${EXTEN:0:1}1${EXTEN:1},1)

; Format long distance number (add default prefix, add 1).

; Format local number (add 1, add default areacode)
exten => _XNXXXXXX,1,Goto(${EXTEN:0:1}1<DEFAULT_AREACODE>${EXTEN:1},1)

; Format local number (add default prefix, add 1, add default areacode).

; Format international number (add default prefix).
exten => _011.,1,Goto(<DEFAULT_PREFIX>${EXTEN},1)
exten => _00.,1,Goto(<DEFAULT_PREFIX>011${EXTEN:2},1)

; Dial long distance number (format correct).
exten => _X1NXXNXXXXXX,1,GotoIf($["<STRIP_MSD>" = “Y”]?setcid${EXTEN:0:1}${EXTEN:2},1:setcid${EXTEN},1)

; Dial an international number (if allowed).
exten => _X011.,1,GotoIf($["<ALLOW_INTERNATIONAL>" = “Y”]?setcid${EXTEN},1)
exten => _X00.,1,Goto(${EXTEN:0:1}011${EXTEN:3},1)

; Make sure callerid is set.
exten => _setcid.,1,GotoIf($["${LEN(${CALLERID(number)})}" = “${LEN(<DEFAULT_CALLERID>)}”]?dial${EXTEN:6},1)
exten => _setcid.,n,Set(CALLERID(number)=<DEFAULT_CALLERID>)
exten => _setcid.,n,Goto(dial${EXTEN:6},1)

; This section is the ‘prefix’ dialed.
exten => _dial9.,1,AGI(agi://
exten => _dial9.,n,Dial(//${EXTEN:5},60,o)
exten => _dial9.,n,Goto(failover${EXTEN:5},1)

Here’s the logs when calling UK numbers

Sep 27 14:44:06] – Goto (osdial,78601000,1)
[Sep 27 14:44:06] – Executing [78601000@osdial:1] MeetMe(“Local/78601000@osdialEXT-c7a4;2”, “8601000,Fq”) in new stack
[Sep 27 14:44:06] – Executing [9011441613549017@OOUTvoxbeam:1] GotoIf(“Local/78601000@osdialEXT-c7a4;1”, “0?setcid9011441613549017,1”) in new stack
[Sep 27 14:44:06] – Auto fallthrough, channel ‘Local/78601000@osdialEXT-c7a4;1’ status is ‘UNKNOWN’
[Sep 27 14:44:06] – Executing [h@OOUTvoxbeam:1] AGI(“Local/78601000@osdialEXT-c7a4;1”, “agi://–HVcauses–PRI-----NODEBUG-----0---------------”) in new stack

This belongs on the Asterisk Support forum, or possibly the Biz & Jobs one (as it may involve too high a level of consultancy).

Normally you would simply pass the number through to the network operator, and let them do all this. If you have special requirements, you need to understand those requirements to a level, where you should be able to code the dialplan yourself (there is nothing that goes beyond Asterisk 101 involved here).