<div dir="ltr"><div>Hi All,<br></div><div><br></div><div>Hopefully a simple question related to the behaviour of the presence module on my registrar. </div><div><br></div><div>I have configured OpenSIPs to enable dialoginfo updates against specific user agents. When the user agent places/receives a call the PUBLISH event is generated correctly. This resolves a UA at a locally served domain and pushes the request out to the public address of the local server.  In my environment this server is behind NAT and we end up seeing requests being generated and sent from the internal interface to the public address of the sending server which seems wrong, at at least inefficient. </div><div><br></div><div>Is anyone able to suggest an improvement to my configuration, perhaps I can improve domain awareness somehow? Is this the correct behaviour?</div><div><br></div><div>Many thanks,</div><div><br></div><div>Callum</div><div><br></div><div>----</div><div><br></div><div>Relevant configuration (running OpenSIPs 3.0.1):</div><div><br></div><div><font face="monospace">loadmodule "presence.so"<br></font></div><font face="monospace">loadmodule "presence_dialoginfo.so"<br>loadmodule "pua.so"<br>loadmodule "pua_dialoginfo.so"<br><br>modparam("presence", "server_address", "sip:<i>public-ip</i>:5060")<br>modparam("presence", "mix_dialog_presence", 1)<br>modparam("presence", "fallback2db", 1)<br>modparam("presence", "max_expires_subscribe", 14700)<br>modparam("presence", "max_expires_publish", 14700)<br></font><div><font face="monospace"><br></font></div><div><font face="monospace">...</font></div><div><font face="monospace"><br></font></div><div><font face="monospace"># Fired when placing a call</font></div><div><font face="monospace">route[ENABLE_BLF_CALLER] {<br>    xlog("L_INFO", "INFO: Enabling presence for calling party ($fu) ID:$ci\n");<br>    dialoginfo_set("A");<br>}<br><br># Fired when receiving a call<br>route[ENABLE_BLF_CALLEE] {<br>    xlog("L_INFO", "INFO: Enabling presence for called party ($ru) ID:$ci\n");<br>    dialoginfo_set("B");<br>}</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">---</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">Example transmission:</font></div><div><font face="monospace"><br></font></div><div><a href="http://192.168.153.210:5060">192.168.153.210:5060</a> -> PUBLIC-IP(of <a href="http://example.com">example.com</a>):5060<br><br>PUBLISH <a href="mailto:sip%3A12345@example.com">sip:12345@example.com</a> SIP/2.0<br>Via: SIP/2.0/UDP 192.168.153.210:5060;branch=z9hG4bK4316.2ff8a84.0<br>To: <a href="mailto:sip%3A12345@example.com">sip:12345@example.com</a><br>From: <<a href="mailto:sip%3A12345@example.com">sip:12345@example.com</a>>;tag=260776ec80eaeff43e316f7930643583-5872<br>CSeq: 10 PUBLISH<br>Call-ID: <a href="mailto:0168d45862da3b23-189847@192.168.153.210">0168d45862da3b23-189847@192.168.153.210</a><br>Max-Forwards: 70<br>Content-Length: 643<br>User-Agent: me<br>Event: dialog<br>Expires: 301<br>Content-Type: application/dialog-info+xml<br><br><?xml version="1.0"?><br><dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" state="partial" entity="<a href="mailto:sip%3A12345@example.com">sip:12345@example.com</a>"><dialog id="1ca15ca3-215b-4d9d-b401-770408889a6a_I_3150144_A0_5da442c9a33f9.0" call-id="1ca15ca3-215b-4d9d-b401-770408889a<br>_I_3150144_A0_5da442c9a33f9" local-tag="1323791516" remote-tag="UvKaaK3vUvega" direction="recipient"><state>early</state><remote><identity><a href="mailto:sip%3A01728726500@192.168.153.226">sip:01728726500@192.168.153.226</a></identity><target uri="<a href="mailto:sip%3A01728726500@192.168.153.226">sip:01728726500@192.168.153.226</a>"/></remote><<br>cal><identity><a href="mailto:sip%3A12345@example.com">sip:12345@example.com</a></identity><target uri="<a href="mailto:sip%3A12345@example.com">sip:12345@example.com</a>"/></local></dialog></dialog-info><br><br></div></div>

<br>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;text-align:justify"><font size="3" face="Verdana"><span style="font-size:8px;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span></font></p><div><img src="https://www.x-on.co.uk/email/footer/General-Practice-Awards-shortlisted.jpg"></div><div><br></div><div><div><div><font size="4"><b><sup><font face="Verdana">0333 332 0000  |  <a href="http://www.x-on.co.uk" target="_blank">www.x-on.co.uk</a>  |  <sub> </sub></font></sup></b></font><font size="4"><b><sub><sup><font face="Verdana"><a href="https://www.linkedin.com/company/x-on" target="_blank"><img src="http://www.x-on.co.uk//images/icon/linkedin.png" width="24" height="24"></a>  <a href="https://www.facebook.com/XonTel" target="_blank"><img src="http://www.x-on.co.uk//images/icon/facebook.png" width="24" height="24"></a>  <a href="https://twitter.com/xonuk" target="_blank"><img src="http://www.x-on.co.uk//images/icon/twitter.png" width="24" height="24"></a></font></sup></sub> </b></font><br><p><span style="font-size:6.0pt;font-family:Verdana;color:black">X-on
is a trading name of Storacall Technology Ltd a limited company registered in
England and Wales.<br>
Registered Office : Avaland House, 110 London Road, Apsley, Hemel Hempstead,
Herts, HP3 9SD. Company Registration No. 2578478.<br>
The information in this e-mail is confidential and for use by the addressee(s)
only. If you are not the intended recipient, please notify X-on immediately on <span>+44(0)333 332 0000</span> and delete the<br>message from your computer. If you are not a named addressee you must not use,
disclose, disseminate, distribute, copy, print or reply to this email. </span><span style="font-size:6.0pt;font-family:Verdana;color:black">Views
or opinions expressed by an individual<br>within this email may not necessarily
reflect the views of X-on or its associated companies. Although X-on routinely
screens for viruses, addressees should scan this email and any attachments<br>for
viruses. X-on makes no representation or warranty as to the absence of viruses
in this email or any attachments.</span></p>





<p><span style="font-size:6.0pt;font-family:Verdana;color:black"></span><font size="2"><span style="font-size:6.0pt;font-family:Verdana;color:black"></span></font></p></div></div></div>