Hello,
On 11/23/11 1:49 PM, Bruno Bresciani wrote:
Hi All,
Why in the kamailio 3.1.2 I have to give a sip_msg parameter to
function register_tmcb when I want register a function of my module
with TMCB_RESPONSE_OUT parameter? I can't understand this behavior...
the callback is for specific transaction, which is created by t_relay()
(or other tm functions such as t_newtran()). At the moment a module
registers a callback, the transaction may not be created yet, so giving
the sip message it required to build a list callbacks attached to
message id -- once the transaction for that request is created, the
callabacks list will be linked to it.
Is it any problem to give this parameter? you should have a valid sip
msg structure in your functions exported for config usage.
Cheers,
Daniel
--
Daniel-Constantin Mierla -- http://www.asipto.com
Kamailio Advanced Training, Dec 5-8, Berlin: http://asipto.com/u/kat
http://linkedin.com/in/miconda -- http://twitter.com/miconda
_______________________________________________
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