Marc Leurent wrote: > Hello, > What is the purpose of t_check_trans(); at line 253 in opensips.cfg > trunk version. > This function is only a check so should not be necessary here? > No? > > > # CANCEL processing > if (is_method("CANCEL")) > { > if (t_check_trans()) > t_relay(); > exit; > } > > * t_check_trans();*
The function is not only a check--it also has an effect on execution behaviour for non-CANCEL / non-ACK requests. Consider: http://www.opensips.org/html/docs/modules/1.5.x/tm.html#id272150 "[I]f the request belongs to a transaction (it's a retransmision), the function will do a standard processing of the retransmission and ***will break/stop the script***. The function return false if the request is not a retransmission." -- Alex -- Alex Balashov Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 _______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users