Page 1 of 1

Outbound dial Plan for 1 phone extension

PostPosted: Tue May 14, 2013 2:08 am
by dajesterofdeath
VERSION: 2.6-396a
BUILD: 130402-2322

Hi,

I have a dialplan that allows calls for all Australian area codes (and therefore denies mobiles), however I would like to set up a dialplan that allows a particular extension(eg 2200) to call Mobiles. I cannot seem to find anything on google or in the forums.

How can i achieve this?

My current dial plan is:

exten => _33617XXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _33617XXXXXXXX,2,Dial(${CALLCENTREVOIP}/${EXTEN:2},60,tTo)
exten => _33617XXXXXXXX,3,Hangup

exten => _33613XXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _33613XXXXXXXX,2,Dial(${CALLCENTREVOIP}/${EXTEN:2},60,tTo)
exten => _33613XXXXXXXX,3,Hangup

exten => _33618XXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _33618XXXXXXXX,2,Dial(${CALLCENTREVOIP}/${EXTEN:2},60,tTo)
exten => _33618XXXXXXXX,3,Hangup

exten => _33612XXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _33612XXXXXXXX,2,Dial(${CALLCENTREVOIP}/${EXTEN:2},60,tTo)
exten => _33612XXXXXXXX,3,Hangup


sorry if I am missing any of the post requirements, my Version and build is at the start of the post.

thanks,

Re: Outbound dial Plan for 1 phone extension

PostPosted: Tue May 14, 2013 10:32 am
by omarrodriguezt
Hello,
Create a custom context that allows calls to Australian, then include this context in the extension 2200

Re: Outbound dial Plan for 1 phone extension

PostPosted: Wed May 15, 2013 7:03 am
by dajesterofdeath
Hi Omarr,

Sorry for my ignorance, Im not quite sure what you mean in regards to creating a custom context. I am quite new to VICIdial.

Re: Outbound dial Plan for 1 phone extension

PostPosted: Wed May 15, 2013 10:00 am
by striker
create a phone foreg: 2200 in vicidial admin screen and give phone context=ausmobile

then go to extension.conf and add a dialplan with context ausmobile at lastline .

like
[ausmobile]
exten => _61XXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _61XXXXXXXX,2,Dial(${CALLCENTREVOIP}/${EXTEN:2},60,tTo)
exten => _61XXXXXXXX,3,Hangup

the above dialplan is just example , edit asper the australia mobile digits

Re: Outbound dial Plan for 1 phone extension

PostPosted: Wed May 15, 2013 8:10 pm
by dajesterofdeath
Thank you striker for that explanation. I wasn't aware of the context feature or how it worked. Your explanation was informative.

As an alternative to editing the extension.conf file (in the event you don't have ssh access) you can add your custom context to your Dialplan entry (Admin - Carriers - Select Carrier - Add to Dialplan Entry.

Re: Outbound dial Plan for 1 phone extension

PostPosted: Thu May 16, 2013 7:32 am
by omarrodriguezt
dajesterofdeath wrote:Thank you striker for that explanation. I wasn't aware of the context feature or how it worked. Your explanation was informative.

As an alternative to editing the extension.conf file (in the event you don't have ssh access) you can add your custom context to your Dialplan entry (Admin - Carriers - Select Carrier - Add to Dialplan Entry.


You can try and let us know.

Re: Outbound dial Plan for 1 phone extension

PostPosted: Wed Jul 17, 2013 7:09 am
by Mansur
you can add multiple routes for multiple destination dialing

just goto sip.conf create cutom trunks for each trunks
[vision]
type=peer
host=XX.XX.XX
username=itmarkaz
fromuser=itmarkaz
secret=*******
canreinvite=no
then goto extensions.conf

create custom context for each trunk
[vision]
exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(SIP/${EXTEN:1}@testvoip,,To)
exten => _91NXXNXXXXXX,3,Hangup

and include your all trunks like this

[intern]
include => stations
include => local
include => long-distance
include => vision
include => Barkati
include => SMK
include => SMK3

cheers...!!!!!!
Regards,
Mansur
skype : genious840