<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    to store in a value in a dialog_var record, you have to set a PV for
    it:<br>
    <br>
<a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/dialog.html#id2555403">http://kamailio.org/docs/modules/stable/modules_k/dialog.html#id2555403</a><br>
    <br>
    Alternative, you can use hashtable with a key composed from dialog
    id (or callid) and some other string to identify your value.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 6/2/12 9:47 AM, SamyGo wrote:<br>
    </div>
    <blockquote
cite="mid:CAJUJwthuB0Jaev3P4mNwCtdpdDj7=uFuAqnToC4wT8f3vakb_A@mail.gmail.com"
      type="cite">Hello
      <div><br>
      </div>
      <div><br>
      </div>
      <div>I've two problems regarding dialog module- used for profiling
        users that are in-a-call.</div>
      <div><br>
      </div>
      <div>My topology is quiet simple.</div>
      <div><br>
      </div>
      <div>
        <div><br class="Apple-interchange-newline">
          SIP-USER-71141----&gt;Kamailio-------------&gt;Asterisk[AGI]||</div>
        <div>CALLEE&lt;-----------------Kamailio&lt;--------------------------------||</div>
        <br class="Apple-interchange-newline">
      </div>
      <div><br>
      </div>
      <div>1- I wish to store my custom SIP header value in profiles.</div>
      <div><br>
      </div>
      <div>I'm having trouble in figuring out on how to use Dialog_vars
        table in my kamailio server. I'm using dialog module to profile
        SIP users that are in call or making a call. It works well and
        the dialog maintains an entry when the call is established. Now,
        the difficult part is that I want my custom header to be
        inserted into either dialog table or dialog_vars table such that
        when I do a query "<b>is_in_profile("$avp(my_value)")</b>" it
        returns me a result.</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div>2- Alternative to 1, I can log A,B leg separately but it
        doesn't erase all data on call hangup.</div>
      <div><br>
      </div>
      <div>Asterisk AGI changes the caller-id of SIP-USERA such that if
        it was 71141 it would be something like "007" on its way out to
        destination via kamailio. Now, at this point in kamailio when
        the call is answered by destination the dialog module saves the
        call data with values corresponding to "007" and not "71141".</div>
      <div>I have to disable the&nbsp;<span
          style="background-color:rgb(254,254,238)">"dialog",
          "detect_spirals" in order to count this one call as two
          separate entities BUT problem occurs when on hangup the B-Leg
          gets erased from the table but the A-leg remains in DB for as
          long as &nbsp;infinity.</span></div>
      <div><span style="background-color:rgb(254,254,238)"><br>
        </span></div>
      <div><span style="background-color:rgb(254,254,238)">Please help
          me in this.&nbsp;</span></div>
      <div><span style="background-color:rgb(254,254,238)">Let me know
          if more details are required from me.</span></div>
      <div><span style="background-color:rgb(254,254,238)"><br>
        </span></div>
      <div><span style="background-color:rgb(254,254,238)">Regards,</span></div>
      <div><span style="background-color:rgb(254,254,238)">Sammy G.</span></div>
      <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>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/katu">http://asipto.com/u/katu</a>
Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - <a class="moz-txt-link-freetext" href="http://asipto.com/u/kpw">http://asipto.com/u/kpw</a></pre>
    <br>
    <br>
  </body>
</html>