<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello,<br>
    <br>
    On 3/2/12 2:28 AM, Krishna Kurapati wrote:
    <blockquote
cite="mid:CAOzCjAdZ47zE9JEnSHo_Qra91Ha2UUhhPdQGP5mDtrFiT_Kv_w@mail.gmail.com"
      type="cite">Hi,
      <div><br>
      </div>
      <div>I have been looking at the usrloc module's source code to see
        how the uuid that is sent in +sip.instance parameter</div>
      <div>in the Contact header.&nbsp;Apparently, the module ensures that
        only one contact per uuid exists. However the uuid</div>
      <div>is not stored in the database.</div>
      <div><br>
      </div>
      <div>The reason I need the uuid in the database is to access it
        when the iOS device is offline inorder to send a push
        notification.</div>
      <div>I am using pjsip which supports sending the uuid of the
        device ( w/ rfc 5626 support)&nbsp;in the REGISTER message.</div>
      <div><br>
      </div>
      <div>Has anyone implemented push notification using this or other
        methods using Kamailio?</div>
    </blockquote>
    the modules_s/usrloc keeps the sip instance in db, support k version
    is planned for next major release (either merge with s version and a
    new one combining most of the features, while keeping existing ones
    for safety).<br>
    <br>
    However, if I got it right, it does not help storing the uuid in
    location table, because you want it for the case when the device is
    offline -- that means there is no location record for it. What you
    need is a separate table mapping uuid to the user, and you can build
    that using htable or sqlops.<br>
    <br>
    You can receive the +sip.instance parameter from contact with
    transformations:<br>
    <br>
    $(hdr(Contact){tobody.params}{param.value,
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    +sip.instance})<br>
    <br>
    Cheers,<br>
    Daniel<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://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>