[Asterisk-Dev] Question about ISDN reason codes

Peter Svensson psvasterisk at psv.nu
Fri Oct 22 04:11:58 MST 2004


On Fri, 22 Oct 2004, Neill Wilkinson wrote:

> All,
> 
> newbie to Asterisk and just trying to get a load of bits together
> including PSTN interface using Digium Quad E1 interfaces using EuroISDN.
> 
> Question can I/how do I get access to the ISDN reason codes for call
> disconnect? The purpose is to be able to make routing choices based on
> the reason code returned from a PRI connected interface/channel. For
> example if the reason code indicates say "network congestion" or "no
> route" then I want to be able to try an alternative route by
> manipulating the digit string and retrying on another interface, for
> example to a SIP ITSP.

The HANGUPCAUSE variable in cvs after 2004-08-12 has the pri reason code:

http://www.voip-info.org/tiki-index.php?page=Asterisk%20variable%20hangupcause

Peter





More information about the asterisk-dev mailing list