Dial plan setup

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

Dial plan setup

Postby cottonking2000 » Thu Apr 23, 2009 9:25 am

I need a few hints. I am trying to set up this type of feature:

Dial 9 before number = IAX
Dial 8 before number = SIP

My endpoint devices at the VOIP provider are set up fine. We currently test and call on Vicidial now.

In the Dial Plan entry I can handle this type of mod by changing the following:

exten => _71999NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _7 1999NXXXXXX,2,Dial(${TESTIAXTRUNK}/${EXTEN:2},,tTor)
exten => _7 1999NXXXXXX,3,Hangup

_81999NXXXXXX

_7 to my desired 8 or 9 and match the rest of the set up:

[SIP Voipstreet]
disallow=all
allow=gsm
....

Kinda reverse learning the admin setups.....from the config files...
cottonking2000
 
Posts: 49
Joined: Fri Mar 06, 2009 1:25 pm

Postby mflorell » Thu Apr 23, 2009 10:01 am

That should work fine, let us know if you run into any issues.
mflorell
Site Admin
 
Posts: 18379
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

trunk setting

Postby cottonking2000 » Thu Apr 23, 2009 11:06 am

I understand context=trunkinbound

If

context=trunkoutbound

Would this be appropriate in the truck setup for 8-9 IAX or SIP setup?
cottonking2000
 
Posts: 49
Joined: Fri Mar 06, 2009 1:25 pm

Postby mflorell » Thu Apr 23, 2009 11:15 am

You should not need to set the outgoing context for a carrier configured through admin.php.
mflorell
Site Admin
 
Posts: 18379
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

More config admin dial plan setup

Postby cottonking2000 » Thu Apr 23, 2009 11:28 am

[general]
bindport=4569
iaxcompat=yes
bandwidth=high
allow=all
allow=gsm ; Always allow all, ulaw,or, it's cool :)
jitterbuffer=no
tos=lowdelay

Where do we set this up in the dial plan config admin file? Or could this be added into the template?
cottonking2000
 
Posts: 49
Joined: Fri Mar 06, 2009 1:25 pm

Postby mflorell » Thu Apr 23, 2009 11:45 am

Is this for a carrier record?

If so you can either put it into the "Account Entry" field or you can create a template for it.

If it has to be part of the [general] context then you need to edit the iax.conf file directly.
mflorell
Site Admin
 
Posts: 18379
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Ok

Postby cottonking2000 » Thu Apr 23, 2009 12:08 pm

Thats exactly what I needed. Thank you
cottonking2000
 
Posts: 49
Joined: Fri Mar 06, 2009 1:25 pm

Postby williamconley » Thu Apr 23, 2009 2:29 pm

You may also want to remember that:
exten => _71NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _71NXXNXXXXXX,2,Dial(${DIAL7SERVICE}/${EXTEN:2},,tTor)
exten => _71NXXNXXXXXX,3,Hangup

would work as well under most circumstances and allow you to redefine the trunk variable "DIAL7SERVICE" in [globals] (which i include from a seperate file because it is usually the only context which requires editing) as whatever you want (IAX or SIP) without having to rename the variable (or have it "wrong" by being SIP when it says IAX, which can confuse a later technician).

I've found "dial x" descriptive variables like that to be quite helpful as time passes. My [globals] file has descriptive variables for dial9,8,7,6,5 in most cases for mutliple carriers in use for multiple campaigns and backups. They rarely get changed, but they are easily identified and do not require modification of the actual dialplan to add/modify a carrier later.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20220
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 11 guests