Page 1 of 1

Custom Dial Plan

PostPosted: Mon Jan 16, 2017 2:09 am
by zenithbsolutions
Hi,

How can I setup a custom dial plan in vicidial / asterisk?

For US I have a diplan entry as below.

exten => _91XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXXXXXXXX,2,Dial(SIP/${EXTEN:1}@voip,,tTo)
exten => _91XXXXXXXXXX,3,Hangup

I can use it as

exten => _91X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91X.,2,Dial(SIP/${EXTEN:1}@voip,,tTo)
exten => _91X.,3,Hangup

where X. accepts any length of numbers.

I have seen some custom dial plans using (for US)

exten => _68681X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _68681X.,2,Dial(SIP/${EXTEN:1}@voip,,tTo)
exten => _68681X.,3,Hangup

or (for UK)

exten => _787844X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _787844X.,2,Dial(SIP/${EXTEN:1}@voip,,tTo)
exten => _787844X.,3,Hangup

Where 6868 is for US and 7878 is for UK which they customarily created and still successfully make the calls to US & UK.

How can I achieve it? Did they modified it in any asterisk config file and suggest me a sample config if possible. Thank you.

Re: Custom Dial Plan

PostPosted: Tue Jan 17, 2017 8:16 am
by zenithbsolutions
Hi,

Can any one guide me to my above queries.

Re: Custom Dial Plan

PostPosted: Tue Jan 17, 2017 2:36 pm
by bajula
HI,

You need to remove the custom prefix before dialing. This should work for you:

For US:
exten => _68681X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _68681X.,2,Dial(SIP/${EXTEN:4}@voip,,tTo)
exten => _68681X.,3,Hangup

or (for UK)

exten => _787844X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _787844X.,2,Dial(SIP/${EXTEN:4}@voip,,tTo)
exten => _787844X.,3,Hangup