[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeswitch-users
Subject:    [Freeswitch-users] Conditions in the dialplan
From:       mike () jerris ! com (Michael Jerris)
Date:       2008-05-29 2:56:32
Message-ID: 4D5764B9-1F11-4758-AF01-960DA6F511C8 () jerris ! com
[Download RAW message or body]

a sip 302 response is Moved Temporarily.  The sip stack automatically  
follows the 302 to the next location, so you can not do your own  
actions based on those.  Terminal sip response codes like 486 get  
translated to their companion q.850 codes.  You can adjust routing  
based on other responses by using the continue_on_fail channel  
variable.  More information is available:

http://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail

Mike

On May 28, 2008, at 10:06 PM, Jonathan K. Creasy wrote:

> I've been looking around a little bit and I haven't seen anything on  
> this yet so I wanted to ask here.
>
> I want to have a dialplan that captures certain SIP responses and  
> takes different actions based on the response received.
>
> For example, if I place a call out to a peer and get back "486 Busy  
> here" I want to do "action1". If I get "302 Temporarily Unavailable"  
> I want to execute "action2".
>
> What's the best way to go about this?
>
> -Jonathan
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.24.1/1469 - Release Date:  
> 5/27/2008 1:25 PM
>
>
> _______________________________________________
> Freeswitch-users mailing list
> Freeswitch-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic