[sr-dev] tm issues with TCP forwarding failures
Andrei Pelinescu-Onciul
andrei at iptel.org
Wed Jan 27 13:02:18 CET 2010
On Jan 27, 2010 at 12:44, Klaus Darilion <klaus.mailinglists at 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:announcement01 at 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
More information about the sr-dev
mailing list