<div dir="ltr"><div><div><div><div><div><div>Hi Mike,<br><br></div>No worries - this can be frustrating at first. You'll get the hang of it shortly.<br><br></div>Okay, technically speaking there is no explicit link between a gateway and an extension. Rather, the inbound call is handled by the dialplan. If you're using the vanilla example configs (which you should be to start out) then your inbound call is handled in the public dialplan context. This means that you need to have a file in conf/dialplan/public/ to handle your inbound call. It looks to me like your GothamCity.xom.xml file would work, but you'll need to make at least two changes:<br>
<br></div>#1 - move the file from the conf/dialplan/default/ directory into conf/dialplan/public/<br></div>#2 - add the regular expression for your DID number. For example, if your DID number was 800-555-1212 you would do something like this:<br>
<br><span style="font-family:courier new,monospace"><extension name="vitel-inbound">
</span><div><span style="font-family:courier new,monospace"> <condition field="destination_number"
expression="^1?(8005551212)$"></span></div><span style="font-family:courier new,monospace">
</span><div><span style="font-family:courier new,monospace"> <action application="transfer" data="1000 XML
default"/></span></div><span style="font-family:courier new,monospace">
</span><div><span style="font-family:courier new,monospace"> </condition></span></div><span style="font-family:courier new,monospace">
</span><div><span style="font-family:courier new,monospace"> </extension></span></div><br><br></div>Hope this helps.<br></div>-MC<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 21, 2013 at 1:23 PM, Mike Hendrie <span dir="ltr"><<a href="mailto:mike@hendrienet.com" target="_blank">mike@hendrienet.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I think I am missing the basic understanding of how the DID connects to the gateway then to the extension. Which file does what. <div>
<br></div><div>thanks!!</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Tue, May 21, 2013 at 3:20 PM, Mike Hendrie <span dir="ltr"><<a href="mailto:mike@hendrienet.com" target="_blank">mike@hendrienet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I am looking in the vars.xml file and am not seeing any reference to a gateway: <div><br></div><div>======</div><div>vars.xml</div><div><br></div><div><div> <X-PRE-PROCESS cmd="set" data="default_password=H1dD3n!"/></div>
<div><br></div><div><div><X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/></div><div><X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/></div><div><X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/></div>
<div><X-PRE-PROCESS cmd="set" data="use_profile=internal"/></div><div><br></div></div><div><div><X-PRE-PROCESS cmd="set" data="zrtp_secure_media=true"/></div><div><br></div>
</div><div><div><X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/></div><div><X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/></div>
<div><br></div><div><div><X-PRE-PROCESS cmd="set" data="xmpp_client_profile=xmppc"/></div><div><X-PRE-PROCESS cmd="set" data="xmpp_server_profile=xmpps"/></div><div> </div>
</div></div><div><div><X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/></div><div><br></div></div><div><div><X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:<a href="http://stun.freeswitch.org" target="_blank">stun.freeswitch.org</a>"/></div>
<div><br></div></div><div><div><X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:<a href="http://stun.freeswitch.org" target="_blank">stun.freeswitch.org</a>"/></div><div><br></div></div><div>
<div><X-PRE-PROCESS cmd="set" data="unroll_loops=true"/></div>
<div><br></div></div><div><div><X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/></div><div><X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/></div>
<div><br></div></div><div><br></div><div><div> <X-PRE-PROCESS cmd="set" data="call_debug=false"/></div><div> <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/></div>
<div> <X-PRE-PROCESS cmd="set" data="default_areacode=918"/></div><div> <X-PRE-PROCESS cmd="set" data="default_country=US"/></div><div><br></div></div><div><br></div>
<div>
<div> <X-PRE-PROCESS cmd="set" data="presence_privacy=false"/></div><div><br></div><div> <X-PRE-PROCESS cmd="set" data="be-ring=%(1000,3000,425)"/></div><div> <X-PRE-PROCESS cmd="set" data="ca-ring=%(2000,4000,440,480)"/></div>
<div> <X-PRE-PROCESS cmd="set" data="cn-ring=%(1000,4000,450)"/></div><div> <X-PRE-PROCESS cmd="set" data="cy-ring=%(1500,3000,425)"/></div><div> <X-PRE-PROCESS cmd="set" data="cz-ring=%(1000,4000,425)"/></div>
<div> <X-PRE-PROCESS cmd="set" data="de-ring=%(1000,4000,425)"/></div><div> <X-PRE-PROCESS cmd="set" data="dk-ring=%(1000,4000,425)"/></div><div> <X-PRE-PROCESS cmd="set" data="dz-ring=%(1500,3500,425)"/></div>
<div> <X-PRE-PROCESS cmd="set" data="eg-ring=%(2000,1000,475,375)"/></div><div> <X-PRE-PROCESS cmd="set" data="es-ring=%(1500,3000,425)"/></div><div> <X-PRE-PROCESS cmd="set" data="fi-ring=%(1000,4000,425)"/></div>
<div> <X-PRE-PROCESS cmd="set" data="fr-ring=%(1500,3500,440)"/></div><div> <X-PRE-PROCESS cmd="set" data="hk-ring=%(400,200,440,480);%(400,3000,440,480)"/></div><div>
<X-PRE-PROCESS cmd="set" data="hu-ring=%(1250,3750,425)"/></div><div> <X-PRE-PROCESS cmd="set" data="il-ring=%(1000,3000,400)"/></div><div> <X-PRE-PROCESS cmd="set" data="in-ring=%(400,200,425,375);%(400,2000,425,375)"/></div>
<div> <X-PRE-PROCESS cmd="set" data="jp-ring=%(1000,2000,420,380)"/></div><div> <X-PRE-PROCESS cmd="set" data="ko-ring=%(1000,2000,440,480)"/></div><div> <X-PRE-PROCESS cmd="set" data="pk-ring=%(1000,2000,400)"/></div>
<div> <X-PRE-PROCESS cmd="set" data="pl-ring=%(1000,4000,425)"/></div><div> <X-PRE-PROCESS cmd="set" data="ro-ring=%(1850,4150,475,425)"/></div><div> <X-PRE-PROCESS cmd="set" data="rs-ring=%(1000,4000,425)"/></div>
<div> <X-PRE-PROCESS cmd="set" data="ru-ring=%(800,3200,425)"/></div><div> <X-PRE-PROCESS cmd="set" data="sa-ring=%(1200,4600,425)"/></div><div> <X-PRE-PROCESS cmd="set" data="tr-ring=%(2000,4000,450)"/></div>
<div> <X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2000,400,450)"/></div><div> <X-PRE-PROCESS cmd="set" data="us-ring=%(2000,4000,440,480)"/></div>
<div>
<X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/></div><div> <X-PRE-PROCESS cmd="set" data="beep=%(1000,0,640)"/></div>
<div> <X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/></div><div> </div></div><div><br></div><div><div> <X-PRE-PROCESS cmd="set" data="default_provider=<a href="http://example.com" target="_blank">example.com</a>"/></div>
<div> <X-PRE-PROCESS cmd="set" data="default_provider_username=joeuser"/></div><div> <X-PRE-PROCESS cmd="set" data="default_provider_password=password"/></div><div> <X-PRE-PROCESS cmd="set" data="default_provider_from_domain=<a href="http://example.com" target="_blank">example.com</a>"/></div>
<div> </div></div><div><br></div><div><br></div><div><div> <X-PRE-PROCESS cmd="set" data="default_provider_register=false"/></div><div> <X-PRE-PROCESS cmd="set" data="default_provider_contact=5000"/></div>
<div><br></div></div><div><div> <X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/></div><div><br></div></div><div><br></div><div><div> <X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/></div>
<div> <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/></div><div> <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/></div><div> <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/></div>
<div><br></div></div><div><div> <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/></div><div> <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/></div><div>
<X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/></div><div> <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/></div><div><br></div></div><div><br></div>
<div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>
<div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <span dir="ltr"><<a href="mailto:philippe@ppmt.org" target="_blank">philippe@ppmt.org</a>></span> wrote:<br>
</div><div><div><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>
<div>On 13-05-19 11:39 PM, Mike Hendrie
wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div>
<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> 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><!-- <a href="http://wiki.freeswitch.org/wiki/Dialplan_XML" target="_blank">http://wiki.freeswitch.org/wiki/Dialplan_XML</a>
--></div>
<div><include></div>
<div> <context name="GothamCity.xom"></div>
<div> <extension name="vitel-inbound"></div>
<div> <condition field="destination_number"
expression=""></div>
<div> <action application="transfer" data="1000 XML
default"/></div>
<div> </condition></div>
<div> </extension></div>
<div>==========================================</div>
<div>
<div><br>
</div>
<div>
<div> /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml</div>
<div><br>
</div>
</div>
<div><include></div>
<div><br>
</div>
<div> <extension name="<a href="http://local.example.com" target="_blank">local.example.com</a>"></div>
<div> <condition field="${toll_allow}"
expression="local"/></div>
<div> <condition field="destination_number"
expression="^(\d{7})$"></div>
<div> <action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/></div>
<div> <action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/></div>
<div> <action application="bridge"
data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/></div>
<div> </condition></div>
<div> </extension></div>
<div><br>
</div>
<div> <extension name="<a href="http://domestic.example.com" target="_blank">domestic.example.com</a>"></div>
<div> <condition field="${toll_allow}"
expression="domestic"/></div>
<div> <condition field="destination_number"
expression="^(\d{11})$"></div>
<div> <action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/></div>
<div> <action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/></div>
<div> <action application="bridge"
data="sofia/gateway/${default_gateway}/$1"/></div>
<div> </condition></div>
<div> </extension></div>
<div><br>
</div>
<div> <extension name="<a href="http://international.example.com" target="_blank">international.example.com</a>"></div>
<div> <condition field="${toll_allow}"
expression="international"/></div>
<div> <condition field="destination_number"
expression="^(011\d+)$"></div>
<div> <action application="set"
data="effective_caller_id_number=${outbound_caller_id_number}"/></div>
<div> <action application="set"
data="effective_caller_id_name=${outbound_caller_id_name}"/></div>
<div> <action application="bridge"
data="sofia/gateway/${default_gateway}/$1"/></div>
<div> </condition></div>
<div> </extension></div>
<div><br>
</div>
<div></include></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><include></div>
<div> <gateway name="BatCave-outbound"></div>
<div> <!--/// account username *required*
///--></div>
<div> <param name="username" value="Joker"/></div>
<div> <!--/// auth realm: *optional* same as
gateway name, if blank ///--></div>
<div> <param name="realm"
value="BatCave-outbound"/></div>
<div> <!--/// account password *required*
///--></div>
<div> <param name="password" value="2F@ce"/></div>
<div> <!--/// extension for inbound calls:
*optional* same as username, if blank ///--></div>
<div> <param name="extension"
value="default"/></div>
<div> <!--/// proxy host: *optional* same as
realm, if blank ///--></div>
<div> <param name="proxy" value="<a href="http://outbound1.BatCave.net" target="_blank">outbound1.BatCave.net</a>"/></div>
<div> <!--/// expire in seconds: *optional*
3600, if blank ///--></div>
<div> <param name="expire-seconds"
value="600"/></div>
<div> <!--/// register: *optional* true, if
blank ///--></div>
<div> <param name="register" value="false"
/></div>
<div> </gateway></div>
<div> </include></div>
<div><br>
</div>
<div><br>
</div>
<div> <include></div>
<div> <gateway name="BatCave-inbound"></div>
<div> <!--/// account username *required*
///--></div>
<div> <param name="username" value="Joker"/></div>
<div> <!--/// auth realm: *optional* same as
gateway name, if blank ///--></div>
<div> <param name="realm"
value="BatCave-inbound"/></div>
<div> <!--/// account password *required* (do
not include allow=all) ///--></div>
<div> <param name="password" value="2F@ce"/></div>
<div> <!--/// extension for inbound calls:
*optional* same as username, if blank ///--></div>
<div> <param name="extension"
value="default"/></div>
<div> <!--/// proxy host: *optional* same as
realm, if blank ///--></div>
<div> <param name="proxy"
value="Yup.Not.REAL.Port"/></div>
<div> <!--/// expire in seconds: *optional*
3600, if blank ///--></div>
<div> <param name="expire-seconds"
value="600"/></div>
<div> <param name="context"
value="inbound"/></div>
<div> <!--/// register: *optional* true, if
blank ///--></div>
<div> <param name="register" value="true" /></div>
<div> </gateway></div>
<div> </include></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><include></div>
<div> <user id="1000"></div>
<div> <params></div>
<div> <param name="password"
value="$${default_password}"/></div>
<div> <param name="vm-password" value="1000"/></div>
<div> </params></div>
<div> <variables></div>
<div> <variable name="toll_allow"
value="domestic,international,local"/></div>
<div> <variable name="accountcode" value="1000"/></div>
<div> <!-- <variable name="user_context"
value="default"/>--></div>
<div> <variable name="effective_caller_id_name"
value="Extension 1000"/></div>
<div> <variable name="effective_caller_id_number"
value="1000"/></div>
<div> <variable name="outbound_caller_id_name"
value="$${outbound_caller_name}"/></div>
<div>
<variable name="outbound_caller_id_number"
value="$${outbound_caller_id}"/></div>
<div> <variable name="callgroup"
value="techsupport"/></div>
<div> </variables></div>
<div> </user></div>
<div></include></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><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" 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>
<br></blockquote></div></div></div><br></div>
</blockquote></div><br></div>
</div></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><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div>