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:[EMAIL PROTECTED]/011${EXTEN:1})
; Dial rules for UK
exten => _60[1278].,1,Dial(IAX2/user:[EMAIL PROTECTED]/01144${EXTEN:2})
; Dial everything else
exten => _6.,1,Dial(IAX2/user:[EMAIL PROTECTED]/${EXTEN:1})
When I dial 601223xxxxxx it does:
-- Executing Dial("SIP/line2-b582", "IAX2/user:[EMAIL
PROTECTED]/01223xxxxxx") in new stack
-- Called user:[EMAIL PROTECTED]/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:[EMAIL PROTECTED]/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 <[EMAIL PROTECTED]> 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
[email protected]
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
[EMAIL PROTECTED] | [EMAIL PROTECTED]
http://www.uk-experience.com | http://www.gammaray-tech.com
Ecademy Profile: http://www.ecademy.com/account.php?op=view&id=64014
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users