<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:803620940;
        mso-list-type:hybrid;
        mso-list-template-ids:-1437270432 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hey Daniel, Carsten,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have the latest version of the code Kamailio 3.2.3. and multi-domain enabled.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><a href="ftp://ftp.intouchhealth.com/pua_reginfo/pua_reginfo.log">ftp://ftp.intouchhealth.com/pua_reginfo/pua_reginfo.log</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><a href="ftp://ftp.intouchhealth.com/pua_reginfo/kamailio.cfg">ftp://ftp.intouchhealth.com/pua_reginfo/kamailio.cfg</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">username: Kamailio<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Password: 99Teaz<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I have tried to debug this myself,<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="color:#1F497D"><span style="mso-list:Ignore">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style="color:#1F497D">ul.get_udomain(c-&gt;domain-&gt;s, &amp;domain), returns a null domain.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="color:#1F497D"><span style="mso-list:Ignore">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style="color:#1F497D">ul.get_urecord(domain, c-&gt;aor, &amp;record), does return a valid record but the aor for the record is null.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="color:#1F497D"><span style="mso-list:Ignore">3.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><![endif]><span style="color:#1F497D">Since the domain is null, a default domain is used which is perfectly ok. But the default domain is being used to build a sip uri<o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="color:#1F497D">uri.len = snprintf(uri.s, uri.len, &quot;sip:%.*s@%.*s&quot;, record-&gt;aor.len, record-&gt;aor.s, default_domain.len, default_domain.s);<o:p></o:p></span></p>
<p class="MsoListParagraph"><span style="color:#1F497D">which builds uri = sip@&lt;default_domain&gt;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">lastly reginfo_handle_notify() reports error invalid command, forgot to load module. When I checked the source code in pua_reginfo.c this function accepts 1 parameter,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">I checked the coded that which was not using any parameter, and changed number of parameters to zero for and it worked.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thank you for looking into this, I&#8217;m trying to build a scalable Healthcare SIP network and Kamailio is the backbone for this.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards,<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="color:#1F497D">Gnaneshwar Gatla | InTouch Health | Software Developer<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">6330 Hollister Ave. Goleta CA, 93117 | P: 805.562.8686 ext: 199<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"> Daniel-Constantin Mierla [mailto:miconda@gmail.com]
<br>
<b>Sent:</b> Friday, May 04, 2012 1:49 AM<br>
<b>To:</b> SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List<br>
<b>Cc:</b> Gnaneshwar Gatla; Carsten Bock<br>
<b>Subject:</b> Re: [SR-Users] pua_reginfo: no Username in PUBLISH message<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Hello,<br>
<br>
can you update latest kamailio 3.2.3, there were some fixes to reginfo modules. Not sure if related, but at least is going to be the right version to troubleshoot on.<br>
<br>
Is your configuration set for multi-domain or not?<br>
<br>
Maybe Carsten, the developer, cc-ed, can provide other hints. It will be helpful to get the log messages with debug=3.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 5/3/12 12:09 AM, Gnaneshwar Gatla wrote: <o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Hello,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">I was looking at the pua_reginfo to make multiple instances of Kamailio be aware of registered users on the network.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">I&#8217;m experimenting with pua_reginfo with Kamailio 3.2.2. I&#8217;ve used the configuration as described in
<a href="http://kamailio.org/docs/modules/3.2.x/modules_k/pua_reginfo.html#id2551427">
<span style="color:#1F497D">http://kamailio.org/docs/modules/3.2.x/modules_k/pua_reginfo.html#id2551427</span></a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">I tried an trial run of the Kamailio instance and it gives the following output</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">PUBLISH <a href="sip:@64.64.203.108">
sip:@64.64.203.108</a> SIP/2.0</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Via: SIP/2.0/UDP 64.64.203.108;branch=z9hG4bKb62c.b8e3d5b5.0</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">To: <a href="sip:@64.64.203.108">
sip:@64.64.203.108</a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">From: <a href="sip:@64.64.203.108;tag=533cb9e91f4b999cf76861cbb9ed54ed-e085">
sip:@64.64.203.108;tag=533cb9e91f4b999cf76861cbb9ed54ed-e085</a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">CSeq: 10 PUBLISH</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Call-ID: <a href="mailto:17dedfff-14418@127.0.0.1">
17dedfff-14418@127.0.0.1</a></span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Content-Length: 320</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Max-Forwards: 70</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Event: reg</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Expires: 3601</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Content-Type: application/reginfo&#43;xml</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&lt;reginfo xmlns=&quot;urn:ietf:params:xml:ns:reginfo&quot; version=&quot;0&quot; state=&quot;full&quot;&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; &lt;registration aor=<a href="sip:@64.64.203.108">&quot;sip:@64.64.203.108&quot;</a> id=&quot;0xb6ef7740&quot; state=&quot;active&quot;&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp; &lt;contact id=&quot;0xb4d1f820&quot; state=&quot;active&quot; event=&quot;registered&quot; expires=&quot;60&quot; callid=&quot;ZmRjZDg3MmIxMjI5NmU1OWU0YjJlYWUzYzhjZDViM2I.&quot; cseq=&quot;2&quot;&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;uri&gt;<a href="sip:ggatla01@192.168.128.108:23840;rinstance=27b18eed9568795e;transport=udp">sip:ggatla01@192.168.128.108:23840;rinstance=27b18eed9568795e;transport=udp</a>&lt;/uri&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;&nbsp;&nbsp; &lt;/contact&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp; &lt;/registration&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&lt;/reginfo&gt;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">The PUA module does not insert username in the Request, To and From headers while publishing for Event: reg. The xml payload is right but the &#8220;aor&#8221; does not have the username.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Is there anything missing that I need to configure?</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Lastly, the presence module in the same Kamailio instance is generating &#8220;478 Unresolvable destination&#8221; for this message.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Regards</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Gnaneshwar Gatla | InTouch Health | Software Developer</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">6330 Hollister Ave. Goleta CA, 93117 | P: 805.562.8686 ext: 199</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><o:p></o:p></pre>
<pre><a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"><br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla - <a href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre>
<pre><a href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a><o:p></o:p></pre>
</div>
</body>
</html>