Page 1 of 1

Dial Plan Issue with International Calls

PostPosted: Mon May 28, 2012 4:22 pm
by simonc
Hey Guys,

I am having an issue with my dial plan. .

I have the following set as my dial plan entry under carriers
exten => _91XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXXXXXXXX,2,Dial(SIP/${EXTEN:1}@voicenetwork-out,,tTo)
exten => _91XXXXXXXXXX,3,Hangup

exten => _91XXXXXXXXXX,1,Answer
exten => _91XXXXXXXXXX,2,Dial($9{TRUNKloop}/${EXTEN:1},,tTo)
exten => _91XXXXXXXXXX,3,Hangup

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


From the Agent Screen, When clicking on manual Dial, putting 011 as the Dial Code and 447547641304 as the number, i get connected without any issue.

However if i load it as a lead, the dialer will attempt to add a 1 in front of the number for some reason. Please take a look at the log below.

Asterisk Call Logs :

-- Executing [8600052@default:1] MeetMe("Local/8600052@default-bbc1,2", "8600052|F") in new stack
== Starting Local/8600052@default-bbc1,1 at default,91011447547641304,1 failed so falling back to exten 's'
== Starting Local/8600052@default-bbc1,1 at default,s,1 still failed so falling back to context 'default'
-- Sent into invalid extension 's' in context 'default' on Local/8600052@default-bbc1,1
-- Executing [i@default:1] Playback("Local/8600052@default-bbc1,1", "invalid") in new stack

Any help would be greatly appreciated.

Re: Dial Plan Issue with International Calls

PostPosted: Mon May 28, 2012 6:49 pm
by rrb555
how did u load the leads?

Re: Dial Plan Issue with International Calls

PostPosted: Mon May 28, 2012 11:36 pm
by simonc
i loaded them as 01144XXXXX i also tried without the 44 and without the 011 and without anything! and with the 44 as forced.

Re: Dial Plan Issue with International Calls

PostPosted: Tue May 29, 2012 8:27 am
by rrb555
i see that's problem . you must omit 01144 then only upload the phone numbers and change phone code override to 44-GBR

Re: Dial Plan Issue with International Calls

PostPosted: Tue May 29, 2012 9:59 am
by simonc
and keep the exact same dial plan?

I Believe i have tried that but without results. However, to be 100%., i will try it now again.

Re: Dial Plan Issue with International Calls

PostPosted: Tue May 29, 2012 10:24 am
by rrb555
and keep the exact same dial plan?


yep,

let me know,

or try this also. add 011 to campaign detail>dial prefix so it would look like this 9011

Re: Dial Plan Issue with International Calls

PostPosted: Tue May 29, 2012 11:24 am
by simonc
Hi Sir,

I did exactly what you told me and it worked perfectly. Here is a detailed steps of what i did for anyobody else having the same issue.

1. Added the leads without the 011 or 44. Just the Number itself.
2. On load new leads, i force area code overide for GBR ( 44 )
3. On Campaign, dial prefix was 9. Now it is 9011
4. I used the same dial plan.

One thing i tried however was adding the trunk loop for this dial plan as well ( it did not work) . I finally just used the r option after Tto and its seems to be working for now .

Re: Dial Plan Issue with International Calls

PostPosted: Tue May 29, 2012 11:30 am
by rrb555
Great post back!

Cheers!