Custom Dial Plan

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Custom Dial Plan

Postby zenithbsolutions » Mon Jan 16, 2017 2:09 am

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.
zenithbsolutions
 
Posts: 124
Joined: Tue Aug 25, 2015 2:17 am

Re: Custom Dial Plan

Postby zenithbsolutions » Tue Jan 17, 2017 8:16 am

Hi,

Can any one guide me to my above queries.
zenithbsolutions
 
Posts: 124
Joined: Tue Aug 25, 2015 2:17 am

Re: Custom Dial Plan

Postby bajula » Tue Jan 17, 2017 2:36 pm

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
bajula
 
Posts: 6
Joined: Wed Apr 01, 2015 8:45 am


Return to Support

Who is online

Users browsing this forum: No registered users and 150 guests

cron