[asterisk-users] Help With dial plan

Mark Michelson mmichelson at digium.com
Tue Jul 22 09:46:21 CDT 2008


James Mutuku wrote:
> Hi list,
> 
> Have installed trixbox and I am working with a fxo gateway to get fxo 
> calls to trixbox. I am using sip to send the calls from the gateway to 
> trixbox. I have an extension 3000 on trixbox
> 
> on [from-sip-external] on extensions.conf ,I have put the dial plan below.
> 
> exten => 3000,1,dial(sip/3000)
> exten=> 3000,2,answer()
> exten => 3000,3,congestion()
> exten=> 3000,4,hangup()
> 
> 
> this works fine. But I when I put it in the form
> 
> exten => _3XXX,1,dial(sip/${EXTEN})
> exten=> _3XXX,2,answer()
> exten =>_3XXX,3,congestion()
> exten=> _3XXX,4,hangup()
> 
> the call goes into congestion and I get a busy tone. What could I be 
> doing wrong?
> 
> James
> 

As a sanity check, you may want to place a NoOp(${EXTEN}) prior to the dial. If 
you set the verbosity high on the Asterisk console, then you can see what the 
value of EXTEN is when the NoOp occurs.

Mark Michelson



More information about the asterisk-users mailing list