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
> [email protected]
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
[email protected]
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to