i fixed it by disable below param, cheers!<br><br>&quot;NDLB-received-in-nat-reg-contact&quot;<br><br><div class="gmail_quote">2011/11/5 fieldpeak <span dir="ltr">&lt;<a href="mailto:fieldpeak@gmail.com">fieldpeak@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi friends,<br><br>my FS implemnt has only a public IP not behind NAT, and there are some registed users behind NAT, below is configure for internal profile, to keep the NAT mapping in remote router device, i open the keep live from FS to remote users (&lt;param name=&quot;all-reg-options-ping&quot; value=&quot;true&quot;/&gt;), howerver, i found the OPTIONS (from FS) sent to the private IP address of the remote users, it should send to the public IP of users external IP (router public IP), can we modify the configure to fix it?<br>

<br>additionaly, i make a test, change configuration to &quot;&lt;!-- &lt;param name=&quot;all-reg-options-ping&quot; value=&quot;true&quot;/&gt; --&gt;   &lt;param name=&quot;nat-options-ping&quot; value=&quot;true&quot;/&gt;&quot;, that is enable OPTIONS only sent to the NATted device, <br>

    it did send the OPTIONS to the Natted device&#39;s public ip correctly that FS dectected, however, some device was not dected  as a Natted device while it is behind NAT like below status, both of them are behind NAT, below is two registeration messages, the first one was detect as NAtted device, but the second was not, what is the mechanism for FS detect if a remote user behind NAT or not? Could anybody help to address this problem, thanks a lot!<br>

    <br>    9065       Registered(<span style="background-color:rgb(51, 255, 51)">UDP-NAT</span>)(unknown) exp(2011-11-05 18:30:30) expsecs(3611) <br>     1026       Registered<span style="background-color:rgb(255, 102, 102)">(UDP</span>)(unknown) exp(2011-11-05 17:33:33) expsecs(194) <br>

    <br>    <br>   ------------------------------------------------------------------------<br>recv 823 bytes from udp/[183.37.75.168]:9066 at 09:09:32.335911:<br>   ------------------------------------------------------------------------<br>

   REGISTER sip:124.193.106.104 SIP/2.0<br>   Via: SIP/2.0/UDP 192.168.1.86:9066;branch=z9hG4bK-d87543-ac6cfe2f736efb21-1--d87543-;rport<br>   Max-Forwards: 70<br>   Contact: &lt;sip:13580358068@192.168.1.86:9066;rinstance=730e3f0e44ed8142&gt;;expires=0<br>

   To: &quot;13580358068&quot;&lt;<a href="mailto:sip%3A13580358068@124.193.106.104" target="_blank">sip:13580358068@124.193.106.104</a>&gt;<br>   From: &quot;13580358068&quot;&lt;<a href="mailto:sip%3A13580358068@124.193.106.104" target="_blank">sip:13580358068@124.193.106.104</a>&gt;;tag=636eb146<br>

   Call-ID: 3c29a86eff650823@bXlwYw..<br>   CSeq: 4 REGISTER<br>   Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO<br>   Supported: eventlist<br>   User-Agent: eyeBeam release 3015c stamp 27107<br>

   Authorization: Digest username=&quot;13580358068&quot;,realm=&quot;124.193.106.104&quot;,nonce=&quot;a6eb2963-21fa-4875-aa62-11e67d956f64&quot;,uri=&quot;sip:124.193.106.104&quot;,response=&quot;5083e7fe5eb078ca091279d7b1b9389f&quot;,cnonce=&quot;8b9c85686cc356e7&quot;,nc=00000001,qop=auth,algorithm=MD5<br>

   Content-Length: 0<br>   <br>   **************<br>   recv 638 bytes from udp/[124.193.106.98]:1026 at 09:12:43.891159:<br>   ------------------------------------------------------------------------<br>   REGISTER sip:124.193.106.104 SIP/2.0<br>

   Via: SIP/2.0/UDP 192.168.2.4:8060;rport;branch=z9hG4bK3089092136;xxx-nat-type=prcone<br>   Route: &lt;sip:124.193.106.104:5060;lr&gt;<br>   From: &lt;<a href="mailto:sip%3A15130351737@124.193.106.104" target="_blank">sip:15130351737@124.193.106.104</a>&gt;;tag=181867095<br>

   To: &lt;<a href="mailto:sip%3A15130351737@124.193.106.104" target="_blank">sip:15130351737@124.193.106.104</a>&gt;<br>   Call-ID: <a href="mailto:1197657332@192.168.2.4" target="_blank">1197657332@192.168.2.4</a><br>   CSeq: 308 REGISTER<br>
   Contact: &lt;<a href="http://sip:15130351737@192.168.2.4:8060" target="_blank">sip:15130351737@192.168.2.4:8060</a>&gt;<br>
   Authorization: Digest username=&quot;15130351737&quot;, realm=&quot;124.193.106.104&quot;, nonce=&quot;03d8e8b2-19b5-4aa5-910f-196951870bc3&quot;, uri=&quot;sip:124.193.106.104&quot;, response=&quot;c30374736da747eb33dc719def41ed08&quot;, algorithm=MD5<br>

   Max-Forwards: 70<br>   User-Agent: YT-2.11.926.8<br>   Expires: 200<br>   Content-Length: 0<br>   <br>   *******************<br><br><br>Profile internal content:<br><br>&lt;!-- this profile serves local user --&gt;<br>

<br>&lt;profile name=&quot;internal&quot;&gt;<br>  &lt;aliases&gt;<br>    &lt;alias name=&quot;internal&quot;/&gt;<br>  &lt;/aliases&gt;<br>  <br>  &lt;gateways&gt;<br>    &lt;X-PRE-PROCESS cmd=&quot;include&quot; data=&quot;internal/*.xml&quot;/&gt;<br>

  &lt;/gateways&gt;<br>  <br>  &lt;domains&gt;<br>    &lt;domain name=&quot;all&quot; alias=&quot;true&quot; parse=&quot;false&quot;/&gt; <br>  &lt;/domains&gt;<br>  <br>  &lt;settings&gt;<br>    <br>    &lt;param name=&quot;context&quot; value=&quot;default&quot;/&gt;<br>

        <br>    &lt;!-- SIP listen port for this profile --&gt;<br>    &lt;param name=&quot;sip-port&quot; value=&quot;5060&quot;/&gt;<br>    <br>    &lt;!-- local IP address for this profile --&gt;<br>    &lt;param name=&quot;rtp-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;<br>

    &lt;param name=&quot;sip-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;<br>    <br>    &lt;!-- external IP address serving remote NATted users, usually it is public IP adress for DMZ --&gt;<br>    &lt;!-- <br>    &lt;param name=&quot;ext-rtp-ip&quot; value=&quot;auto-nat&quot;/&gt;<br>

    &lt;param name=&quot;ext-sip-ip&quot; value=&quot;auto-nat&quot;/&gt; --&gt;<br>    <br>    &lt;param name=&quot;ext-rtp-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;<br>    &lt;param name=&quot;ext-sip-ip&quot; value=&quot;$${local_ip_v4}&quot;/&gt;<br>

    <br>    &lt;!-- the IP addresses or IP address segments of remote unauthorized SIP UA, e.g. MS Mediation Server --&gt;<br>    &lt;param name=&quot;apply-inbound-acl&quot; value=&quot;<a href="http://172.28.0.0/16" target="_blank">172.28.0.0/16</a>&quot;/&gt;<br>

    &lt;!-- &lt;param name=&quot;apply-inbound-acl&quot; value=&quot;<a href="http://172.28.0.0/16" target="_blank">172.28.0.0/16</a>&quot;/&gt; --&gt;<br>    &lt;!-- &lt;param name=&quot;apply-inbound-acl&quot; value=&quot;<a href="http://192.168.200.0/24" target="_blank">192.168.200.0/24</a>&quot;/&gt; --&gt;<br>

    <br>    &lt;!-- if RTP bypass SIP Server --&gt;<br>    &lt;!-- to use IP-PBX supplementary services, e.g. call pickup, transfer etc. must set this to false --&gt;<br>    &lt;param name=&quot;inbound-bypass-media&quot; value=&quot;false&quot;/&gt;<br>

<br>    &lt;!-- if act as RTP transparent proxy without transcoding which allows unknown VoIP coder --&gt;<br>    &lt;!-- to use IP-PBX supplementary services, e.g. call pickup, transfer etc. must set this to false --&gt;<br>

    &lt;param name=&quot;inbound-proxy-media&quot; value=&quot;true&quot;/&gt;<br>    <br>    &lt;!-- enable NAT traversal --&gt;<br>    &lt;param name=&quot;NDLB-received-in-nat-reg-contact&quot; value=&quot;true&quot;/&gt;<br>

    &lt;param name=&quot;NDLB-force-rport&quot; value=&quot;true&quot;/&gt;<br>    &lt;!-- &lt;param name=&quot;NDLB-connectile-dysfunction&quot; value=&quot;true&quot;/&gt; --&gt;<br>    <br>    <br>    &lt;!-- in case VSwitch using pure public IP address(not DMZ), uncomment this to resolve no voice for inter-extenions call  --&gt;<br>

    &lt;!-- &lt;param name=&quot;NDLB-sendrecv-in-session&quot; value=&quot;true&quot;/&gt; --&gt;<br>    <br>    &lt;!-- no need set this for common case --&gt;<br>    &lt;!-- &lt;param name=&quot;disable-rtp-auto-adjust&quot; value=&quot;false&quot;/&gt; --&gt;<br>

    <br>    &lt;!-- ***************************************************************         --&gt;<br>    &lt;!-- do not change below parameters if not necessary --&gt;<br>    &lt;param name=&quot;user-agent-string&quot; value=&quot;FreeSWITCH&quot;/&gt;<br>

    &lt;param name=&quot;debug&quot; value=&quot;0&quot;/&gt;<br>    &lt;param name=&quot;sip-trace&quot; value=&quot;no&quot;/&gt;<br>    &lt;param name=&quot;watchdog-enabled&quot; value=&quot;no&quot;/&gt;<br>    &lt;param name=&quot;watchdog-step-timeout&quot; value=&quot;30000&quot;/&gt;<br>

    &lt;param name=&quot;watchdog-event-timeout&quot; value=&quot;30000&quot;/&gt;<br><br>    &lt;param name=&quot;log-auth-failures&quot; value=&quot;true&quot;/&gt;<br>    &lt;param name=&quot;forward-unsolicited-mwi-notify&quot; value=&quot;false&quot;/&gt;<br>

    <br>    &lt;!-- DTMF type: info, rfc2833, none --&gt;<br>    &lt;!-- &lt;param name=&quot;dtmf-type&quot; value=&quot;rfc2833&quot;/&gt; --&gt;<br>    &lt;param name=&quot;rfc2833-pt&quot; value=&quot;101&quot;/&gt;<br>

    &lt;param name=&quot;dtmf-duration&quot; value=&quot;2000&quot;/&gt;<br>    <br>    &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br><br>     &lt;param name=&quot;inbound-codec-prefs&quot; value=&quot;PCMA,PCMU,G722,GSM&quot;/&gt;<br>

    &lt;param name=&quot;outbound-codec-prefs&quot; value=&quot;PCMA,PCMU,G722,GSM&quot;/&gt;<br>    <br>    &lt;param name=&quot;rtp-timer-name&quot; value=&quot;soft&quot;/&gt;<br>        <br>    &lt;param name=&quot;hold-music&quot; value=&quot;$${hold_music}&quot;/&gt;<br>

    &lt;param name=&quot;apply-nat-acl&quot; value=&quot;nat.auto&quot;/&gt;<br>    <br>    &lt;!--<br>    This defines your local network, by default we detect your local network<br>    and create this localnet.auto ACL for this.<br>

    --&gt;<br>    &lt;param name=&quot;local-network-acl&quot; value=&quot;localnet.auto&quot;/&gt;<br>    &lt;!--&lt;param name=&quot;apply-register-acl&quot; value=&quot;domains&quot;/&gt;--&gt;<br><br>    &lt;param name=&quot;record-path&quot; value=&quot;$${recordings_dir}&quot;/&gt;<br>

    &lt;param name=&quot;record-template&quot; value=&quot;${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav&quot;/&gt;<br>    <br>    &lt;!--enable to use presence --&gt;<br>    &lt;param name=&quot;manage-presence&quot; value=&quot;false&quot;/&gt;<br>

<br>    &lt;param name=&quot;inbound-codec-negotiation&quot; value=&quot;generous&quot;/&gt;<br><br>    &lt;!-- TLS: disabled by default, set to &quot;true&quot; to enable --&gt;<br>    &lt;param name=&quot;tls&quot; value=&quot;$${internal_ssl_enable}&quot;/&gt;<br>

    &lt;!-- additional bind parameters for TLS --&gt;<br>    &lt;param name=&quot;tls-bind-params&quot; value=&quot;transport=tls&quot;/&gt;<br>    &lt;!-- Port to listen on for TLS requests. (5061 will be used if unspecified) --&gt;<br>

    &lt;param name=&quot;tls-sip-port&quot; value=&quot;$${internal_tls_port}&quot;/&gt;<br>    &lt;!-- Location of the agent.pem and cafile.pem ssl certificates (needed for TLS server) --&gt;<br>    &lt;param name=&quot;tls-cert-dir&quot; value=&quot;$${internal_ssl_dir}&quot;/&gt;<br>

    &lt;!-- TLS version (&quot;sslv23&quot; (default), &quot;tlsv1&quot;). NOTE: Phones may not work with TLSv1 --&gt;<br>    &lt;param name=&quot;tls-version&quot; value=&quot;$${sip_tls_version}&quot;/&gt;<br>     <br>
    &lt;!--TTL for nonce in sip auth--&gt;<br>
    &lt;param name=&quot;nonce-ttl&quot; value=&quot;60&quot;/&gt;<br>        <br>    &lt;param name=&quot;auth-calls&quot; value=&quot;$${internal_auth_calls}&quot;/&gt;<br>    &lt;!-- Force the user and auth-user to match. --&gt;<br>

    &lt;param name=&quot;inbound-reg-force-matching-username&quot; value=&quot;true&quot;/&gt;<br>    &lt;!-- on authed calls, authenticate *all* the packets not just invite --&gt;<br>    &lt;param name=&quot;auth-all-packets&quot; value=&quot;false&quot;/&gt;<br>

    <br>    &lt;!-- rtp inactivity timeout --&gt;<br>    &lt;param name=&quot;rtp-timeout-sec&quot; value=&quot;300&quot;/&gt;<br>    &lt;param name=&quot;rtp-hold-timeout-sec&quot; value=&quot;1800&quot;/&gt;<br><br>    &lt;!--all inbound reg will look in this domain for the users --&gt;<br>

    &lt;param name=&quot;force-register-domain&quot; value=&quot;$${domain}&quot;/&gt;<br>    &lt;!--force the domain in subscriptions to this value --&gt;<br>    &lt;param name=&quot;force-subscription-domain&quot; value=&quot;$${domain}&quot;/&gt;<br>

    &lt;!--all inbound reg will stored in the db using this domain --&gt;<br>    &lt;param name=&quot;force-register-db-domain&quot; value=&quot;$${domain}&quot;/&gt;<br><br>    &lt;param name=&quot;challenge-realm&quot; value=&quot;auto_from&quot;/&gt;<br>

    <br>    &lt;param name=&quot;send-message-query-on-register&quot; value=&quot;false&quot;/&gt;<br>    <br>    &lt;param name=&quot;all-reg-options-ping&quot; value=&quot;true&quot;/&gt;<br>    &lt;!-- &lt;param name=&quot;nat-options-ping&quot; value=&quot;true&quot;/&gt; --&gt;<br>

     <br>  &lt;/settings&gt;<br>&lt;/profile&gt;<br><font color="#888888"><br><br clear="all"><br>-- <br>Regards,<br>Charles<br><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Charles<br><br>