[OpenSIPS-Users] MESSAGE t_relay()

Gary Nyquist gn62 at gmx.us
Wed Sep 3 19:06:46 CEST 2014


Hi Bogdan,

Yes, t_relay with 0x02 flag is returning -1, 
when it fails to send MESSAGE packet to the destination. 

That's enough to solve my issue.

Thanks a lot for your advice.

Also thanks for sharing the presentations of the "2014 Chicago OpenSIPS Summit".

BR
-Gary
 
 
 

Sent: Tuesday, August 26, 2014 at 1:01 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,

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 Developerhttp://www.opensips-solutions.com[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>[bogdan at opensips.org]
To: "Gary Nyquist" <gn62 at gmx.us>[gn62 at gmx.us]
Cc: "OpenSIPS users mailling list" <users at lists.opensips.org>[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>[bogdan at opensips.org]
To: "Gary Nyquist" <gn62 at gmx.us>[gn62 at gmx.us]
Cc: "OpenSIPS users mailling list" <users at lists.opensips.org>[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 Developerhttp://www.opensips-solutions.com[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[http://www.opensips.org/Documentation/Script-Routes-1-11#toc3]

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developerhttp://www.opensips-solutions.com[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 listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list