<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
If you are behind a symmetric NAT and your stun-server is not
multiplexed on SER's 5060 port (which is not the case), you should NOT
use the public IP and port found with STUN, as a new connection to your
SER server will get a new port on your NAT.<br>
Or, use nat_uac_test("16") to test for a mismatch in received port and
contact port, which it seems you already do, as SER is sending back to
the correct (received) port.<br>
g-)<br>
<br>
Phan Van Duc wrote:
<blockquote
 cite="mid:f5962c020706171950r16595c37kd4e1c790d2a139d1@mail.gmail.com"
 type="cite">I am using the sipXtapi library in a user agent.<br>
When running behind NAT (with STUN and rport enabled)and register<br>
with ser 0.9.6(basic configuration).It appears that the library detects
the <br>
external address correctly and registered successful. But I see in the
  <br>
  <br>
Register message, in Via and Contact field some strange things, hence
when ser send Invite message<br>
for Calling, the user agent do not received Invite message because the
port ser send Invite to<br>
user agent do not match with the port user agent listen to.
  <br>
  <br>
  <br>
1. sipxtapi(sipxEzphone or CrossTalk):<br>
Received stun message from stun server (Vovida stun server):<br>
Attribute: MAPPED-ADDRESS<br>
&nbsp;&nbsp;&nbsp; Attribute Type: MAPPED-ADDRESS (0x0001)<br>
&nbsp;&nbsp;&nbsp; Port: 28766<br>
&nbsp;&nbsp;&nbsp; IP: <br>
  <a moz-do-not-send="true" href="http://222.255.15.252">222.255.15.252</a>
(<a moz-do-not-send="true" href="http://222.255.15.252">222.255.15.252</a>)<br>
  <br>
Send Register message to ser:<br>
Via: SIP/2.0/UDP <a moz-do-not-send="true"
 href="http://222.255.15.252:28766">222.255.15.252:28766
  </a>;branch=z9hG4bK-bdec6870a8f0;rport<br>
  <br>
  <br>
2. Ser reply trying message:<br>
Via: SIP/2.0/UDP <a moz-do-not-send="true"
 href="http://222.255.15.252:28766">222.255.15.252:28766</a>;branch=z9hG4bK-bdec6870a8f0;rport=37171<br>
Warning: 392 xxx.xxx.xxx.xxx
:5060 "Noisy feedback tells:&nbsp; pid=29560 req_src_ip=<br>
  <a moz-do-not-send="true" href="http://222.255.15.252">222.255.15.252</a>
req_src_port=37171 in_uri=sip:xxx.xxx.xxx.xxx
out_uri=sip:xxx.xxx.xxx.xxx via_cnt==1"<br>
  <br>
3. sipxtapi send Register message with Authorization:
  <br>
Via: SIP/2.0/UDP <br>
  <a moz-do-not-send="true" href="http://222.255.15.252:37171">222.255.15.252:37171</a>;branch=z9hG4bK-16af3dfa110f;rport<br>
  <br>
As above, ser will send Invite or Bye message to user agent in <a
 moz-do-not-send="true" href="http://222.255.15.252:37171">
222.255.15.252:37171</a><br>
, of course user agent using sipxtapi <br>
can not receive these message.<br>
Can I make the change in ser config? plz help me.<br>
Thanks in advance,<br>
Phan Duc<br>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
  </pre>
</blockquote>
</body>
</html>