<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Can you print $ct.fields(uri) instead of $ct?<br>
Also, please post the output on pastebin.com.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 10/31/2017 03:47 PM, Răzvan Crainea
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:9eb0a075-7235-fba0-83c9-62c3ab5de93f@opensips.org">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<tt>Hi, Dragomir!<br>
<br>
Please post the logs I asked you to.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 10/31/2017 03:45 PM, Sumit Birla
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:8045BDD6-2077-4CCC-B6C3-7E007AF631F3@tampahost.net">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<div class="">X-Lite figures out its public IP and uses that in
Via: and Contact: headers unless you set ‘Firewall traversal
method’ to ‘None’ in the account settings.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div>
<blockquote type="cite" class="">
<div class="">On Oct 31, 2017, at 9:14 AM, Dragomir
Haralambiev <<a href="mailto:goup2010@gmail.com"
class="" moz-do-not-send="true">goup2010@gmail.com</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">When REGISTER received from X-lite
all is OK. Here part from REGISTER message:<br class="">
<br class="">
<div class=""> REGISTER <a
href="sip:OpenSip_IP:Opensips_port;transport=UDP"
class="" moz-do-not-send="true">sip:OpenSip_IP:Opensips_port;transport=UDP</a>
SIP/2.0</div>
<div class=""> Via: SIP/2.0/UDP
219.101.241.150:64726;branch=z9hG4bK-524287-1---39ee8718032a1a5a;rport<br
class="">
Contact: <<a
href="sip:577222@219.101.241.150:64726;transport=UDP;rinstance=d6122d9250e9d0bd"
class="" moz-do-not-send="true">sip:577222@219.101.241.150:64726;transport=UDP;rinstance=d6122d9250e9d0bd</a>><br
class="">
<br class="">
Here "Via" contains real IP (this is Route IP).<br
class="">
<br class="">
When REGISTER received from Yealink VoIP phone I have
problem. Here part from REGISTER message:<br class="">
<br class="">
</div>
<div class="">
<div class=""> REGISTER <a
href="sip:OpenSip_IP:Opensips_port" class=""
moz-do-not-send="true">sip:OpenSip_IP:Opensips_port</a> SIP/2.0</div>
<div class=""> Via: SIP/2.0/UDP
192.168.2.207:5062;branch=z9hG4bK77238423<br
class="">
Contact: <<a
href="http://sip:55896207@192.168.2.207:5062/"
class="" moz-do-not-send="true">sip:55896207@192.168.2.207:5062</a>><br
class="">
<br class="">
Here "Via" contains not real IP (this is Yealink
IP).<br class="">
<br class="">
What I do ?</div>
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">2017-10-31 14:18 GMT+02:00
Răzvan Crainea <span dir="ltr" class=""><<a
href="mailto:razvan@opensips.org" target="_blank"
class="" moz-do-not-send="true">razvan@opensips.org</a>></span>:<br
class="">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF" class=""> <tt
class="">So you did manage to fix your problem?</tt><span
class=""><br class="">
<pre class="m_2339828074249716840moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_2339828074249716840moz-txt-link-abbreviated" href="http://www.opensips-solutions.com/" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
</span>
<div class="">
<div class="h5">
<div
class="m_2339828074249716840moz-cite-prefix">On
10/31/2017 02:17 PM, Dragomir Haralambiev
wrote:<br class="">
</div>
<blockquote type="cite" class="">
<div dir="ltr" class="">Hi,
<div class=""><br class="">
</div>
<div class="">Thanks for your replay.</div>
<div class=""><br class="">
</div>
<div class="">I execute
fix_nated_contact() after
fix_nated_register().<br class="">
<br class="">
Here part of my script:</div>
<div class="">
<div class=""><span style="white-space:pre-wrap" class=""> </span>if
(isflagset(NAT)) {</div>
<div class=""> if
(is_method("REGISTER")) {</div>
<div class="">
fix_nated_register();</div>
<div class=""><span style="white-space:pre-wrap" class=""> </span>setbflag(NAT_BFLAG);
# nat register</div>
<div class=""> }</div>
<div class=""><span style="white-space:pre-wrap" class=""> </span>fix_nated_contact();</div>
<div class=""><span style="white-space:pre-wrap" class=""> </span>}</div>
</div>
<div class=""><br class="">
</div>
<div class="">In this case
fix_nated_contact() will be fix contact
records in location table.<br class="">
<br class="">
</div>
</div>
<div class="gmail_extra"><br class="">
<div class="gmail_quote">2017-10-31 14:02
GMT+02:00 Răzvan Crainea <span
dir="ltr" class=""><<a
href="mailto:razvan@opensips.org"
target="_blank" class=""
moz-do-not-send="true">razvan@opensips.org</a>></span>:<br
class="">
<blockquote class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"
class=""> <tt class="">Hi,
Dragomir!<br class="">
<br class="">
fix_nated_register() does not
change the contact of the message,
fix_nated_contact() does that.<br
class="">
Please print the Contact header as
I instructed earlier and send back
the script trace. Also, please
post the logs on <a
href="http://pastebin.com/"
target="_blank" class=""
moz-do-not-send="true">pastebin.com</a>
or something, don't do it directly
in the email.<br class="">
<br class="">
Best regards,</tt><span class="">
<pre class="m_2339828074249716840m_-6119473667299360433moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_2339828074249716840m_-6119473667299360433moz-txt-link-abbreviated" href="http://www.opensips-solutions.com/" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a></pre>
</span><span class="">
<div
class="m_2339828074249716840m_-6119473667299360433moz-cite-prefix">On
10/31/2017 12:40 AM, Dragomir
Haralambiev wrote:<br class="">
</div>
<blockquote type="cite" class="">
<div dir="ltr" class="">What
will I do to solve this
problem?</div>
<div class="gmail_extra"><br
class="">
<div class="gmail_quote">2017-10-27
11:50 GMT+03:00 Dragomir
Haralambiev <span dir="ltr"
class=""><<a
href="mailto:goup2010@gmail.com"
target="_blank" class=""
moz-do-not-send="true">goup2010@gmail.com</a>></span>:<br
class="">
<blockquote
class="gmail_quote"
style="margin:0 0 0
.8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div dir="ltr" class="">
<div class="">Oct 27
11:47:32 web
/usr/local/sbin/opensips[30490<wbr
class="">]: <span
style="font-size:12.8px;white-space:nowrap"
class="">57995010</span>:
REGISTER before
fix_nated_register
<sip:<span
style="font-size:12.8px;white-space:nowrap"
class="">57995010</span>@<a
href="http://192.168.2.196:5060/" target="_blank" class=""
moz-do-not-send="true">192.168.2.196:50<wbr
class="">60</a>>[1]</div>
<div class="">Oct 27
11:47:32 web
/usr/local/sbin/opensips[30490<wbr
class="">]: <span
style="font-size:12.8px;white-space:nowrap"
class="">57995010</span>:
REGISTER after
fix_nated_register
<sip:<span
style="font-size:12.8px;white-space:nowrap"
class="">57995010</span>@<a
href="http://192.168.2.196:5060/" target="_blank" class=""
moz-do-not-send="true">192.168.2.196:50<wbr
class="">60</a>>[1]</div>
<div class=""><br
class="">
</div>
</div>
<div
class="m_2339828074249716840m_-6119473667299360433HOEnZb">
<div
class="m_2339828074249716840m_-6119473667299360433h5">
<div
class="gmail_extra"><br
class="">
<div
class="gmail_quote">2017-10-27
10:41 GMT+03:00
Răzvan Crainea <span
dir="ltr"
class=""><<a
href="mailto:razvan@opensips.org" target="_blank" class=""
moz-do-not-send="true">razvan@opensips.org</a>></span>:<br
class="">
<blockquote
class="gmail_quote"
style="margin:0
0 0
.8ex;border-left:1px
#ccc
solid;padding-left:1ex">
<div
text="#000000"
bgcolor="#FFFFFF" class=""> <tt class="">Hi, Dragomir!<br class="">
<br class="">
Can you also
print the
Contact header
($ct[1]).<br
class="">
<br class="">
[1] <a
class="m_2339828074249716840m_-6119473667299360433m_1988118695986928569m_-3317261220468934746moz-txt-link-freetext"
href="http://www.opensips.org/Documentation/Script-CoreVar-2-4#toc26"
target="_blank"
moz-do-not-send="true">http://www.opensips.org/Docume<wbr class="">ntation/Script-CoreVar-2-4#toc<wbr
class="">26</a><br
class="">
<br class="">
Best regards,<br
class="">
</tt><span
class="">
<pre class="m_2339828074249716840m_-6119473667299360433m_1988118695986928569m_-3317261220468934746moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="m_2339828074249716840m_-6119473667299360433m_1988118695986928569m_-3317261220468934746moz-txt-link-abbreviated" href="http://www.opensips-solutions.com/" target="_blank" moz-do-not-send="true">www.opensips-solutions.com</a>
</pre>
</span></div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</span></div>
<br class="">
______________________________<wbr
class="">_________________<br
class="">
Users mailing list<br class="">
<a
href="mailto:Users@lists.opensips.org"
target="_blank" class=""
moz-do-not-send="true">Users@lists.opensips.org</a><br
class="">
<a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
rel="noreferrer" target="_blank"
class="" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr
class="">bin/mailman/listinfo/users</a><br
class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
<br class="">
<fieldset
class="m_2339828074249716840mimeAttachmentHeader"></fieldset>
<br class="">
<pre class="">______________________________<wbr class="">_________________
Users mailing list
<a class="m_2339828074249716840moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_2339828074249716840moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr class="">bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br class="">
</div>
</div>
</div>
<br class="">
______________________________<wbr class="">_________________<br
class="">
Users mailing list<br class="">
<a href="mailto:Users@lists.opensips.org" class=""
moz-do-not-send="true">Users@lists.opensips.org</a><br
class="">
<a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
rel="noreferrer" target="_blank" class=""
moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr
class="">bin/mailman/listinfo/users</a><br
class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
_______________________________________________<br
class="">
Users mailing list<br class="">
<a href="mailto:Users@lists.opensips.org" class=""
moz-do-not-send="true">Users@lists.opensips.org</a><br
class="">
<a class="moz-txt-link-freetext"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br
class="">
</div>
</blockquote>
</div>
<br class="">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>