[Asterisk-Users] Dial plan help

Eric Wieling eric at fnords.org
Mon Jun 7 12:32:09 MST 2004


I would use:
exten => _NXXNXXXXXX,1,Dial(Zap/g1/${EXTEN})
exten => _NXXNXXXXXX,2,Dial(IAX2/username at iax-conf-entry/${EXTEN})
exten => _NXXNXXXXXX,3,Congestion
exten => _NXXNXXXXXX,102,1,Busy
exten => _NXXNXXXXXX,103,1,Busy

That way if number you dial is busy it will not immediately try dialing
the same number via IAX.  If you want REAL information about what
happened with the call you need to use ${CAUSECODE}.


On Mon, 2004-06-07 at 14:23, John Fraizer wrote:
> exten => _NXXNXXXXXX,1,Dial(Zap/g1/${EXTEN})
> exten => _NXXNXXXXXX,2,Dial(IAX2/username at iax-conf-entry/${EXTEN})
> exten => _NXXNXXXXXX,3,Congestion
> 
> The above will attempt to dial out your Zap interface first.  If that 
> fails, it will dial out using "username" for the username and the 
> password, IP address info for the IAX2 peer will be grabbed out of the 
> iax2.conf entry that matches [iax-conf-entry].

-- 
          Eric Wieling * BTEL Consulting * 504-899-1387 x2111
"In a related story, the IRS has recently ruled that the cost of Windows
upgrades can NOT be deducted as a gambling loss."




More information about the asterisk-users mailing list