<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
can you add an xlog() message to print branch flags before
save("location") and send the output for the two cases?<br>
<br>
xlog("message flags are: $mf [$mF]\n");<br>
<br>
Also, you may use debugger module with cfgtrace feature to be sure
the nat detection actions are executed for both cases.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 6/29/11 3:30 AM, MingHon wrote:
<blockquote
cite="mid:BANLkTikMOZqHh390FZb_E3BVFmvubY+vnw@mail.gmail.com"
type="cite">Hi List,
<div><br>
</div>
<div>both uac register successfully but the issue is the first uac
who register the Cflag remain 0.</div>
<div><br>
</div>
<div>im using nat_uac_test("19").</div>
<div><br>
</div>
<div>thank you in advance.</div>
<div><br>
</div>
<div>here is the ul show:</div>
<div><br>
</div>
<div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>AOR::
102</div>
<div> Contact:: <a moz-do-not-send="true"
href="http://sip:102@175.136.221.60:5062">sip:102@175.136.221.60:5062</a>
Q=</div>
<div> Expires:: 103</div>
<div> Callid:: <a moz-do-not-send="true"
href="mailto:678936531@175.136.221.60">678936531@175.136.221.60</a></div>
<div> Cseq:: 2</div>
<div> User-agent:: T22 7.3.0.50</div>
<div> Received:: sip:<a
moz-do-not-send="true" href="http://175.136.221.60:1056">175.136.221.60:1056</a></div>
<div> State:: CS_SYNC</div>
<div> Flags:: 0</div>
<div> Cflag:: 192</div>
<div> Socket:: udp:<a
moz-do-not-send="true" href="http://60.53.82.184:5060">60.53.82.184:5060</a></div>
<div> Methods:: 16383</div>
<div> AOR:: 103</div>
<div> Contact:: <a moz-do-not-send="true"
href="http://sip:103@175.136.221.60:5062">sip:103@175.136.221.60:5062</a>
Q=</div>
<div> Expires:: 62</div>
<div> Callid:: <a moz-do-not-send="true"
href="mailto:1621958925@175.136.221.60">1621958925@175.136.221.60</a></div>
<div> Cseq:: 3</div>
<div> User-agent:: Yealink SIP-T18
18.0.0.70</div>
<div> State:: CS_SYNC</div>
<div> Flags:: 0</div>
<div> Cflag:: 0</div>
<div> Socket:: udp:<a
moz-do-not-send="true" href="http://60.53.82.184:5060">60.53.82.184:5060</a></div>
<div> Methods:: 16383</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>and here is the wireshark on kamailio for ua 103 and 102.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>E@< \<<5Rw REGISTER sip:<a moz-do-not-send="true"
href="http://aextddns.dyndns.info">aextddns.dyndns.info</a>
SIP/2.0</div>
<div>Via: SIP/2.0/UDP
175.136.221.60:5062;branch=z9hG4bK2080454766</div>
<div>From: "103" <<a moz-do-not-send="true"
href="mailto:sip%3A103@175.136.221.60">sip:103@175.136.221.60</a>>;tag=681558690</div>
<div>To: "103" <<a moz-do-not-send="true"
href="mailto:sip%3A103@aextddns.dyndns.info">sip:103@aextddns.dyndns.info</a>></div>
<div>Call-ID: <a moz-do-not-send="true"
href="mailto:1621958925@175.136.221.60">1621958925@175.136.221.60</a></div>
<div>CSeq: 2 REGISTER</div>
<div>Contact: <<a moz-do-not-send="true"
href="http://sip:103@175.136.221.60:5062">sip:103@175.136.221.60:5062</a>></div>
<div>Authorization: Digest username="103", realm="<a
moz-do-not-send="true" href="http://aextddns.dyndns.info">aextddns.dyndns.info</a>",
nonce="Tgp7mU4Kem3Qqyd66hwhWgmU8bNpL463", uri="si$</div>
<div>Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS,
NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE</div>
<div>Max-Forwards: 70</div>
<div>User-Agent: Yealink SIP-T18 18.0.0.70</div>
<div>Expires: 3600</div>
<div>Content-Length: 0</div>
<div><br>
</div>
<div>E@<5R<PSIP/2.0 200 OK</div>
<div>Via: SIP/2.0/UDP
175.136.221.60:5062;branch=z9hG4bK2080454766;rport=5062</div>
<div>From: "103" <<a moz-do-not-send="true"
href="mailto:sip%3A103@175.136.221.60">sip:103@175.136.221.60</a>>;tag=681558690</div>
<div>To: "103" <<a moz-do-not-send="true"
href="mailto:sip%3A103@aextddns.dyndns.info">sip:103@aextddns.dyndns.info</a>>;tag=cbf8071f5b02e3e2fd329ee5d72c3f65.d24e</div>
<div>Call-ID: <a moz-do-not-send="true"
href="mailto:1621958925@175.136.221.60">1621958925@175.136.221.60</a></div>
<div>CSeq: 2 REGISTER</div>
<div>Contact: <<a moz-do-not-send="true"
href="http://sip:103@175.136.221.60:5062">sip:103@175.136.221.60:5062</a>>;expires=120</div>
<div>Server: kamailio (3.1.4 (i386/linux))</div>
<div>Content-Length: 0</div>
</div>
<div><br>
</div>
<div>--------------------------------------------------</div>
<div><br>
</div>
<div>
<div>E@< j<<5R 7REGISTER sip:<a moz-do-not-send="true"
href="http://aextddns.dyndns.info">aextddns.dyndns.info</a>
SIP/2.0</div>
<div>Via: SIP/2.0/UDP
175.136.221.60:5062;branch=z9hG4bK1080036976</div>
<div>From: "102" <<a moz-do-not-send="true"
href="mailto:sip%3A102@175.136.221.60">sip:102@175.136.221.60</a>>;tag=544575245</div>
<div>To: "102" <<a moz-do-not-send="true"
href="mailto:sip%3A102@aextddns.dyndns.info">sip:102@aextddns.dyndns.info</a>></div>
<div>Call-ID: <a moz-do-not-send="true"
href="mailto:678936531@175.136.221.60">678936531@175.136.221.60</a></div>
<div>CSeq: 2 REGISTER</div>
<div>Contact: <<a moz-do-not-send="true"
href="http://sip:102@175.136.221.60:5062">sip:102@175.136.221.60:5062</a>></div>
<div>Authorization: Digest username="102", realm="<a
moz-do-not-send="true" href="http://aextddns.dyndns.info">aextddns.dyndns.info</a>",
nonce="Tgp8AU4KetWGb79MEU5MUHq+xA4xy+OW", uri="si$</div>
<div>Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS,
NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE</div>
<div>Max-Forwards: 70</div>
<div>User-Agent: T22 7.3.0.50</div>
<div>Expires: 3600</div>
<div>Content-Length: 0</div>
<div><br>
</div>
<div>E@<5R< {SIP/2.0 200 OK</div>
<div>Via: SIP/2.0/UDP
175.136.221.60:5062;branch=z9hG4bK1080036976;rport=1056</div>
<div>From: "102" <<a moz-do-not-send="true"
href="mailto:sip%3A102@175.136.221.60">sip:102@175.136.221.60</a>>;tag=544575245</div>
<div>To: "102" <<a moz-do-not-send="true"
href="mailto:sip%3A102@aextddns.dyndns.info">sip:102@aextddns.dyndns.info</a>>;tag=cbf8071f5b02e3e2fd329ee5d72c3f65.5cb8</div>
<div>Call-ID: <a moz-do-not-send="true"
href="mailto:678936531@175.136.221.60">678936531@175.136.221.60</a></div>
<div>CSeq: 2 REGISTER</div>
<div>Contact: <<a moz-do-not-send="true"
href="http://sip:102@175.136.221.60:5062">sip:102@175.136.221.60:5062</a>>;expires=120;received="sip:<a
moz-do-not-send="true" href="http://175.136.221.60:1056">175.136.221.60:1056</a>"</div>
<div>Server: kamailio (3.1.4 (i386/linux))</div>
<div>Content-Length: 0</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>-- <br>
Regards,<br>
<br>
MingHon<br>
</div>
<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>