<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 06/09/2014 05:49 PM,
      Daniel-Constantin Mierla wrote:<br>
    </div>
    <blockquote cite="mid:5395D789.1010504@gmail.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Hello,<br>
    </blockquote>
    <br>
    Hi,<br>
    <br>
    <blockquote cite="mid:5395D789.1010504@gmail.com" type="cite">On
      09/06/14 17:41, Roberto Fichera wrote:<br>
      <blockquote cite="mid:5395D5AF.7000100@tekno-soft.it" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        [...]<br>
        <br>
        <blockquote cite="mid:5395CFC1.6090705@gmail.com" type="cite">
          your patch seems a bit to complex -- I didn't figure out why
          you store the message in pkg memory.<br>
        </blockquote>
        <br>
        Ok! So I will need to shm_malloc() the memory in such case,
        right?<br>
      </blockquote>
      I don't get why you need to do that at all. If you need to access
      from, to, etc..., you can get them from the SIP response. You go
      in dangerous zone as you do that cloning.<br>
    </blockquote>
    <br>
    The idea was to set a sip_msg just to have all the pseudo-variable
    available <br>
    within the event route and nothing else.<br>
    <br>
    <blockquote cite="mid:5395D789.1010504@gmail.com" type="cite">
      Because you want to execute the event route on 200ok, the best is
      to run the event route with the SIP response structure.<br>
    </blockquote>
    <br>
    At the beginning this was my choice, but I'd always got ps->req =
    NULL in the callback tmcb_params <br>
    hence the event route wasn't executed. But I'll re-try it just to be
    sure.<br>
    <br>
    BTW! using shm_malloc() I was finally able to execute the event
    route in the script with all the <br>
    pseudo-variable correctly set!<br>
    <br>
    Cheers,<br>
    Roberto Fichera.<br>
    <br>
    <blockquote cite="mid:5395D789.1010504@gmail.com" type="cite"> <br>
      Cheers,<br>
      Daniel<br>
      <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/#%21/miconda">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
      <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>
  </body>
</html>