[Asterisk-Users] Dialing rules
Robert P. McKenzie
rmckenzi at rpmdp.com
Sat Apr 16 12:50:39 MST 2005
Got it sorted.. it was an issue with the order the exten's were processed. Found the page on the wiki about forcing
your own sort.. it's all working now.
Thanks for the hand in finding the light switch :)
Cheers!!!
Robert P. McKenzie wrote:
> Hmm still not really working. This is what I have in a context that I'm
> part of:
>
> [outbound_world]
> ; Dial rule for China
> exten => _686.,1,Dial(IAX2/user:pass at provider/011${EXTEN:1})
> ; Dial rules for UK
> exten => _60[1278].,1,Dial(IAX2/user:pass at provider/01144${EXTEN:2})
> ; Dial everything else
> exten => _6.,1,Dial(IAX2/user:pass at provider/${EXTEN:1})
>
> When I dial 601223xxxxxx it does:
>
> -- Executing Dial("SIP/line2-b582",
> "IAX2/user:pass at provider/01223xxxxxx") in new stack
> -- Called user:pass at provider/01223xxxxxx
> -- Call accepted by xx.xx.xx.xx (format gsm)
> -- Format for call is gsm
> -- IAX2/provider/1 is making progress passing it to SIP/line2-b582
> -- Hungup 'IAX2/provider/1'
> == Spawn extension (rob, 601223xxxxxx, 1) exited non-zero on
> 'SIP/line2-b582'
>
>
> It looks like it's taking only the last rule of the 3 above...
>
> Any ideas?
>
>
> Shahar Livne wrote:
>
>> Hi Robert,
>>
>> extensions.conf grammar is very easy:
>>
>> To change 602085551212 to really dialing 6011442085551212:
>>
>> exten => _602.,n,Dial,IAX2/user:passwd at pbx.address.com/6011442${EXTEN:3}
>> Everything that starts with 602 - take out the first 3 digits, and add
>> instead 6011442 before the number.
>>
>> For more info - go to
>> http://www.voip-info.org/wiki-Asterisk+config+extensions.conf
>>
>> Shahar Livne
>> LivneX CEO
>> http://livnex.com
>>
>> On 4/14/05, Robert P. McKenzie <rmckenzi at rpmdp.com> wrote:
>>
>>> Hello all,
>>>
>>> I need to setup some dialing rules and I've had nothing but problems
>>> with them.
>>>
>>> I am using an IAX terminated service for my PSTN calls. To access the
>>> service from my asterisk box I dial 6 then the number. The part I'm
>>> having problems is that since the company is based in the US if I want
>>> to dial a number in Canada/US I just dial 616136661212, I am based in
>>> the UK and need to have sensible dialing for local calls here.
>>> Currently I have to dial 6011442085551212.
>>>
>>> Dialing rules I need to setup will allow simple dialing of 616135551212
>>> as well as taking say 602085551212 and converting it to
>>> 6011442085551212.
>>>
>>> Any help would be greatly appreciated.
>>>
>>> --
>>> Robert P. McKenzie
>>
>>
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
--
Robert P. McKenzie | GammaRay Technical Services Ltd
rmckenzi at rpmdp.com | rob at gammaray-tech.com
http://www.uk-experience.com | http://www.gammaray-tech.com
Ecademy Profile: http://www.ecademy.com/account.php?op=view&id=64014
More information about the asterisk-users
mailing list