[asterisk-users] Failover Routing

Deepika Nijhawan deepika.nijhawan at oxygen8.com
Tue Mar 1 07:09:00 CST 2011


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?
     

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
isrlgb at gmail.com
Sent: 01 March 2011 12:52
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Failover Routing

I think he meant the opposite he is sending calls to a sip trunk and would
like to know when to failover and send calls to a different sip trunk

I haven't really looked at this but maybe check the header of the packet for
which response your getting 

Also are you sure you are getting the hangup reason because I have some
providers sending congestion even for unallocated numbers
-----Original Message-----
From: Rizwan Hisham <rizwanhasham at gmail.com>
Sender: asterisk-users-bounces at lists.digium.com
Date: Tue, 1 Mar 2011 17:30:00 
To: Asterisk Users Mailing List - Non-Commercial
Discussion<asterisk-users at lists.digium.com>
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
	<asterisk-users at lists.digium.com>
Subject: Re: [asterisk-users] Failover Routing

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list