Re: [asterisk-users] Failover Routing

2011-03-03 Thread Deepika Nijhawan
Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Failover Routing What value do you get from the hangup cause, are they different? I think can you use a gotoif checking the hangup cause. On Wed, Mar 2, 2011 at 12:43 PM, Tilghman Lesher tilgh...@meg.abyt.es wrote

Re: [asterisk-users] Failover Routing

2011-03-02 Thread Andrew Thomas
...@lists.digium.com] On Behalf Of Danny Nicholas Sent: 01 March 2011 16:24 To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] Failover Routing Try this - it says it is for 1.8 but might work in 1.6 http://www.voip-info.org/wiki/view/Asterisk+variable+DIALSTATUS

Re: [asterisk-users] Failover Routing

2011-03-02 Thread Tilghman Lesher
On Wednesday 02 March 2011 07:06:31 Andrew Thomas wrote: It seems like it is a v1.8 only function at present (unless a backport is released). From http://www.voip-info.org/wiki/view/Asterisk+variable+hangupcause - Asterisk 1.8 will allow to read SIP response codes in the dialplan via

Re: [asterisk-users] Failover Routing

2011-03-02 Thread Robert Thomas
What value do you get from the hangup cause, are they different? I think can you use a gotoif checking the hangup cause. On Wed, Mar 2, 2011 at 12:43 PM, Tilghman Lesher tilgh...@meg.abyt.eswrote: On Wednesday 02 March 2011 07:06:31 Andrew Thomas wrote: It seems like it is a v1.8 only

Re: [asterisk-users] Failover Routing

2011-03-01 Thread Deepika Nijhawan
Hi, If I use dialstatus variable, it doesn't give exact reasons for failure like for unallocated numbers it sends Congestion. Whereas, for unallocated number I don't want to go to failover routing. But need to go to failover routing for other congestion reasons. So, is there any way to check

Re: [asterisk-users] Failover Routing

2011-03-01 Thread Rizwan Hisham
You can use exten pattern matching for un allocated numbers, say exten= _X.,1,Goto(somewhere) will match all the numbers on priority 1. But make sure you match full extension numbers first which are allocated. Also this extension is a security risk as well. It is recommended that you use a filter

Re: [asterisk-users] Failover Routing

2011-03-01 Thread isrlgb
Discussionasterisk-users@lists.digium.com Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Failover Routing -- _ -- Bandwidth and Colocation Provided

Re: [asterisk-users] Failover Routing

2011-03-01 Thread Deepika Nijhawan
...@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

Re: [asterisk-users] Failover Routing

2011-03-01 Thread Bob Beers
On Tue, Mar 1, 2011 at 8:09 AM, Deepika Nijhawan deepika.nijha...@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

Re: [asterisk-users] Failover Routing

2011-03-01 Thread Deepika Nijhawan
Discussion Cc: Deepika Nijhawan Subject: Re: [asterisk-users] Failover Routing On Tue, Mar 1, 2011 at 8:09 AM, Deepika Nijhawan deepika.nijha...@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

Re: [asterisk-users] Failover Routing

2011-03-01 Thread Danny Nicholas
-Original Message- From: Bob Beers [mailto:bob.be...@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.nijha

Re: [asterisk-users] Failover Routing

2011-03-01 Thread Deepika Nijhawan
...@lists.digium.com] On Behalf Of Danny Nicholas Sent: 01 March 2011 15:09 To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] Failover Routing -Original Message- From: Bob Beers [mailto:bob.be...@gmail.com] Sent: 01 March 2011 13:24 To: Asterisk Users Mailing List

Re: [asterisk-users] Failover Routing

2011-03-01 Thread Danny Nicholas
, 2011 10:18 AM To: 'Asterisk Users Mailing List - Non-Commercial Discussion' Subject: Re: [asterisk-users] Failover Routing SIP_HEADER() gives you only access to headers of the initial INVITE request (and not, for example, the final BYE message) How will I check sip response with this like 404

[asterisk-users] Failover Routing

2011-02-28 Thread Deepika Nijhawan
Hi, I am doing failover routing based on 2 dial commands. First route sends back 4xx response and I don't want it to try 2nd route when it is 4xx response. Can we do failover routing based on SIP 5xx response only ? Thanks Deepika --

Re: [asterisk-users] Failover Routing

2011-02-28 Thread Satish Patel
Look like you should work with channel status variable. If channel not answer then jump on 5xx -- Sent from my iPhone On Feb 28, 2011, at 10:27 AM, Deepika Nijhawan deepika.nijha...@oxygen8.com wrote: Hi, I am doing failover routing based on 2 dial commands. First route sends back