<p dir="ltr">&lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;</p>
<p dir="ltr">I think that the culprit if this internal.xml</p>
<p dir="ltr">Donny</p>
<div class="gmail_quote">On Oct 22, 2013 8:36 PM, &quot;hcoin&quot; &lt;<a href="mailto:hcoin@quietfountain.com">hcoin@quietfountain.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Lan.  Lan registered phones can&#39;t even
      get a tone stream.  Phones register promptly, everything seems in
      order.  It&#39;s just that every call coming in on the lan interface
      and &#39;internal&#39; port gets identified as &#39;sofia/external/ and so
      never hits the default dial plan.  Here&#39;s a bit of the internal
      profile.  The site has some vpns so anything in the rfc1918 space
      has no nat.  Shouldn&#39;t matter anyway as all extensions on the same
      lan subnet as the fs box get identified as &#39;external&#39; as well.<br>
      <br>
      No &lt;aliases&gt;, and       &lt;domains&gt;  &lt;domain
      name=&quot;all&quot; alias=&quot;true&quot; parse=&quot;false&quot;/&gt; &lt;/domains&gt;<br>
      <br>
      <br>
              &lt;param name=&quot;context&quot; value=&quot;public&quot;/&gt;<br>
              &lt;param name=&quot;rfc2833-pt&quot; value=&quot;101&quot;/&gt;<br>
              &lt;param name=&quot;sip-port&quot; value=&quot;5090&quot;/&gt;<br>
              &lt;param name=&quot;dialplan&quot; value=&quot;XML&quot;/&gt;<br>
              &lt;param name=&quot;dtmf-duration&quot; value=&quot;2000&quot;/&gt;<br>
              &lt;param name=&quot;inbound-codec-prefs&quot;
      value=&quot;$${global_codec_prefs}&quot;/&gt;<br>
              &lt;param name=&quot;outbound-codec-prefs&quot;
      value=&quot;$${global_codec_prefs}&quot;/&gt;<br>
              &lt;param name=&quot;rtp-timer-name&quot; value=&quot;soft&quot;/&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>
              &lt;param name=&quot;stun-enabled&quot; value=&quot;false&quot;/&gt;<br>
              &lt;param name=&quot;hold-music&quot; value=&quot;$${hold_music}&quot;/&gt;<br>
              &lt;param name=&quot;apply-inbound-acl&quot; value=&quot;domains&quot;/&gt;<br>
              &lt;param name=&quot;local-network-acl&quot;
      value=&quot;rfc1918.auto&quot;/&gt;<br>
              &lt;param name=&quot;auth-calls&quot; value=&quot;false&quot;/&gt;<br>
              &lt;param name=&quot;inbound-reg-force-matching-username&quot;
      value=&quot;true&quot;/&gt;<br>
              &lt;param name=&quot;auth-all-packets&quot; value=&quot;false&quot;/&gt;<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>
              &lt;param name=&quot;manage-presence&quot; value=&quot;true&quot;/&gt;<br>
              &lt;param name=&quot;presence-hosts&quot;
      value=&quot;<a href="http://pbx.mamabosso.com" target="_blank">pbx.mamabosso.com</a>,<a href="http://pbx.amfoodstyles.com" target="_blank">pbx.amfoodstyles.com</a>&quot;/&gt;<br>
              &lt;param name=&quot;presence-privacy&quot;
      value=&quot;$${presence_privacy}&quot;/&gt;<br>
              &lt;param name=&quot;inbound-codec-negotiation&quot;
      value=&quot;generous&quot;/&gt;<br>
              &lt;param name=&quot;tls&quot; value=&quot;$${internal_ssl_enable}&quot;/&gt;<br>
              &lt;param name=&quot;tls-only&quot; value=&quot;false&quot;/&gt;<br>
              &lt;param name=&quot;tls-bind-params&quot;
      value=&quot;transport=tls&quot;/&gt;<br>
              &lt;param name=&quot;tls-sip-port&quot; value=&quot;5091&quot;/&gt;<br>
              &lt;param name=&quot;tls-cert-dir&quot;
      value=&quot;$${internal_ssl_dir}&quot;/&gt;<br>
              &lt;param name=&quot;tls-passphrase&quot; value=&quot;&quot;/&gt;<br>
              &lt;param name=&quot;tls-verify-date&quot; value=&quot;true&quot;/&gt;<br>
              &lt;param name=&quot;tls-verify-policy&quot; value=&quot;none&quot;/&gt;<br>
              &lt;param name=&quot;tls-verify-depth&quot; value=&quot;2&quot;/&gt;<br>
              &lt;param name=&quot;tls-verify-in-subjects&quot; value=&quot;&quot;/&gt;<br>
              &lt;param name=&quot;tls-version&quot;
      value=&quot;$${sip_tls_version}&quot;/&gt;<br>
              &lt;param name=&quot;nonce-ttl&quot; value=&quot;60&quot;/&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>
              &lt;param name=&quot;challenge-realm&quot; value=&quot;auto_from&quot;/&gt;<br>
              &lt;param name=&quot;inbound-bypass-media&quot; value=&quot;false&quot;/&gt;<br>
              &lt;param name=&quot;rtp-autoflush&quot; value=&quot;true&quot;/&gt;<br>
              &lt;param name=&quot;rtp-autoflush-during-bridge&quot;
      value=&quot;true&quot;/&gt;<br>
              &lt;param name=&quot;suppress-cng&quot; value=&quot;false&quot;/&gt;<br>
              &lt;param name=&quot;rtp-rewrite-timestamps&quot; value=&quot;false&quot;/&gt;<br>
              &lt;param name=&quot;auto-jitterbuffer-msec&quot; value=&quot;120&quot;/&gt;<br>
      <br>
      The external profile has alias=false in the domains, no aliases
      and parse=true<br>
      <br>
      <br>
      <br>
      On 10/22/2013 06:13 AM, Donny Hardyanto wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Is your client in the internet or the lan?
        <div><br>
        </div>
        <div>Donny</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Oct 22, 2013 at 1:01 PM, hcoin
          <span dir="ltr">&lt;<a href="mailto:hcoin@quietfountain.com" target="_blank">hcoin@quietfountain.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
            This has been a really frustrating problem, I&#39;m sure the
            answer is<br>
            simple but I just can&#39;t see it.<br>
            <br>
            I had several extensions registered to the internal profile,
            sending<br>
            calls out the external profile to a sip-pstn gateway, all
            seemed fine.<br>
            <br>
            Then created another internal profile, using a different sip
            port on the<br>
            same lan address, because of &#39;no device left behind&#39; and NAT
            issues..<br>
            <br>
            All seemed well, all the phones register normally.   Looking
            at the<br>
            databases in FS they all show the proper ports, the proper
            domains, etc.<br>
            <br>
            However, every single call gets picked up as a new call via<br>
            sophia/external/... and it hits the public dialplan normally
            -- except<br>
            that&#39;s the wrong plan, it should hit the default plan and be
            identified<br>
            as sofia/internal/.... and so forth.<br>
            2013-10-22 00:31:11.001600 [NOTICE] switch_channel.c:1034
            New Channel<br>
            sofia/external/<a href="mailto:hcoin@pbx.foobar.com" target="_blank">hcoin@pbx.foobar.com</a>
            [28ed125a-3adb-11e3-9cc1-cbb8efb09b83]<br>
            <br>
            What could possibly be the reason phones registered on the
            internal<br>
            profile have their new calls identified as sophia/external
            and don&#39;t hit<br>
            the correct plan?  Both the phones and the freeswitch are on
            the same<br>
            subnet.  This should be so vanilla.  What am I missing?<br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
            <a href="http://www.freeswitchsolutions.com" target="_blank">http://www..freeswitchsolutions.com</a><br>
            <br>
            FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
            <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
            <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
            <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </div>

<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div>