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