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: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
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 <[email protected]>
Sender: [email protected]
Date: Tue, 1 Mar 2011 17:30:00
To: Asterisk Users Mailing List - Non-Commercial
Discussion<[email protected]>
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
<[email protected]>
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
--
_____________________________________________________________________
-- 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