<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 1/19/12 11:22 AM, Giacomo Vacca wrote:
    <blockquote
      cite="mid:A4E41C20520BEC409F1B16BA9FD72D34C82DEE@itixex01"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Tahoma}
@font-face
        {font-family:Consolas}
@font-face
        {font-family:"Times New Roman \, serif"}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black}
span.HTMLPreformattedChar
        {font-family:Consolas;
        color:black}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Calibri","sans-serif";
        color:black}
span.emailstyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
span.htmlpreformattedchar0
        {font-family:Consolas;
        color:black}
span.emailstyle23
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
span.EmailStyle24
        {font-family:"Calibri","sans-serif";
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:72.0pt 72.0pt 72.0pt 72.0pt}
div.WordSection1
        {}
-->
</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">Hi Daniel,</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Thanks for your
            feedback. Yes, using mysql and enabling presence made it
            work for un-registrations too.</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Just for the
            purpose of this scenario I&#8217;m sending the PUBLISH back to the
            same entity, and it&#8217;s being handled as a presentity.</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">I still have a
            missing piece though (which is in fact the reason for this
            configuration): having PUBLISH requests triggered by the
            expiration of a contact.</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">When a contact
            expires, pua_usrloc is now logging:</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Jan 19 10:12:03 debian6
            /usr/sbin/kamailio[4359]: INFO: pua_usrloc
            [ul_publish.c:211]: should not send ul publish</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">(please see
            below for traces and details).</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Since I&#8217;m
            marking a registration with pua_set_publish(), why is that
            flag not seen as true when usrloc fires an EXPIRE callback?</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">I&#8217;ve tried
            marking every REGISTER request with pua_set_publish(), and
            not just the first one, before calling save(&#8220;location&#8221;) but
            the result was the same.</span></p>
      </div>
    </blockquote>
    <br>
    the PUBLISH for registration expiration does not make sense, as
    PUBLISH has also an expire interval, so the record in the presence
    server should expire at the same time. A publish with update state
    to close will eventually hit the presence server when there is no
    record for it. Presence server will send notifications when the
    record in its table expires.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <br>
    <blockquote
      cite="mid:A4E41C20520BEC409F1B16BA9FD72D34C82DEE@itixex01"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Thanks again,</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Giacomo</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">First
            registration and PUBLISH:</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">U 2012/01/19 10:08:46.867546
            192.168.142.1:13752 -&gt; 192.168.142.131:5060</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">REGISTER <a class="moz-txt-link-freetext" href="sip:192.168.142.131">sip:192.168.142.131</a> SIP/2.0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Via: SIP/2.0/UDP
192.168.142.1:13752;branch=z9hG4bK-d8754z-6dcc94d7866db11d-1---d8754z-;rport.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Max-Forwards: 70.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Contact:
            <a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.1:13752;rinstance=f949af25d45274c6">&lt;sip:2070109@192.168.142.1:13752;rinstance=f949af25d45274c6&gt;</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">To:
            "GV_XLite"<a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.131">&lt;sip:2070109@192.168.142.131&gt;</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">From:
            "GV_XLite"<a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.131">&lt;sip:2070109@192.168.142.131&gt;</a>;tag=0c957d3f.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Call-ID:
            ZmI1OGFhMzIyYTExNTYzOTIzNDRiZmI1NjQzZGZhZDI..</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">CSeq: 1 REGISTER.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Expires: 3600.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Allow: INVITE, ACK, CANCEL, OPTIONS, BYE,
            REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">User-Agent: X-Lite 4 release 4.1 stamp
            63214.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Content-Length: 0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">U 2012/01/19 10:08:46.870154
            192.168.142.131:5060 -&gt; 127.0.0.1:5060</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">PUBLISH <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1">sip:2070109@127.0.0.1</a> SIP/2.0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Via: SIP/2.0/UDP
            192.168.142.131;branch=z9hG4bK0722.77d94013.0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">To: <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1">sip:2070109@127.0.0.1</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">From:
            <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-168c">sip:2070109@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-168c</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">CSeq: 10 PUBLISH.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:7fedefec-4355@127.0.0.1">7fedefec-4355@127.0.0.1</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Content-Length: 338.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">User-Agent: kamailio (3.2.1 (i386/linux)).</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Max-Forwards: 70.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Event: presence.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Expires: 61.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Content-Type: application/pidf+xml.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&lt;?xml version="1.0"?&gt;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&lt;presence
            xmlns="urn:ietf:params:xml:ns:pidf"
            xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
            xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
            xmlns:c="urn:ietf:params:xml:ns:pidf:cipid"
            entity=<a class="moz-txt-link-rfc2396E" href="mailto:2070109@127.0.0.1">"2070109@127.0.0.1"</a>&gt;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp; &lt;tuple id="0xb727ad14"&gt;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp; &lt;status&gt;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;basic&gt;open&lt;/basic&gt;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp; &lt;/status&gt;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp; &lt;/tuple&gt;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&lt;/presence&gt;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">U 2012/01/19 10:08:46.872917
            127.0.0.1:5060 -&gt; 192.168.142.131:5060</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">SIP/2.0 200 OK.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Via: SIP/2.0/UDP
            192.168.142.131;branch=z9hG4bK0722.77d94013.0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">To:
            <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1;tag=a6a1c5f60faecf035a1ae5b6e96e979a-106f">sip:2070109@127.0.0.1;tag=a6a1c5f60faecf035a1ae5b6e96e979a-106f</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">From:
            <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-168c">sip:2070109@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-168c</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">CSeq: 10 PUBLISH.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:7fedefec-4355@127.0.0.1">7fedefec-4355@127.0.0.1</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Expires: 60.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">SIP-ETag: a.1326967203.4352.2.0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Server: kamailio (3.2.1 (i386/linux)).</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Content-Length: 0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">U 2012/01/19 10:08:46.874271
            192.168.142.131:5060 -&gt; 192.168.142.1:13752</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">SIP/2.0 200 OK.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Via: SIP/2.0/UDP
192.168.142.1:13752;branch=z9hG4bK-d8754z-6dcc94d7866db11d-1---d8754z-;rport=13752.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">To:
"GV_XLite"<a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.131">&lt;sip:2070109@192.168.142.131&gt;</a>;tag=b27e1a1d33761e85846fc98f5f3a7e58.4cd5.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">From:
            "GV_XLite"<a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.131">&lt;sip:2070109@192.168.142.131&gt;</a>;tag=0c957d3f.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Call-ID:
            ZmI1OGFhMzIyYTExNTYzOTIzNDRiZmI1NjQzZGZhZDI..</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">CSeq: 1 REGISTER.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Contact:
<a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.1:13752;rinstance=f949af25d45274c6">&lt;sip:2070109@192.168.142.1:13752;rinstance=f949af25d45274c6&gt;</a>;expires=60.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Server: kamailio (3.2.1 (i386/linux)).</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Content-Length: 0.</span></p>
        <p class="MsoNormal"><span style="font-family:&quot;Courier
            New&quot;; color:windowtext">.</span><span
            style="color:#1F497D"></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Registration
            refresh and PUBLISH:</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">U 2012/01/19 10:09:41.599554
            192.168.142.1:13752 -&gt; 192.168.142.131:5060</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">REGISTER <a class="moz-txt-link-freetext" href="sip:192.168.142.131">sip:192.168.142.131</a> SIP/2.0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Via: SIP/2.0/UDP
192.168.142.1:13752;branch=z9hG4bK-d8754z-4e5bc39865a12b22-1---d8754z-;rport.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Max-Forwards: 70.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Contact:
            <a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.1:13752;rinstance=f949af25d45274c6">&lt;sip:2070109@192.168.142.1:13752;rinstance=f949af25d45274c6&gt;</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">To:
            "GV_XLite"<a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.131">&lt;sip:2070109@192.168.142.131&gt;</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">From:
            "GV_XLite"<a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.131">&lt;sip:2070109@192.168.142.131&gt;</a>;tag=0c957d3f.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Call-ID:
            ZmI1OGFhMzIyYTExNTYzOTIzNDRiZmI1NjQzZGZhZDI..</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">CSeq: 2 REGISTER.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Expires: 3600.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Allow: INVITE, ACK, CANCEL, OPTIONS, BYE,
            REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">User-Agent: X-Lite 4 release 4.1 stamp
            63214.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Content-Length: 0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">U 2012/01/19 10:09:41.605967
            192.168.142.131:5060 -&gt; 127.0.0.1:5060</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">PUBLISH <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1">sip:2070109@127.0.0.1</a> SIP/2.0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Via: SIP/2.0/UDP
            192.168.142.131;branch=z9hG4bK568c.a38addc4.0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">To: <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1">sip:2070109@127.0.0.1</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">From:
            <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-001d">sip:2070109@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-001d</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">CSeq: 10 PUBLISH.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:7fedefed-4357@127.0.0.1">7fedefed-4357@127.0.0.1</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Content-Length: 0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">User-Agent: kamailio (3.2.1 (i386/linux)).</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Max-Forwards: 70.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Event: presence.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Expires: 61.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">SIP-If-Match: a.1326967203.4352.2.0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">U 2012/01/19 10:09:41.617174
            127.0.0.1:5060 -&gt; 192.168.142.131:5060</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">SIP/2.0 200 OK.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Via: SIP/2.0/UDP
            192.168.142.131;branch=z9hG4bK568c.a38addc4.0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">To:
            <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1;tag=a6a1c5f60faecf035a1ae5b6e96e979a-70c8">sip:2070109@127.0.0.1;tag=a6a1c5f60faecf035a1ae5b6e96e979a-70c8</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">From:
            <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-001d">sip:2070109@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-001d</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">CSeq: 10 PUBLISH.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:7fedefed-4357@127.0.0.1">7fedefed-4357@127.0.0.1</a>.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Expires: 60.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">SIP-ETag: a.1326967203.4351.2.1.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Server: kamailio (3.2.1 (i386/linux)).</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Content-Length: 0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">U 2012/01/19 10:09:41.620221
            192.168.142.131:5060 -&gt; 192.168.142.1:13752</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">SIP/2.0 200 OK.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Via: SIP/2.0/UDP
192.168.142.1:13752;branch=z9hG4bK-d8754z-4e5bc39865a12b22-1---d8754z-;rport=13752.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">To:
"GV_XLite"<a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.131">&lt;sip:2070109@192.168.142.131&gt;</a>;tag=b27e1a1d33761e85846fc98f5f3a7e58.9769.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">From:
            "GV_XLite"<a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.131">&lt;sip:2070109@192.168.142.131&gt;</a>;tag=0c957d3f.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Call-ID:
            ZmI1OGFhMzIyYTExNTYzOTIzNDRiZmI1NjQzZGZhZDI..</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">CSeq: 2 REGISTER.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Contact:
<a class="moz-txt-link-rfc2396E" href="sip:2070109@192.168.142.1:13752;rinstance=f949af25d45274c6">&lt;sip:2070109@192.168.142.1:13752;rinstance=f949af25d45274c6&gt;</a>;expires=60.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Server: kamailio (3.2.1 (i386/linux)).</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Content-Length: 0.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">.</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Now pua table
            contains:</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&gt; SELECT * FROM pua\G</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">*************************** 1. row
            ***************************</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id: 12</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pres_uri: <a class="moz-txt-link-freetext" href="sip:2070109@127.0.0.1">sip:2070109@127.0.0.1</a></span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pres_id:
            UL_PUBLISH.ZmI1OGFhMzIyYTExNTYzOTIzNDRiZmI1NjQzZGZhZDI.</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; event: 1</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expires: 1326967841</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">desired_expires: 1326967841</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; flag: 1</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; etag: a.1326967203.4351.2.1</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tuple_id: 0xb727ad14</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp; watcher_uri:
          </span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call_id:
          </span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to_tag:
          </span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from_tag:
          </span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cseq: 0</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp; record_route:
          </span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contact:
          </span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;remote_contact:
          </span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;version: 1</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">&nbsp; extra_headers:
          </span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">1 row in set (0.00 sec)</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Then I kill the
            client, and wait for the contact expiration. This is logged
            (debug level 4), and no PUBLISH issued:</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Jan 19 10:12:03 debian6
            /usr/sbin/kamailio[4359]: DEBUG: usrloc [ul_callback.h:89]:
            contact=0xb4db7638, callback type 8/8, id 1 entered</span></p>
        <p class="MsoNormal" style="text-autospace:none"><span
            style="font-family:&quot;Courier New&quot;;
            color:windowtext">Jan 19 10:12:03 debian6
            /usr/sbin/kamailio[4359]: INFO: pua_usrloc
            [ul_publish.c:211]: should not send ul publish</span></p>
        <p class="MsoNormal"><span style="font-family:&quot;Courier
            New&quot;; color:windowtext">Jan 19 10:12:03 debian6
            /usr/sbin/kamailio[4359]: DEBUG: usrloc [urecord.c:246]:
            Binding
            '2070109','<a class="moz-txt-link-freetext" href="sip:2070109@192.168.142.1:13752;rinstance=f949af25d45274c6">sip:2070109@192.168.142.1:13752;rinstance=f949af25d45274c6</a>'
            has expired</span><span style="color:#1F497D"></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
        <div>
          <div style="border:none; border-top:solid #B5C4DF 1.0pt;
            padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span style="font-size:10.0pt;
                  font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
                  color:windowtext" lang="EN-US">From:</span></b><span
                style="font-size:10.0pt;
                font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;
                color:windowtext" lang="EN-US"> Daniel-Constantin Mierla
                [<a class="moz-txt-link-freetext" href="mailto:miconda@gmail.com">mailto:miconda@gmail.com</a>] <br>
                <b>Sent:</b> 18 January 2012 21:17<br>
                <b>To:</b> SIP Router - Kamailio (OpenSER) and SIP
                Express Router (SER) - Users Mailing List<br>
                <b>Cc:</b> Giacomo Vacca<br>
                <b>Subject:</b> Re: [SR-Users] pua_usrloc, PUBLISH not
                send when contact is deleted or expires</span></p>
          </div>
        </div>
        <p class="MsoNormal">&nbsp;</p>
        <p class="MsoNormal">Hello,<br>
          <br>
          On 1/18/12 12:50 PM, Giacomo Vacca wrote: </p>
        <div>
          <p class="MsoNormal"><span style="color:#1F497D">Thanks
              Daniel,</span></p>
          <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span></p>
          <p class="MsoNormal"><span style="color:#1F497D">&gt; </span><span
              style="font-size:12.0pt; font-family:&quot;Times New Roman
              , serif&quot;,&quot;serif&quot;">can you switch to nightly
              builds from branch 3.2 just to be sure it is not related
              to something that was fixed since 3.2.0 was released?</span></p>
          <p class="MsoNormal"><span style="font-size:12.0pt;
              font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;</span></p>
          <p class="MsoNormal"><span style="font-size:12.0pt;
              font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">I&#8217;ve
              switched and now have installed 3.2.1, and moved to sqlite
              too.</span></p>
          <p class="MsoNormal"><span style="font-size:12.0pt;
              font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">I&#8217;ve
              spent some time to verify a change in behaviour, but I&#8217;m
              observing the same.</span></p>
          <p class="MsoNormal"><span style="font-size:12.0pt;
              font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">Registering
              with a different device (e.g. sipp) gives the same result.</span></p>
        </div>
        <p class="MsoNormal"><span style="font-size:12.0pt;
            font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><br>
            I tested with default config, where I enabled mysql and
            presence service, plus loaded and configured pua and
            pua_usrloc similar to your snippet. All seemed ok, I pasted
            the ngrep to the end of my reply, first for register and
            then for un-register.<br>
            <br>
            In your case, is the publish for registration getting 200ok?<br>
          </span><span style="font-size:12.0pt; font-family:&quot;Times
            New Roman , serif&quot;,&quot;serif&quot;"><br>
            <br>
          </span><span style="font-size:12.0pt; font-family:&quot;Times
            New Roman&quot;,&quot;serif&quot;"></span></p>
        <div>
          <p class="MsoNormal"><span style="font-size:12.0pt;
              font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;</span></p>
          <p class="MsoNormal"><span style="color:#1F497D">&gt; </span><span
              style="font-size:12.0pt; font-family:&quot;Times New Roman
              , serif&quot;,&quot;serif&quot;">db_text is not really
              suitable for dealing with large data and write to disk
              when the sip server is shut down, maybe it is better to
              use db_sqlite for this case, at least you can check the
              content of the db table with sqlite tools.</span></p>
          <p class="MsoNormal"><span style="font-size:12.0pt;
              font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;</span></p>
          <p class="MsoNormal"><span style="font-size:12.0pt;
              font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">My
              current goal is a proof of concept so I&#8217;m not concerned
              about performances &#8211; am I right in thinking that the
              problem in finding the presentity in pua&#8217;s hash table is
              independent from the DB usage, or may it have an impact?</span></p>
        </div>
        <p class="MsoNormal" style="margin-bottom:12.0pt"><span
            style="font-size:12.0pt; font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;"><br>
            Well, the issue of using db_text might be with storing the
            xml documents (publish body) in presence table. db_text
            keeps a raw per line in a text file.<br>
            <br>
            Cheers,<br>
            Daniel<br>
            <br>
            <br>
            U 2012/01/18 21:52:40.729795 127.0.0.1:57982 -&gt;
            127.0.0.1:5060<br>
            REGISTER <a moz-do-not-send="true" href="sip:127.0.0.1">sip:127.0.0.1</a>
            SIP/2.0.<br>
            Via: SIP/2.0/UDP
            127.0.1.1:5080;branch=z9hG4bK.29f7bb6d;rport;alias.<br>
            From: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=41f6277b">sip:test@127.0.0.1;tag=41f6277b</a>.<br>
            To: <a moz-do-not-send="true" href="sip:test@127.0.0.1">sip:test@127.0.0.1</a>.<br>
            Call-ID: <a moz-do-not-send="true"
              href="mailto:1106651003@127.0.1.1">1106651003@127.0.1.1</a>.<br>
            CSeq: 1 REGISTER.<br>
            Content-Length: 0.<br>
            Max-Forwards: 70.<br>
            User-Agent: sipsak 0.9.6.<br>
            Expires: 70.<br>
            Contact: <a moz-do-not-send="true"
              href="sip:test@127.0.1.1:5080">sip:test@127.0.1.1:5080</a>.<br>
            .<br>
            <br>
            <br>
            U 2012/01/18 21:52:40.732876 127.0.0.1:5060 -&gt;
            127.0.0.1:5060<br>
            PUBLISH <a moz-do-not-send="true" href="sip:test@127.0.0.1">sip:test@127.0.0.1</a>
            SIP/2.0.<br>
            Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK25a7.88a7c0d5.0.<br>
            To: <a moz-do-not-send="true" href="sip:test@127.0.0.1">sip:test@127.0.0.1</a>.<br>
            From: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-76e3">sip:test@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-76e3</a>.<br>
            CSeq: 10 PUBLISH.<br>
            Call-ID: <a moz-do-not-send="true"
              href="mailto:53162b3d3a4cff50-20164@127.0.0.1">53162b3d3a4cff50-20164@127.0.0.1</a>.<br>
            Content-Length: 339.<br>
            User-Agent: kamailio (3.3.0-dev5 (x86_64/linux)).<br>
            Max-Forwards: 70.<br>
            Event: presence.<br>
            Expires: 71.<br>
            Content-Type: application/pidf+xml.<br>
            .<br>
            &lt;?xml version="1.0"?&gt;<br>
            &lt;presence xmlns="urn:ietf:params:xml:ns:pidf"
            xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model"
            xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"
            xmlns:c="urn:ietf:params:xml:ns:pidf:cipid" entity=<a
              moz-do-not-send="true" href="mailto:test@127.0.0.1">"test@127.0.0.1"</a>&gt;<br>
            &nbsp; &lt;tuple id="0x7f6352b80eb0"&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;status&gt;<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;basic&gt;open&lt;/basic&gt;<br>
            &nbsp;&nbsp;&nbsp; &lt;/status&gt;<br>
            &nbsp; &lt;/tuple&gt;<br>
            &lt;/presence&gt;<br>
            <br>
            <br>
            U 2012/01/18 21:52:40.733052 127.0.0.1:5060 -&gt;
            127.0.0.1:57982<br>
            SIP/2.0 200 OK.<br>
            Via: SIP/2.0/UDP
127.0.1.1:5080;branch=z9hG4bK.29f7bb6d;rport=57982;alias;received=127.0.0.1.<br>
            From: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=41f6277b">sip:test@127.0.0.1;tag=41f6277b</a>.<br>
            To: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=b27e1a1d33761e85846fc98f5f3a7e58.12b3">sip:test@127.0.0.1;tag=b27e1a1d33761e85846fc98f5f3a7e58.12b3</a>.<br>
            Call-ID: <a moz-do-not-send="true"
              href="mailto:1106651003@127.0.1.1">1106651003@127.0.1.1</a>.<br>
            CSeq: 1 REGISTER.<br>
            Contact: <a moz-do-not-send="true"
              href="sip:test@127.0.1.1:5080">&lt;sip:test@127.0.1.1:5080&gt;</a>;expires=70.<br>
            Server: kamailio (3.3.0-dev5 (x86_64/linux)).<br>
            Content-Length: 0.<br>
            .<br>
            <br>
            <br>
            U 2012/01/18 21:52:40.740026 127.0.0.1:5060 -&gt;
            127.0.0.1:5060<br>
            SIP/2.0 200 OK.<br>
            Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK25a7.88a7c0d5.0.<br>
            To: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=a6a1c5f60faecf035a1ae5b6e96e979a-0f93">sip:test@127.0.0.1;tag=a6a1c5f60faecf035a1ae5b6e96e979a-0f93</a>.<br>
            From: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-76e3">sip:test@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-76e3</a>.<br>
            CSeq: 10 PUBLISH.<br>
            Call-ID: <a moz-do-not-send="true"
              href="mailto:53162b3d3a4cff50-20164@127.0.0.1">53162b3d3a4cff50-20164@127.0.0.1</a>.<br>
            Expires: 71.<br>
            SIP-ETag: a.1326919182.20164.3.0.<br>
            Server: kamailio (3.3.0-dev5 (x86_64/linux)).<br>
            Content-Length: 0.<br>
            .<br>
            <br>
            <br>
            <br>
            <br>
            U 2012/01/18 21:53:01.800384 127.0.0.1:36942 -&gt;
            127.0.0.1:5060<br>
            REGISTER <a moz-do-not-send="true" href="sip:127.0.0.1">sip:127.0.0.1</a>
            SIP/2.0.<br>
            Via: SIP/2.0/UDP
            127.0.1.1:5080;branch=z9hG4bK.55f81f68;rport;alias.<br>
            From: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=2f3b5433">sip:test@127.0.0.1;tag=2f3b5433</a>.<br>
            To: <a moz-do-not-send="true" href="sip:test@127.0.0.1">sip:test@127.0.0.1</a>.<br>
            Call-ID: <a moz-do-not-send="true"
              href="mailto:792417331@127.0.1.1">792417331@127.0.1.1</a>.<br>
            CSeq: 1 REGISTER.<br>
            Content-Length: 0.<br>
            Max-Forwards: 70.<br>
            User-Agent: sipsak 0.9.6.<br>
            Expires: 0.<br>
            Contact: <a moz-do-not-send="true"
              href="sip:test@127.0.1.1:5080">sip:test@127.0.1.1:5080</a>.<br>
            .<br>
            <br>
            <br>
            U 2012/01/18 21:53:01.802227 127.0.0.1:5060 -&gt;
            127.0.0.1:5060<br>
            PUBLISH <a moz-do-not-send="true" href="sip:test@127.0.0.1">sip:test@127.0.0.1</a>
            SIP/2.0.<br>
            Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK2bad.75340815.0.<br>
            To: <a moz-do-not-send="true" href="sip:test@127.0.0.1">sip:test@127.0.0.1</a>.<br>
            From: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-e8e8">sip:test@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-e8e8</a>.<br>
            CSeq: 10 PUBLISH.<br>
            Call-ID: <a moz-do-not-send="true"
              href="mailto:53162b3d3a4cff51-20163@127.0.0.1">53162b3d3a4cff51-20163@127.0.0.1</a>.<br>
            Content-Length: 0.<br>
            User-Agent: kamailio (3.3.0-dev5 (x86_64/linux)).<br>
            Max-Forwards: 70.<br>
            Event: presence.<br>
            Expires: 0.<br>
            SIP-If-Match: a.1326919182.20164.3.0.<br>
            .<br>
            <br>
            <br>
            U 2012/01/18 21:53:01.802366 127.0.0.1:5060 -&gt;
            127.0.0.1:36942<br>
            SIP/2.0 200 OK.<br>
            Via: SIP/2.0/UDP
127.0.1.1:5080;branch=z9hG4bK.55f81f68;rport=36942;alias;received=127.0.0.1.<br>
            From: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=2f3b5433">sip:test@127.0.0.1;tag=2f3b5433</a>.<br>
            To: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=b27e1a1d33761e85846fc98f5f3a7e58.a177">sip:test@127.0.0.1;tag=b27e1a1d33761e85846fc98f5f3a7e58.a177</a>.<br>
            Call-ID: <a moz-do-not-send="true"
              href="mailto:792417331@127.0.1.1">792417331@127.0.1.1</a>.<br>
            CSeq: 1 REGISTER.<br>
            Server: kamailio (3.3.0-dev5 (x86_64/linux)).<br>
            Content-Length: 0.<br>
            .<br>
            <br>
            <br>
            U 2012/01/18 21:53:01.806937 127.0.0.1:5060 -&gt;
            127.0.0.1:5060<br>
            SIP/2.0 200 OK.<br>
            Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK2bad.75340815.0.<br>
            To: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=a6a1c5f60faecf035a1ae5b6e96e979a-2698">sip:test@127.0.0.1;tag=a6a1c5f60faecf035a1ae5b6e96e979a-2698</a>.<br>
            From: <a moz-do-not-send="true"
              href="sip:test@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-e8e8">sip:test@127.0.0.1;tag=533cb9e91f4b999cf76861cbb9ed54ed-e8e8</a>.<br>
            CSeq: 10 PUBLISH.<br>
            Call-ID: <a moz-do-not-send="true"
              href="mailto:53162b3d3a4cff51-20163@127.0.0.1">53162b3d3a4cff51-20163@127.0.0.1</a>.<br>
            Expires: 0.<br>
            SIP-ETag: a.1326919182.20164.3.0.<br>
            Server: kamailio (3.3.0-dev5 (x86_64/linux)).<br>
            Content-Length: 0.<br>
            .</span></p>
      </div>
      <p class="MsoNormal" style="text-align:justify"><span
          style="font-size:11.0pt;
          font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Truphone
          Limited is a limited liability company registered in England
          &amp; Wales, registered office: 5 New Street Square, London
          EC4A 3TW.
          <span class="GramE">Registered No. 04187081.</span> VAT No. <span
            class="GramE">GB 851 5278 19.</span>
        </span></p>
      <p class="MsoNormal" style="text-align:justify"><span
          class="SpellE"><span style="font-size:11.0pt;
            font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">Tru</span></span><span
          style="font-size:11.0pt;
          font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"> is a
          brand name of Truphone and is a Truphone Communications
          Service. Truphone is a trading name for a number of distinct
          legal entities that operate in combination.
        </span><a moz-do-not-send="true" href="http://www.truphone.com"><span
            style="font-size:11.0pt;
            font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">www.truphone.com</span></a><span
          style="font-size:11.0pt;
          font-family:&quot;Arial&quot;,&quot;sans-serif&quot;">.</span></p>
      <br clear="all">
      This e-mail, and any attachment(s), may contain information which
      is confidential and/or privileged, and is intended for the
      addressee only. If you are not the intended recipient, you may not
      use, disclose, copy or distribute this information in any manner
      whatsoever. If you have received this e-mail in error, please
      contact the sender immediately and delete it.<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>
<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>