Dear all,

 

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

 

;All US Calls

exten => _9001XXXXXXXXXX,1,Dial(IAX2/dornoch:[EMAIL PROTECTED]/${EXTEN:[EMAIL PROTECTED])          

;Dial 9 for outgoing numbers

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

 

;include Brunswick

switch => IAX2/dornoch:[EMAIL PROTECTED]/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

 

Reply via email to