Page 1 of 1

dialplan

PostPosted: Thu Mar 26, 2009 9:18 pm
by john_usc
Hi there

I have vicidial working with this configuration in extensions.conf

exten => _1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1NXXNXXXXXX,2,Dial(SIP/${EXTEN}@flowroute,55,o)
;Send NANPA (USA) as 11 digit
exten => _011.,3,Dial(SIP/${EXTEN:3}@flowroute)
;dialing format - SIP/{countrycode}{number}@flowroute
exten => _1NXXNXXXXXX,4,Hangup

however I wanna dial 9 too. something like this

exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(SIP/${EXTEN}@flowroute,55,o)
;Send NANPA (USA) as 11 digit
exten => _011.,3,Dial(SIP/${EXTEN:3}@flowroute)
;dialing format - SIP/{countrycode}{number}@flowroute
exten => _91NXXNXXXXXX,4,Hangup


but when I add 9, my calls don't go through. Is there anything I am missing or can someone help please.
Thanks

PostPosted: Thu Mar 26, 2009 11:03 pm
by williamconley
Whoa.

When you built the system there were sample extensions in extensions.conf. Put them back. To change "Providers" you need only change the globals that point to them. TRUNK, TRUNKX.

This is all in the setup instructions for placing your first call, step by step. It's much easier that way.

In case you don't get where i'm going...

_91NXXNXXXXXX,1
_91NXXNXXXXXX,2
_011.,3
_91NXXNXXXXXX,4

is IMPOSSIBLE. The system will read:

_91NXXNXXXXXX,1
_91NXXNXXXXXX,2
_91NXXNXXXXXX,4

the _011.,3 is a completely different dial plan extension and will be ignored because there's no "_011.,1"

This is a "basic understanding of the dial plan" issue. If you don't have that understanding ..., go back to the setup provided in the basic system and follow the step-by-step. Life will suddenly get much simpler.

OR learn the basics of dial plan entry, at a place like:
http://www.voip-info.org/tiki-index.php ... sions.conf
BUT: even there they will not teach you how to make a dial plan that conforms to vicidial's requirements.

You will likely need to learn this eventually, now's a good time. But you don't have to just to use vicidial, and if you do learn it, you will likely still have to replace the original extensions.conf file because modifying it (other than duplicating entries) is complex. Oh, and it has "dial 9" service in it already. I generally duplicate THAT for a "Dial 8" and "Dial 7" service from alternate providers when I build a system anway.

I'd have been more specific, by the way, if your signature included your setup (what version of Vicidial are you using?)

PostPosted: Thu Mar 26, 2009 11:06 pm
by mflorell
Do you have 1 in the phone_code field of your vicidial_lead table for your leads?

What do youhave in the dial prefix field of your campaign?