On Jan 27, 2010 at 12:44, Klaus Darilion <klaus.mailingli...@pernau.at> wrote:
[..]
> 
> Is it also possible to t_relay the call a second time? For example 
> relaying failed as the destination SIP proxy is not available can I 
> redirect the call to an announcement server? e.g.:
> 
> if (!t_relay()){
>     if (t_lookup_request())
>       $du = "sip:announcemen...@1.2.3.4";
>       t_relay();      
>         exit;
>     else
>         sl_reply_error();
> }

Yes, but only if you use append_branch() before t_relay(). t_relay()
uses the request uri only when it is called for the first time.
Subsequent invocation look to see if more branches are appended (if not
they report an error).

Andrei

_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to