[asterisk-users] Failover Routing

Deepika Nijhawan deepika.nijhawan at oxygen8.com
Tue Mar 1 09:04:28 CST 2011


It says it for asterisk1.8. I am using asterisk1.6, can we use this function
in this version.
Is it possible for you to give example on how to use?

-----Original Message-----
From: Bob Beers [mailto:bob.beers at gmail.com] 
Sent: 01 March 2011 13:24
To: Asterisk Users Mailing List - Non-Commercial Discussion
Cc: Deepika Nijhawan
Subject: Re: [asterisk-users] Failover Routing

On Tue, Mar 1, 2011 at 8:09 AM, Deepika Nijhawan
<deepika.nijhawan at oxygen8.com> wrote:
> Ya, below is my routing:
> Exten => 1234,1,Dial(SIP/abc)
> Exten => 1234,n,Dial(SIP/xyz)
>
> If 1234 is unallocated on SIP/abc it returns 1 in ${HANGUPCAUSE} variable.
> For this I don't want it  to try SIP/xyz.
> But overall, if we get SIP 4xx reason then call should hangup like it
sends
> back 404 not found for this case and if we get SIP 5xx response then
should
> try SIP/xyz.
> Is there any way to check sip responses and do failover routing based on
> that?
>

Have you looked at SIP_HEADER() dialplan function?
<https://wiki.asterisk.org/wiki/display/AST/Function_SIP_HEADER>

Maybe you can parse Reason header in 4xx or 5xx response?

HTH,
-Bob




More information about the asterisk-users mailing list