Re: [SR-Users] Example kamailio.cfg t_check_trans()

2016-01-08 Thread Daniel-Constantin Mierla
Welcome - enhancements to the docs are always more than welcome!

Cheers,
Daniel

On 04/01/16 09:29, Phil Lavin wrote:
>
> Thanks, Daniel. I’ll update the docs to clarify this, if I get a moment.
>
>  
>
>  
>
> Cheers
>
>  
>
> Phil
>
>  
>
> *From:*sr-users [mailto:sr-users-boun...@lists.sip-router.org] *On
> Behalf Of *Daniel-Constantin Mierla
> *Sent:* 04 January 2016 08:06
> *To:* Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org>
> *Subject:* Re: [SR-Users] Example kamailio.cfg t_check_trans()
>
>  
>
> Hello,
>
> On 31/12/15 12:39, Phil Lavin wrote:
>
> Hi there,
>
>  
>
> The example config that Kamailio ships with contains this block of
> code in request_route:
>
>  
>
> # handle retransmissions
>
> if(t_precheck_trans()) {
>
>  t_check_trans();
>
>  exit;
>
> }
>
> t_check_trans();
>
>  
>
> I am not fully understanding the requirement for either of the
> t_check_trans() here. As far as I can see from the documentation,
> t_check_trans() returns a boolean value and does not modify any
> data internally.
>
>  
>
> Can anyone help me find out what the relevance of the
> t_check_trans() calls is?
>
>  
>
> t_check_trans() is used to detect retransmissions. If a retransmission
> is received, then the last reply (if any) needs to be sent back, then
> t_check_trans() does an 'exit' internally.
>
> Cheers,
> Daniel
>
> -- 
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - 
> http://www.linkedin.com/in/miconda
> Book: SIP Routing With Kamailio - http://www.asipto.com
> http://miconda.eu

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Example kamailio.cfg t_check_trans()

2016-01-04 Thread Phil Lavin
Thanks, Daniel. I'll update the docs to clarify this, if I get a moment.


Cheers

Phil

From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of 
Daniel-Constantin Mierla
Sent: 04 January 2016 08:06
To: Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org>
Subject: Re: [SR-Users] Example kamailio.cfg t_check_trans()

Hello,
On 31/12/15 12:39, Phil Lavin wrote:
Hi there,

The example config that Kamailio ships with contains this block of code in 
request_route:

# handle retransmissions
if(t_precheck_trans()) {
 t_check_trans();
 exit;
}
t_check_trans();

I am not fully understanding the requirement for either of the t_check_trans() 
here. As far as I can see from the documentation, t_check_trans() returns a 
boolean value and does not modify any data internally.

Can anyone help me find out what the relevance of the t_check_trans() calls is?

t_check_trans() is used to detect retransmissions. If a retransmission is 
received, then the last reply (if any) needs to be sent back, then 
t_check_trans() does an 'exit' internally.

Cheers,
Daniel


--

Daniel-Constantin Mierla

http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

Book: SIP Routing With Kamailio - http://www.asipto.com

http://miconda.eu
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Example kamailio.cfg t_check_trans()

2016-01-04 Thread Daniel-Constantin Mierla
Hello,

On 31/12/15 12:39, Phil Lavin wrote:
>
> Hi there,
>
>  
>
> The example config that Kamailio ships with contains this block of
> code in request_route:
>
>  
>
> # handle retransmissions
>
> if(t_precheck_trans()) {
>
>  t_check_trans();
>
>  exit;
>
> }
>
> t_check_trans();
>
>  
>
> I am not fully understanding the requirement for either of the
> t_check_trans() here. As far as I can see from the documentation,
> t_check_trans() returns a boolean value and does not modify any data
> internally.
>
>  
>
> Can anyone help me find out what the relevance of the t_check_trans()
> calls is?
>
>  
>
t_check_trans() is used to detect retransmissions. If a retransmission
is received, then the last reply (if any) needs to be sent back, then
t_check_trans() does an 'exit' internally.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
http://miconda.eu

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Example kamailio.cfg t_check_trans()

2015-12-31 Thread Phil Lavin
Hi there,

The example config that Kamailio ships with contains this block of code in 
request_route:

# handle retransmissions
if(t_precheck_trans()) {
 t_check_trans();
 exit;
}
t_check_trans();

I am not fully understanding the requirement for either of the t_check_trans() 
here. As far as I can see from the documentation, t_check_trans() returns a 
boolean value and does not modify any data internally.

Can anyone help me find out what the relevance of the t_check_trans() calls is?


Thanks

Phil Lavin
Systems Engineer
CloudCall by SYNETY
www.cloudcall.com

T: +44 (0) 330 335  / +1 617 982 1600
D: +44 (0) 116 424 4790 / +1 617 982 4790
SM: LinkedIn
READ OUR BLOG FOR SMARTER 
COMMUNICATIONS

Confidentiality: This e-mail transmission, including any attachments, is 
intended only for the named recipient(s) and may contain information that is 
privileged, confidential and/or exempt from disclosure under applicable law. If 
you have received this transmission in error, or are not the named 
recipient(s), please notify the sender immediately by return e-mail and 
permanently delete this transmission, including any attachments.
Security: This e-mail and any attachments are believed to be free from any 
virus but it is the responsibility of the recipient to ensure this is so. 
E-mail is not a 100% secure communication.

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users