[OpenSIPS-Users] MESSAGE t_relay()

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Aug 26 19:01:16 CEST 2014


Hi Gary,

By default, if sending fails, t_relay() will internally generate back a 
negative reply and return true to the script. To disable this, see the 
0x02 flag:
http://www.opensips.org/html/docs/modules/1.11.x/tm.html#id294578

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 25.08.2014 18:36, Gary Nyquist wrote:
> Hi Bogdan,
> You are abosolutely right.
> The request is not leaving the OpenSIPS (not to be seen on the n/w).
> I am guessing, the reason could be a stale contact uri (TCP).
> My question is:
> Shouldn't the "t_relay()" return a negative value if the request fails 
> to leave opensips?
> BR
> -Gary
> *Sent:* Saturday, August 23, 2014 at 6:29 AM
> *From:* "Bogdan-Andrei Iancu" <bogdan at opensips.org>
> *To:* "Gary Nyquist" <gn62 at gmx.us>
> *Cc:* "OpenSIPS users mailling list" <users at lists.opensips.org>
> *Subject:* Re: [OpenSIPS-Users] MESSAGE t_relay()
> Hi Gary,
> Maybe your request is not leaving OpenSIPS, so no failure route will 
> be triggered. Has nothing to do with TLS. But check if you the request 
> on the network.
> Regards,
> Bogdan
> Sent from Samsung Mobile
>
>
> -------- Original message --------
> From: Gary Nyquist
> Date:23/08/2014 01:27 (GMT+04:00)
> To: Bogdan-Andrei Iancu
> Cc: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] MESSAGE t_relay()
> Hi Bogdan,
> I am arming the failure route correctly before calling t_relay().
> In my case the transport is TLS.
> Could that be the reason for not hitting the failure route?
> BR
> -Gary
> *Sent:* Friday, August 22, 2014 at 4:12 PM
> *From:* "Bogdan-Andrei Iancu" <bogdan at opensips.org>
> *To:* "Gary Nyquist" <gn62 at gmx.us>
> *Cc:* "OpenSIPS users mailling list" <users at lists.opensips.org>
> *Subject:* Re: [OpenSIPS-Users] MESSAGE t_relay()
> Hi Gary,
>
> It's hard to believe the failure route does serve your purpose - I 
> would rather say you do something wrong in your cfg:
>     1) arm the failure route (with t_on_failure() TM function) before 
> forwarding the request
>     2) be sure you use t_relay() for forwarding.
>
> Regards,
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
> On 22.08.2014 20:12, Gary Nyquist wrote:
>
>     Hi Bogdan,
>     I tried the 'failure route' method.
>     But, 'failure route' is not being executed, when there is no
>     response from the remote receiver (of the MESSAGE).
>     Any tips, how to trigger this timeout (on no response)?
>     BR
>     -Gary
>     *Sent:* Thursday, August 21, 2014 at 3:51 AM
>     *From:* "Bogdan-Andrei Iancu" <bogdan at opensips.org>
>     *To:* "OpenSIPS users mailling list" <users at lists.opensips.org>,
>     gn62 at gmx.us
>     *Subject:* Re: [OpenSIPS-Users] MESSAGE t_relay()
>     Hi,
>
>     Use a failure route to see if your MESSAGE got a negative or
>     positive reply back. See:
>     http://www.opensips.org/Documentation/Script-Routes-1-11#toc3
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>     OpenSIPS Founder and Developer
>     http://www.opensips-solutions.com
>
>     On 15.08.2014 00:11, Gary Nyquist wrote:
>
>         Hi,
>         I am using t_relay() function to send some text using SIP
>         MESSAGE method.
>         What is a smart way to confirm if the MESSAGE got transmitted
>         successfuly or not?
>         Any ideas?
>         Thanks
>         -Gary
>
>         _______________________________________________
>         Users mailing list
>         Users at lists.opensips.org
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140826/fa140075/attachment.htm>


More information about the Users mailing list