<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 11/23/11 6:37 PM, Bruno Bresciani wrote:
    <blockquote
cite="mid:CAKv6MrYU89OW8+s7tYd0cmcgNfmV7PP-W9CJviBrBQ80MRWWkQ@mail.gmail.com"
      type="cite">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?&nbsp; <br>
    </blockquote>
    transactions are created for requests, you can use register_tmcb( 0,
    0, TMCB_REQUEST_IN, your_callback_function, 0, 0 ) to get the
    callback executed for each new transaction. In this case you don't
    need to provide a valid sip message. You should register such
    callback in mod init.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:CAKv6MrYU89OW8+s7tYd0cmcgNfmV7PP-W9CJviBrBQ80MRWWkQ@mail.gmail.com"
      type="cite">
      <br>
      Cheers,<br>
      <br>
      <div class="gmail_quote">2011/11/23 Daniel-Constantin Mierla <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            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'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 moz-do-not-send="true"
              href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
            Kamailio Advanced Training, Dec 5-8, Berlin: <a
              moz-do-not-send="true" href="http://asipto.com/u/kat"
              target="_blank">http://asipto.com/u/kat</a><br>
            <a moz-do-not-send="true"
              href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a>
            -- <a moz-do-not-send="true"
              href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
            <br>
          </font></blockquote>
      </div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Dec 5-8, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>