[Asterisk-Users] Extension Questions

Shad Mortazavi Shad.Mortazavi at nexusmgmt.com
Fri Jan 30 13:00:43 MST 2004


Dear all,

 

I have the following lines in my extentions.conf file;

 

;All US Calls

exten =>
_9001XXXXXXXXXX,1,Dial(IAX2/dornoch:xxxx at 10.xx.xx.xx/${EXTEN:1}@outbound)


;Dial 9 for outgoing numbers

exten =>_9.,1,Dial(Zap/g1/${EXTEN:1})

 

;include Brunswick

switch => IAX2/dornoch:xxxx at xx.xx.xx.xx/sip

 

What I'm trying to do is to send any calls starting with 9001 out through my
system in the USA and any number starting with a 9 through my local number.

 

However what ever the number I dial starting with a 9 goes out of the local
interface. If I comment out the 'exten =>_9.,1,Dial(Zap/g1/${EXTEN:1})' then
it works.

 

How can I make the line starting exten => _9001 take precedence over the
line starting exten => _9001?

 

Kind Regards

 

Shad Mortazavi

---------------------------------

US Technical Manager

Nexus Management

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040130/a0c785fc/attachment.htm


More information about the asterisk-users mailing list