<div dir="ltr">I will take a closer look at the gateways.  However, your email looks like it was sent before you completed it. <div><br></div><div style>What about the inbound DID? Any ideas?</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <span dir="ltr">&lt;<a href="mailto:philippe@ppmt.org" target="_blank">philippe@ppmt.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


  
    
  
  <div bgcolor="#CCCCCC" text="#000000">
    I am no expert so I could be wrong but:<br>
    <br>
    First your outbound is no registered (NOREG) so that is most likely
    going to prevent outgoing call<br>
    <br>
    Also you refer to default_gateway in your dialplan....what value is
    it set to? Check vars.xmls<br>
    <br>
    I normally use directly the name of my gateway instead of using
    variable (might not be the best way though )<br>
    <br>
    <br>
    <br>
    But you have the <br><div><div class="h5">
    <div>On 13-05-19 11:39 PM, Mike Hendrie
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Thank you for your response.  Per your request here
        is the result of the <span style="font-family:arial,sans-serif;font-size:13px">sofia
          status command:</span>
        <div><br>
        </div>
        <div>
          <div>freeswitch@internal&gt; sofia status</div>
          <div>                     Name          Type                  
                                Data      State</div>
          <div>=================================================================================================</div>
          <div>                 10.1.1.5         alias                  
                            internal      ALIASED</div>
          <div>                 internal       profile                <a href="http://sip:mod_sofia@10.1.1.5:5060" target="_blank">sip:mod_sofia@10.1.1.5:5060</a>
                 RUNNING (0)</div>
          <div>                 external       profile                <a href="http://sip:mod_sofia@10.1.1.5:5080" target="_blank">sip:mod_sofia@10.1.1.5:5080</a>
                 RUNNING (0)</div>
          <div>    external::<a href="http://example.com" target="_blank">example.com</a>       gateway  
                             <a href="mailto:sip%3Ajoeuser@example.com" target="_blank">sip:joeuser@example.com</a>
                 NOREG</div>
          <div>external::BatCave-inbound      gateway    
             <a href="mailto:sip:J0k3R!@BacCave.hole.Xom" target="_blank">sip:J0k3R!@BacCave.hole.Xom</a>      REGED</div>
          <div>external::BatCat-outbound     gateway    
             <a href="mailto:sip:J0k3R!@BacCave.hole.Xom" target="_blank">sip:J0k3R!@BacCave.hole.Xom</a>      NOREG</div>
          <div>           GothamCity.xom         alias                  
                            internal      ALIASED</div>
          <div>            internal-ipv6       profile                  
            sip:mod_sofia@[::1]:5060      RUNNING (0)</div>
          <div>=================================================================================================</div>
          <div>3 profiles 2 aliases</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>==========================================<br>
        </div>
        <div>/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml<br>
        </div>
        <div><br>
        </div>
        <div>
          <div>&lt;!-- <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML" target="_blank">http://wiki.freeswitch.org/wiki/Dialplan_XML</a>
            --&gt;</div>
          <div>&lt;include&gt;</div>
          <div>  &lt;context name=&quot;GothamCity.xom&quot;&gt;</div>
          <div>   &lt;extension name=&quot;vitel-inbound&quot;&gt;</div>
          <div>     &lt;condition field=&quot;destination_number&quot;
            expression=&quot;&quot;&gt;</div>
          <div>        &lt;action application=&quot;transfer&quot; data=&quot;1000 XML
            default&quot;/&gt;</div>
          <div>     &lt;/condition&gt;</div>
          <div>    &lt;/extension&gt;</div>
          <div>==========================================</div>
          <div>
            <div><br>
            </div>
            <div>
              <div> /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml</div>
              <div><br>
              </div>
            </div>
            <div>&lt;include&gt;</div>
            <div><br>
            </div>
            <div>  &lt;extension name=&quot;<a href="http://local.example.com" target="_blank">local.example.com</a>&quot;&gt;</div>
            <div>    &lt;condition field=&quot;${toll_allow}&quot;
              expression=&quot;local&quot;/&gt;</div>
            <div>    &lt;condition field=&quot;destination_number&quot;
              expression=&quot;^(\d{7})$&quot;&gt;</div>
            <div>      &lt;action application=&quot;set&quot;
              data=&quot;effective_caller_id_number=${outbound_caller_id_number}&quot;/&gt;</div>
            <div>      &lt;action application=&quot;set&quot;
              data=&quot;effective_caller_id_name=${outbound_caller_id_name}&quot;/&gt;</div>
            <div>      &lt;action application=&quot;bridge&quot;
              data=&quot;sofia/gateway/${default_gateway}/1${default_areacode}$1&quot;/&gt;</div>
            <div>    &lt;/condition&gt;</div>
            <div>  &lt;/extension&gt;</div>
            <div><br>
            </div>
            <div>  &lt;extension name=&quot;<a href="http://domestic.example.com" target="_blank">domestic.example.com</a>&quot;&gt;</div>
            <div>    &lt;condition field=&quot;${toll_allow}&quot;
              expression=&quot;domestic&quot;/&gt;</div>
            <div>    &lt;condition field=&quot;destination_number&quot;
              expression=&quot;^(\d{11})$&quot;&gt;</div>
            <div>      &lt;action application=&quot;set&quot;
              data=&quot;effective_caller_id_number=${outbound_caller_id_number}&quot;/&gt;</div>
            <div>      &lt;action application=&quot;set&quot;
              data=&quot;effective_caller_id_name=${outbound_caller_id_name}&quot;/&gt;</div>
            <div>      &lt;action application=&quot;bridge&quot;
              data=&quot;sofia/gateway/${default_gateway}/$1&quot;/&gt;</div>
            <div>    &lt;/condition&gt;</div>
            <div>  &lt;/extension&gt;</div>
            <div><br>
            </div>
            <div>  &lt;extension name=&quot;<a href="http://international.example.com" target="_blank">international.example.com</a>&quot;&gt;</div>
            <div>    &lt;condition field=&quot;${toll_allow}&quot;
              expression=&quot;international&quot;/&gt;</div>
            <div>    &lt;condition field=&quot;destination_number&quot;
              expression=&quot;^(011\d+)$&quot;&gt;</div>
            <div>      &lt;action application=&quot;set&quot;
              data=&quot;effective_caller_id_number=${outbound_caller_id_number}&quot;/&gt;</div>
            <div>      &lt;action application=&quot;set&quot;
              data=&quot;effective_caller_id_name=${outbound_caller_id_name}&quot;/&gt;</div>
            <div>      &lt;action application=&quot;bridge&quot;
              data=&quot;sofia/gateway/${default_gateway}/$1&quot;/&gt;</div>
            <div>    &lt;/condition&gt;</div>
            <div>  &lt;/extension&gt;</div>
            <div><br>
            </div>
            <div>&lt;/include&gt;</div>
          </div>
          <div>
            <div><br>
            </div>
            <div>==========================================</div>
          </div>
          <div>/usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml<br>
          </div>
          <div><br>
          </div>
          <div>
            <div>&lt;include&gt;</div>
            <div>        &lt;gateway name=&quot;BatCave-outbound&quot;&gt;</div>
            <div>           &lt;!--/// account username *required*
              ///--&gt;</div>
            <div>           &lt;param name=&quot;username&quot; value=&quot;Joker&quot;/&gt;</div>
            <div>           &lt;!--/// auth realm: *optional* same as
              gateway name, if blank ///--&gt;</div>
            <div>           &lt;param name=&quot;realm&quot;
              value=&quot;BatCave-outbound&quot;/&gt;</div>
            <div>           &lt;!--/// account password *required*
              ///--&gt;</div>
            <div>           &lt;param name=&quot;password&quot; value=&quot;2F@ce&quot;/&gt;</div>
            <div>           &lt;!--/// extension for inbound calls:
              *optional* same as username, if blank ///--&gt;</div>
            <div>           &lt;param name=&quot;extension&quot;
              value=&quot;default&quot;/&gt;</div>
            <div>           &lt;!--/// proxy host: *optional* same as
              realm, if blank ///--&gt;</div>
            <div>           &lt;param name=&quot;proxy&quot; value=&quot;<a href="http://outbound1.BatCave.net" target="_blank">outbound1.BatCave.net</a>&quot;/&gt;</div>
            <div>           &lt;!--/// expire in seconds: *optional*
              3600, if blank ///--&gt;</div>
            <div>           &lt;param name=&quot;expire-seconds&quot;
              value=&quot;600&quot;/&gt;</div>
            <div>           &lt;!--/// register: *optional* true, if
              blank ///--&gt;</div>
            <div>           &lt;param name=&quot;register&quot; value=&quot;false&quot;
              /&gt;</div>
            <div>         &lt;/gateway&gt;</div>
            <div>        &lt;/include&gt;</div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>        &lt;include&gt;</div>
            <div>        &lt;gateway name=&quot;BatCave-inbound&quot;&gt;</div>
            <div>           &lt;!--/// account username *required*
              ///--&gt;</div>
            <div>           &lt;param name=&quot;username&quot; value=&quot;Joker&quot;/&gt;</div>
            <div>           &lt;!--/// auth realm: *optional* same as
              gateway name, if blank ///--&gt;</div>
            <div>           &lt;param name=&quot;realm&quot;
              value=&quot;BatCave-inbound&quot;/&gt;</div>
            <div>           &lt;!--/// account password *required* (do
              not include allow=all) ///--&gt;</div>
            <div>           &lt;param name=&quot;password&quot; value=&quot;2F@ce&quot;/&gt;</div>
            <div>           &lt;!--/// extension for inbound calls:
              *optional* same as username, if blank ///--&gt;</div>
            <div>           &lt;param name=&quot;extension&quot;
              value=&quot;default&quot;/&gt;</div>
            <div>           &lt;!--/// proxy host: *optional* same as
              realm, if blank ///--&gt;</div>
            <div>           &lt;param name=&quot;proxy&quot;
              value=&quot;Yup.Not.REAL.Port&quot;/&gt;</div>
            <div>           &lt;!--/// expire in seconds: *optional*
              3600, if blank ///--&gt;</div>
            <div>           &lt;param name=&quot;expire-seconds&quot;
              value=&quot;600&quot;/&gt;</div>
            <div>           &lt;param name=&quot;context&quot;
              value=&quot;inbound&quot;/&gt;</div>
            <div>           &lt;!--/// register: *optional* true, if
              blank ///--&gt;</div>
            <div>           &lt;param name=&quot;register&quot; value=&quot;true&quot; /&gt;</div>
            <div>         &lt;/gateway&gt;</div>
            <div>        &lt;/include&gt;</div>
          </div>
          <div><br>
          </div>
          <div>
            <div>==========================================</div>
          </div>
        </div>
        <div>/usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml</div>
        <div> </div>
        <div>
          <div>&lt;include&gt;</div>
          <div>  &lt;user id=&quot;1000&quot;&gt;</div>
          <div>    &lt;params&gt;</div>
          <div>      &lt;param name=&quot;password&quot;
            value=&quot;$${default_password}&quot;/&gt;</div>
          <div>      &lt;param name=&quot;vm-password&quot; value=&quot;1000&quot;/&gt;</div>
          <div>    &lt;/params&gt;</div>
          <div>    &lt;variables&gt;</div>
          <div>      &lt;variable name=&quot;toll_allow&quot;
            value=&quot;domestic,international,local&quot;/&gt;</div>
          <div>      &lt;variable name=&quot;accountcode&quot; value=&quot;1000&quot;/&gt;</div>
          <div>     &lt;!-- &lt;variable name=&quot;user_context&quot;
            value=&quot;default&quot;/&gt;--&gt;</div>
          <div>      &lt;variable name=&quot;effective_caller_id_name&quot;
            value=&quot;Extension 1000&quot;/&gt;</div>
          <div>      &lt;variable name=&quot;effective_caller_id_number&quot;
            value=&quot;1000&quot;/&gt;</div>
          <div>      &lt;variable name=&quot;outbound_caller_id_name&quot;
            value=&quot;$${outbound_caller_name}&quot;/&gt;</div>
          <div>
                  &lt;variable name=&quot;outbound_caller_id_number&quot;
            value=&quot;$${outbound_caller_id}&quot;/&gt;</div>
          <div>      &lt;variable name=&quot;callgroup&quot;
            value=&quot;techsupport&quot;/&gt;</div>
          <div>    &lt;/variables&gt;</div>
          <div>  &lt;/user&gt;</div>
          <div>&lt;/include&gt;</div>
        </div>
        <div><br>
        </div>
        <div>
          <div>
            <div>==========================================</div>
          </div>
        </div>
        <div class="gmail_extra"><br>
          <br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><div class="im"><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>
    </div></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><br></div>