Hello,<br><br>I have no a valid sip msg struture on my functions exported. I want get only the call-id of specific transaction created by t_relay() (or other tm functions such as t_newtran()). If I understood, I have that declare a global sip msg struture and give it to function register_tmcb?  <br>
<br>Cheers,<br><br><div class="gmail_quote">2011/11/23 Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<div class="im"><br>
<br>
On 11/23/11 1:49 PM, Bruno Bresciani wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi All,<br>
<br>
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&#39;t understand this behavior...<br>
</blockquote></div>
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.<br>

<br>
Is it any problem to give this parameter? you should have a valid sip msg structure in your functions exported for config usage.<br>
<br>
Cheers,<br>
Daniel<br><font color="#888888">
<br>
-- <br>
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
Kamailio Advanced Training, Dec 5-8, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a><br>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
<br>
</font></blockquote></div><br>