<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Just for the records: I have solved it.<br>
      <br>
      As we are working withXML-Curl, I now search for the dialstring in
      the sip_registrations table and add this dynamically to the
      dialstring in the extension's XML profile. Now it works.<br>
      <br>
      <br>
      On 11/19/15 16:54, Peter Steinbach wrote:<br>
    </div>
    <blockquote cite="mid:564DF0BB.2010100@telefaks.de" type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=ISO-8859-1">
      Hello,<br>
      <br>
      I have a strange phenomenon with a phone (snomM700 DECT) behind
      NAT:<br>
      <ul>
        <li>phone 43 is ringing (local IP is 192.168.0.56, remote IP is
          195.71.aaa.bbb (anonymized)<br>
        </li>
        <li>phone 43 is answering the call</li>
        <li>we immediately get [USER_NOT_REGISTERED]</li>
      </ul>
      Register string is as follows<br>
      <tt><a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:sip:43@192.168.0.56:15060;line=7045;fs_nat=yes;fs_path=sip:43@195.71.aaa.bbb:5060;line=7045">&lt;sip:43@192.168.0.56:1506

0;line=7045;fs_nat=yes;fs_path=sip:43@195.71.aaa.bbb:5060;line=7045&gt;</a><br>
      </tt><br>
      Here is the Freeswitch log starting with phone's SDP<tt>:<br>
        <br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] sofia.c:6760 Remote SDP:<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce v=0<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce o=43 4408 4408 IN IP4
        195.71.aaa.bbb<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce s=-<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce c=IN IP4 195.71.aaa.bbb<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce t=0 0<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce a=sendrecv<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce m=audio 50030 RTP/AVP 8<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce a=rtpmap:8 PCMA/8000<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce a=ptime:20<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce a=maxptime:80<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce a=rtcp:50031<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce <br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] sofia.c:6750 Channel <a moz-do-not-send="true"
          class="moz-txt-link-abbreviated"
          href="mailto:sofia/internal/43@192.168.0.56:15060">sofia/internal/43@192.168.0.56:15060</a>
        entering state [ready][200]<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:4150 Audio Codec Compare
        [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:4205 Audio Codec Compare
        [PCMA:8:8000:20:64000:1] ++++ is saved as a match<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:4150 Audio Codec Compare
        [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:4150 Audio Codec Compare
        [PCMA:8:8000:20:64000:1]/[SPEEX:99:8000:20:24600:1]<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:4150 Audio Codec Compare
        [PCMA:8:8000:20:64000:1]/[GSM:3:8000:20:13200:1]<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:4150 Audio Codec Compare
        [PCMA:8:8000:20:64000:1]/[G729:18:8000:20:8000:1]<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:2897 Set Codec <a
          moz-do-not-send="true" class="moz-txt-link-abbreviated"
          href="mailto:sofia/internal/43@192.168.0.56:15060">sofia/internal/43@192.168.0.56:15060</a>
        PCMA/8000 20 ms 160 samples 64000 bits 1 channels<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_codec.c:111 <a moz-do-not-send="true"
          class="moz-txt-link-abbreviated"
          href="mailto:sofia/internal/43@192.168.0.56:15060">sofia/internal/43@192.168.0.56:15060</a>
        Original read codec set to PCMA:8<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:4472 No 2833 in SDP.&nbsp; Disable 2833
        dtmf and switch to INFO<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:6019 AUDIO RTP [<a
          moz-do-not-send="true" class="moz-txt-link-abbreviated"
          href="mailto:sofia/internal/43@192.168.0.56:15060">sofia/internal/43@192.168.0.56:15060</a>]
        144.76.47.185 port 12664 -&gt; 195.71.aaa.bbb port 50030 codec:
        8 ms: 20<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_rtp.c:3753 Starting timer [soft] 160 bytes per
        20ms<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:6237 Activating RTCP PORT 50031<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_rtp.c:4132 RTCP send rate is: 5000 and packet
        rate is: 20000 Remote Port: 50031<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_rtp.c:2443 Setting RTCP remote addr to
        195.71.aaa.bbb:50031 2<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [DEBUG] switch_core_media.c:6348 <a moz-do-not-send="true"
          class="moz-txt-link-abbreviated"
          href="mailto:sofia/internal/43@192.168.0.56:15060">sofia/internal/43@192.168.0.56:15060</a>
        Set rtp dtmf delay to 40<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.585575
        [NOTICE] sofia.c:7714 Channel [<a moz-do-not-send="true"
          class="moz-txt-link-abbreviated"
          href="mailto:sofia/internal/43@192.168.0.56:15060">sofia/internal/43@192.168.0.56:15060</a>]
        has been answered<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.605579
        [DEBUG] switch_channel.c:3757 (<a moz-do-not-send="true"
          class="moz-txt-link-abbreviated"
          href="mailto:sofia/internal/43@192.168.0.56:15060">sofia/internal/43@192.168.0.56:15060</a>)
        Callstate Change RINGING -&gt; ACTIVE<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.625571
        [NOTICE] switch_ivr_bridge.c:1416 Hangup <a
          moz-do-not-send="true" class="moz-txt-link-abbreviated"
          href="mailto:sofia/internal/43@192.168.0.56:15060">sofia/internal/43@192.168.0.56:15060</a>
        [CS_CONSUME_MEDIA] [USER_NOT_REGISTERED]<br>
        3c74476e-1ce3-46d0-874d-e75bbebce8ce 2015-11-19 15:46:38.625571
        [DEBUG] switch_ivr_bridge.c:1689 <a moz-do-not-send="true"
          class="moz-txt-link-abbreviated"
          href="mailto:sofia/internal/43@192.168.0.56:15060">sofia/internal/43@192.168.0.56:15060</a>
        skip receive message [UNBRIDGE] (channel is hungup already)</tt><br>
      <br>
      Anybody has a clue where this may come from? Freeswitch is rather
      new (from 03-Nov-2015).<br>
      <br>
      <pre class="moz-signature" cols="72">-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="mailto:lists">mailto:lists</a> (att) telefaks.de
Internet: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.telefaks.de">www.telefaks.de</a>

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
With kind regards
Peter Steinbach 

Telefaks Services GmbH
<a class="moz-txt-link-freetext" href="mailto:lists">mailto:lists</a> (att) telefaks.de
Internet: <a class="moz-txt-link-abbreviated" href="http://www.telefaks.de">www.telefaks.de</a>

</pre>
  </body>
</html>