<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Lan.&nbsp; Lan registered phones can't even
      get a tone stream.&nbsp; Phones register promptly, everything seems in
      order.&nbsp; It's just that every call coming in on the lan interface
      and 'internal' port gets identified as 'sofia/external/ and so
      never hits the default dial plan.&nbsp; Here's a bit of the internal
      profile.&nbsp; The site has some vpns so anything in the rfc1918 space
      has no nat.&nbsp; Shouldn't matter anyway as all extensions on the same
      lan subnet as the fs box get identified as 'external' as well.<br>
      <br>
      No &lt;aliases&gt;, and &nbsp;&nbsp;&nbsp; &nbsp; &lt;domains&gt;&nbsp; &lt;domain
      name="all" alias="true" parse="false"/&gt; &lt;/domains&gt;<br>
      <br>
      <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="context" value="public"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="rfc2833-pt" value="101"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="sip-port" value="5090"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="dialplan" value="XML"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="dtmf-duration" value="2000"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="inbound-codec-prefs"
      value="$${global_codec_prefs}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="outbound-codec-prefs"
      value="$${global_codec_prefs}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="rtp-timer-name" value="soft"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="rtp-ip" value="$${local_ip_v4}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="sip-ip" value="$${local_ip_v4}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="stun-enabled" value="false"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="hold-music" value="$${hold_music}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="apply-inbound-acl" value="domains"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="local-network-acl"
      value="rfc1918.auto"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="auth-calls" value="false"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="inbound-reg-force-matching-username"
      value="true"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="auth-all-packets" value="false"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="record-path"
      value="$${recordings_dir}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="record-template"
value="${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="manage-presence" value="true"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="presence-hosts"
      value="pbx.mamabosso.com,pbx.amfoodstyles.com"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="presence-privacy"
      value="$${presence_privacy}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="inbound-codec-negotiation"
      value="generous"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls" value="$${internal_ssl_enable}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls-only" value="false"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls-bind-params"
      value="transport=tls"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls-sip-port" value="5091"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls-cert-dir"
      value="$${internal_ssl_dir}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls-passphrase" value=""/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls-verify-date" value="true"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls-verify-policy" value="none"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls-verify-depth" value="2"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls-verify-in-subjects" value=""/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="tls-version"
      value="$${sip_tls_version}"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="nonce-ttl" value="60"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="rtp-timeout-sec" value="300"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="rtp-hold-timeout-sec" value="1800"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="challenge-realm" value="auto_from"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="inbound-bypass-media" value="false"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="rtp-autoflush" value="true"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="rtp-autoflush-during-bridge"
      value="true"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="suppress-cng" value="false"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="rtp-rewrite-timestamps" value="false"/&gt;<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;param name="auto-jitterbuffer-msec" value="120"/&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
cite="mid:CAEhEJ-USSZru39jg6VUKEgS+UK0b3+2ecJaYdMiorz-vpR-1gQ@mail.gmail.com"
      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 moz-do-not-send="true"
              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'm sure the
            answer is<br>
            simple but I just can'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 'no device left behind' and NAT
            issues..<br>
            <br>
            All seemed well, all the phones register normally. &nbsp; 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'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 moz-do-not-send="true"
              href="mailto:hcoin@pbx.foobar.com">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't hit<br>
            the correct plan? &nbsp;Both the phones and the freeswitch are on
            the same<br>
            subnet. &nbsp;This should be so vanilla. &nbsp;What am I missing?<br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
            <br>
_________________________________________________________________________<br>
            Professional FreeSWITCH Consulting Services:<br>
            <a moz-do-not-send="true"
              href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://www.freeswitchsolutions.com" target="_blank">http://www..freeswitchsolutions.com</a><br>
            <br>
            FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
            <a moz-do-not-send="true" href="http://www.cudatel.com"
              target="_blank">http://www.cudatel.com</a><br>
            <br>
            Official FreeSWITCH Sites<br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://wiki.freeswitch.org"
              target="_blank">http://wiki.freeswitch.org</a><br>
            <a moz-do-not-send="true" href="http://www.cluecon.com"
              target="_blank">http://www.cluecon.com</a><br>
            <br>
            FreeSWITCH-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
            UNSUBSCRIBE:<a moz-do-not-send="true"
              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
            <a moz-do-not-send="true" href="http://www.freeswitch.org"
              target="_blank">http://www.freeswitch.org</a><br>
          </blockquote>
        </div>
        <br>
      </div>
      <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>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.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://wiki.freeswitch.org">http://wiki.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>
  </body>
</html>