Cannot ring extension from DID
*==========================* *Server:* Ubuntu 12.04 *Version:* FreeSWITCH Version 1.5.1 *Enabled:* Multi-Tenant *Extensions:* 1000 and 1001 *Connection:* freeswitch server NAT to provider *Connection: *extensions are on the same LAN as fs server *DID:* 1 DID ========================== *Can-Do: * - I can dial extension to extension (1000 to 1001) and the phone rings and can talk. - I can test with extension 5000 and listen to the echo test. - I can dial the DID to the Freeswitch server. The server sends the the call to voicemail, 1000, when it should ring the phone. *Cannot Do:* - I cannot call out of any extension. The phone does not ring. It is silent. - I cannot dial the DID and ring a phone. It only goes to VoiceMail. *Question:* - Why can I not dial the DID and have the extension ring? - Where should I check? Thank you, Mike
Without seeing your dialplan, it is going difficult to help what does the command below gives you: sofia status On 13-05-19 09:25 AM, Mike Hendrie wrote:
*==========================* *Server:* Ubuntu 12.04 *Version:* FreeSWITCH Version 1.5.1 *Enabled:* Multi-Tenant *Extensions:* 1000 and 1001 *Connection:* freeswitch server NAT to provider *Connection: *extensions are on the same LAN as fs server *DID:* 1 DID ==========================
*Can-Do: *
* I can dial extension to extension (1000 to 1001) and the phone rings and can talk. * I can test with extension 5000 and listen to the echo test. * I can dial the DID to the Freeswitch server. The server sends the the call to voicemail, 1000, when it should ring the phone.
*Cannot Do:*
* I cannot call out of any extension. The phone does not ring. It is silent. * I cannot dial the DID and ring a phone. It only goes to VoiceMail.
*Question:*
* Why can I not dial the DID and have the extension ring? * Where should I check?
Thank you, Mike
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thank you for your response. Per your request here is the result of the sofia status command: freeswitch@internal> sofia status Name Type Data State ================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0) ================================================================================================= 3 profiles 2 aliases ========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml <!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml <include> <extension name="local.example.com"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension> <extension name="domestic.example.com"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension> <extension name="international.example.com"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension> </include> ========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml <include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include> <include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include> ========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml <include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include> ==========================================
I am no expert so I could be wrong but: First your outbound is no registered (NOREG) so that is most likely going to prevent outgoing call Also you refer to default_gateway in your dialplan....what value is it set to? Check vars.xmls I normally use directly the name of my gateway instead of using variable (might not be the best way though ) But you have the On 13-05-19 11:39 PM, Mike Hendrie wrote:
Thank you for your response. Per your request here is the result of the sofia status command:
freeswitch@internal> sofia status Name Type Data State ================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 <http://sip:mod_sofia@10.1.1.5:5060> RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 <http://sip:mod_sofia@10.1.1.5:5080> RUNNING (0) external::example.com <http://example.com> gateway sip:joeuser@example.com <mailto:sip%3Ajoeuser@example.com> NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0) ================================================================================================= 3 profiles 2 aliases
========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ==========================================
/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<include>
<extension name="local.example.com <http://local.example.com>"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension>
<extension name="domestic.example.com <http://domestic.example.com>"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
<extension name="international.example.com <http://international.example.com>"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
</include>
========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net <http://outbound1.BatCave.net>"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include>
<include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include>
========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml <include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
==========================================
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I will take a closer look at the gateways. However, your email looks like it was sent before you completed it. What about the inbound DID? Any ideas? On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <philippe@ppmt.org>wrote:
I am no expert so I could be wrong but:
First your outbound is no registered (NOREG) so that is most likely going to prevent outgoing call
Also you refer to default_gateway in your dialplan....what value is it set to? Check vars.xmls
I normally use directly the name of my gateway instead of using variable (might not be the best way though )
But you have the On 13-05-19 11:39 PM, Mike Hendrie wrote:
Thank you for your response. Per your request here is the result of the sofia status command:
freeswitch@internal> sofia status Name Type Data State
================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)
================================================================================================= 3 profiles 2 aliases
========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ==========================================
/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<include>
<extension name="local.example.com"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension>
<extension name="domestic.example.com"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
<extension name="international.example.com"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
</include>
========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include>
<include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include>
========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml
<include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
==========================================
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
For the inbound I didn't comment because I can't understand how your dialplan would link your gateway to your extension On 21 May 2013 00:50, Mike Hendrie <mike@hendrienet.com> wrote:
I will take a closer look at the gateways. However, your email looks like it was sent before you completed it.
What about the inbound DID? Any ideas?
On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <philippe@ppmt.org>wrote:
I am no expert so I could be wrong but:
First your outbound is no registered (NOREG) so that is most likely going to prevent outgoing call
Also you refer to default_gateway in your dialplan....what value is it set to? Check vars.xmls
I normally use directly the name of my gateway instead of using variable (might not be the best way though )
But you have the On 13-05-19 11:39 PM, Mike Hendrie wrote:
Thank you for your response. Per your request here is the result of the sofia status command:
freeswitch@internal> sofia status Name Type Data State
================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)
================================================================================================= 3 profiles 2 aliases
========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ==========================================
/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<include>
<extension name="local.example.com"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension>
<extension name="domestic.example.com"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
<extension name="international.example.com"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
</include>
========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include>
<include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include>
========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml
<include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
==========================================
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
As you may have guessed, I'm new to the application. Can you say how I should configure the inbound? Mike On May 21, 2013 12:43 PM, "Philippe Le Toquin" <philippe@ppmt.org> wrote:
For the inbound I didn't comment because I can't understand how your dialplan would link your gateway to your extension
On 21 May 2013 00:50, Mike Hendrie <mike@hendrienet.com> wrote:
I will take a closer look at the gateways. However, your email looks like it was sent before you completed it.
What about the inbound DID? Any ideas?
On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <philippe@ppmt.org>wrote:
I am no expert so I could be wrong but:
First your outbound is no registered (NOREG) so that is most likely going to prevent outgoing call
Also you refer to default_gateway in your dialplan....what value is it set to? Check vars.xmls
I normally use directly the name of my gateway instead of using variable (might not be the best way though )
But you have the On 13-05-19 11:39 PM, Mike Hendrie wrote:
Thank you for your response. Per your request here is the result of the sofia status command:
freeswitch@internal> sofia status Name Type Data State
================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)
================================================================================================= 3 profiles 2 aliases
========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ==========================================
/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<include>
<extension name="local.example.com"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension>
<extension name="domestic.example.com"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
<extension name="international.example.com"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
</include>
========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include>
<include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include>
========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml
<include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
==========================================
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
your inbound is properly configure (well it is registered at least) so it should be able to send any inbound call to your FS server. As MC explained it much better than I did I am not going to try to confuse you but the magic is in the dialplan! I have been using FS for some time now but only using it like you to make and receive calls so I am not exactly an expert. One advice I can give you is to read the Wiki (http://wiki.freeswitch.org/wiki/Main_Page) It contains a lot of example and you will most likely find inspiration there and of course the Freeswitch book is a must to get even more detailed information. You can buy it form the FS website(http://www.freeswitch.org/) On 13-05-21 01:47 PM, Mike Hendrie wrote:
As you may have guessed, I'm new to the application. Can you say how I should configure the inbound?
Mike
On May 21, 2013 12:43 PM, "Philippe Le Toquin" <philippe@ppmt.org <mailto:philippe@ppmt.org>> wrote:
For the inbound I didn't comment because I can't understand how your dialplan would link your gateway to your extension
On 21 May 2013 00:50, Mike Hendrie <mike@hendrienet.com <mailto:mike@hendrienet.com>> wrote:
I will take a closer look at the gateways. However, your email looks like it was sent before you completed it.
What about the inbound DID? Any ideas?
On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <philippe@ppmt.org <mailto:philippe@ppmt.org>> wrote:
I am no expert so I could be wrong but:
First your outbound is no registered (NOREG) so that is most likely going to prevent outgoing call
Also you refer to default_gateway in your dialplan....what value is it set to? Check vars.xmls
I normally use directly the name of my gateway instead of using variable (might not be the best way though )
But you have the On 13-05-19 11:39 PM, Mike Hendrie wrote:
Thank you for your response. Per your request here is the result of the sofia status command:
freeswitch@internal> sofia status Name Type Data State ================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 <http://sip:mod_sofia@10.1.1.5:5060> RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 <http://sip:mod_sofia@10.1.1.5:5080> RUNNING (0) external::example.com <http://example.com> gateway sip:joeuser@example.com <mailto:sip%3Ajoeuser@example.com> NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom <mailto:sip:J0k3R%21@BacCave.hole.Xom> REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom <mailto:sip:J0k3R%21@BacCave.hole.Xom> NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0) ================================================================================================= 3 profiles 2 aliases
========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ==========================================
/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<include>
<extension name="local.example.com <http://local.example.com>"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension>
<extension name="domestic.example.com <http://domestic.example.com>"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
<extension name="international.example.com <http://international.example.com>"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
</include>
========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net <http://outbound1.BatCave.net>"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include>
<include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include>
========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml <include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
==========================================
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I am looking in the vars.xml file and am not seeing any reference to a gateway: ====== vars.xml <X-PRE-PROCESS cmd="set" data="default_password=H1dD3n!"/> <X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/> <X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/> <X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/> <X-PRE-PROCESS cmd="set" data="use_profile=internal"/> <X-PRE-PROCESS cmd="set" data="zrtp_secure_media=true"/> <X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/> <X-PRE-PROCESS cmd="set" data="xmpp_client_profile=xmppc"/> <X-PRE-PROCESS cmd="set" data="xmpp_server_profile=xmpps"/> <X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/> <X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org"/> <X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org"/> <X-PRE-PROCESS cmd="set" data="unroll_loops=true"/> <X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/> <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/> <X-PRE-PROCESS cmd="set" data="call_debug=false"/> <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/> <X-PRE-PROCESS cmd="set" data="default_areacode=918"/> <X-PRE-PROCESS cmd="set" data="default_country=US"/> <X-PRE-PROCESS cmd="set" data="presence_privacy=false"/> <X-PRE-PROCESS cmd="set" data="be-ring=%(1000,3000,425)"/> <X-PRE-PROCESS cmd="set" data="ca-ring=%(2000,4000,440,480)"/> <X-PRE-PROCESS cmd="set" data="cn-ring=%(1000,4000,450)"/> <X-PRE-PROCESS cmd="set" data="cy-ring=%(1500,3000,425)"/> <X-PRE-PROCESS cmd="set" data="cz-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="de-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="dk-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="dz-ring=%(1500,3500,425)"/> <X-PRE-PROCESS cmd="set" data="eg-ring=%(2000,1000,475,375)"/> <X-PRE-PROCESS cmd="set" data="es-ring=%(1500,3000,425)"/> <X-PRE-PROCESS cmd="set" data="fi-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="fr-ring=%(1500,3500,440)"/> <X-PRE-PROCESS cmd="set" data="hk-ring=%(400,200,440,480);%(400,3000,440,480)"/> <X-PRE-PROCESS cmd="set" data="hu-ring=%(1250,3750,425)"/> <X-PRE-PROCESS cmd="set" data="il-ring=%(1000,3000,400)"/> <X-PRE-PROCESS cmd="set" data="in-ring=%(400,200,425,375);%(400,2000,425,375)"/> <X-PRE-PROCESS cmd="set" data="jp-ring=%(1000,2000,420,380)"/> <X-PRE-PROCESS cmd="set" data="ko-ring=%(1000,2000,440,480)"/> <X-PRE-PROCESS cmd="set" data="pk-ring=%(1000,2000,400)"/> <X-PRE-PROCESS cmd="set" data="pl-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="ro-ring=%(1850,4150,475,425)"/> <X-PRE-PROCESS cmd="set" data="rs-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="ru-ring=%(800,3200,425)"/> <X-PRE-PROCESS cmd="set" data="sa-ring=%(1200,4600,425)"/> <X-PRE-PROCESS cmd="set" data="tr-ring=%(2000,4000,450)"/> <X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2000,400,450)"/> <X-PRE-PROCESS cmd="set" data="us-ring=%(2000,4000,440,480)"/> <X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/> <X-PRE-PROCESS cmd="set" data="beep=%(1000,0,640)"/> <X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/> <X-PRE-PROCESS cmd="set" data="default_provider=example.com"/> <X-PRE-PROCESS cmd="set" data="default_provider_username=joeuser"/> <X-PRE-PROCESS cmd="set" data="default_provider_password=password"/> <X-PRE-PROCESS cmd="set" data="default_provider_from_domain=example.com"/> <X-PRE-PROCESS cmd="set" data="default_provider_register=false"/> <X-PRE-PROCESS cmd="set" data="default_provider_contact=5000"/> <X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/> <X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/> <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/> <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/> <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/> <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/> <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/> <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/> <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/> On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <philippe@ppmt.org>wrote:
I am no expert so I could be wrong but:
First your outbound is no registered (NOREG) so that is most likely going to prevent outgoing call
Also you refer to default_gateway in your dialplan....what value is it set to? Check vars.xmls
I normally use directly the name of my gateway instead of using variable (might not be the best way though )
But you have the On 13-05-19 11:39 PM, Mike Hendrie wrote:
Thank you for your response. Per your request here is the result of the sofia status command:
freeswitch@internal> sofia status Name Type Data State
================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)
================================================================================================= 3 profiles 2 aliases
========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ==========================================
/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<include>
<extension name="local.example.com"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension>
<extension name="domestic.example.com"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
<extension name="international.example.com"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
</include>
========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include>
<include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include>
========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml
<include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
==========================================
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I think I am missing the basic understanding of how the DID connects to the gateway then to the extension. Which file does what. thanks!! On Tue, May 21, 2013 at 3:20 PM, Mike Hendrie <mike@hendrienet.com> wrote:
I am looking in the vars.xml file and am not seeing any reference to a gateway:
====== vars.xml
<X-PRE-PROCESS cmd="set" data="default_password=H1dD3n!"/>
<X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/> <X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/> <X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/> <X-PRE-PROCESS cmd="set" data="use_profile=internal"/>
<X-PRE-PROCESS cmd="set" data="zrtp_secure_media=true"/>
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/>
<X-PRE-PROCESS cmd="set" data="xmpp_client_profile=xmppc"/> <X-PRE-PROCESS cmd="set" data="xmpp_server_profile=xmpps"/>
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>
<X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org"/>
<X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org"/>
<X-PRE-PROCESS cmd="set" data="unroll_loops=true"/>
<X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/> <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
<X-PRE-PROCESS cmd="set" data="call_debug=false"/> <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/> <X-PRE-PROCESS cmd="set" data="default_areacode=918"/> <X-PRE-PROCESS cmd="set" data="default_country=US"/>
<X-PRE-PROCESS cmd="set" data="presence_privacy=false"/>
<X-PRE-PROCESS cmd="set" data="be-ring=%(1000,3000,425)"/> <X-PRE-PROCESS cmd="set" data="ca-ring=%(2000,4000,440,480)"/> <X-PRE-PROCESS cmd="set" data="cn-ring=%(1000,4000,450)"/> <X-PRE-PROCESS cmd="set" data="cy-ring=%(1500,3000,425)"/> <X-PRE-PROCESS cmd="set" data="cz-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="de-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="dk-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="dz-ring=%(1500,3500,425)"/> <X-PRE-PROCESS cmd="set" data="eg-ring=%(2000,1000,475,375)"/> <X-PRE-PROCESS cmd="set" data="es-ring=%(1500,3000,425)"/> <X-PRE-PROCESS cmd="set" data="fi-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="fr-ring=%(1500,3500,440)"/> <X-PRE-PROCESS cmd="set" data="hk-ring=%(400,200,440,480);%(400,3000,440,480)"/> <X-PRE-PROCESS cmd="set" data="hu-ring=%(1250,3750,425)"/> <X-PRE-PROCESS cmd="set" data="il-ring=%(1000,3000,400)"/> <X-PRE-PROCESS cmd="set" data="in-ring=%(400,200,425,375);%(400,2000,425,375)"/> <X-PRE-PROCESS cmd="set" data="jp-ring=%(1000,2000,420,380)"/> <X-PRE-PROCESS cmd="set" data="ko-ring=%(1000,2000,440,480)"/> <X-PRE-PROCESS cmd="set" data="pk-ring=%(1000,2000,400)"/> <X-PRE-PROCESS cmd="set" data="pl-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="ro-ring=%(1850,4150,475,425)"/> <X-PRE-PROCESS cmd="set" data="rs-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="ru-ring=%(800,3200,425)"/> <X-PRE-PROCESS cmd="set" data="sa-ring=%(1200,4600,425)"/> <X-PRE-PROCESS cmd="set" data="tr-ring=%(2000,4000,450)"/> <X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2000,400,450)"/> <X-PRE-PROCESS cmd="set" data="us-ring=%(2000,4000,440,480)"/> <X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/> <X-PRE-PROCESS cmd="set" data="beep=%(1000,0,640)"/> <X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/>
<X-PRE-PROCESS cmd="set" data="default_provider=example.com"/> <X-PRE-PROCESS cmd="set" data="default_provider_username=joeuser"/> <X-PRE-PROCESS cmd="set" data="default_provider_password=password"/> <X-PRE-PROCESS cmd="set" data="default_provider_from_domain=example.com "/>
<X-PRE-PROCESS cmd="set" data="default_provider_register=false"/> <X-PRE-PROCESS cmd="set" data="default_provider_contact=5000"/>
<X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/>
<X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/> <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/> <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/> <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>
<X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/> <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/> <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/> <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>
On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <philippe@ppmt.org>wrote:
I am no expert so I could be wrong but:
First your outbound is no registered (NOREG) so that is most likely going to prevent outgoing call
Also you refer to default_gateway in your dialplan....what value is it set to? Check vars.xmls
I normally use directly the name of my gateway instead of using variable (might not be the best way though )
But you have the On 13-05-19 11:39 PM, Mike Hendrie wrote:
Thank you for your response. Per your request here is the result of the sofia status command:
freeswitch@internal> sofia status Name Type Data State
================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)
================================================================================================= 3 profiles 2 aliases
========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ==========================================
/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<include>
<extension name="local.example.com"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension>
<extension name="domestic.example.com"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
<extension name="international.example.com"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
</include>
========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include>
<include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include>
========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml
<include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
==========================================
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Mike, No worries - this can be frustrating at first. You'll get the hang of it shortly. 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: #1 - move the file from the conf/dialplan/default/ directory into conf/dialplan/public/ #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: <extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(8005551212)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension> Hope this helps. -MC On Tue, May 21, 2013 at 1:23 PM, Mike Hendrie <mike@hendrienet.com> wrote:
I think I am missing the basic understanding of how the DID connects to the gateway then to the extension. Which file does what.
thanks!!
On Tue, May 21, 2013 at 3:20 PM, Mike Hendrie <mike@hendrienet.com> wrote:
I am looking in the vars.xml file and am not seeing any reference to a gateway:
====== vars.xml
<X-PRE-PROCESS cmd="set" data="default_password=H1dD3n!"/>
<X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/> <X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/> <X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/> <X-PRE-PROCESS cmd="set" data="use_profile=internal"/>
<X-PRE-PROCESS cmd="set" data="zrtp_secure_media=true"/>
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/>
<X-PRE-PROCESS cmd="set" data="xmpp_client_profile=xmppc"/> <X-PRE-PROCESS cmd="set" data="xmpp_server_profile=xmpps"/>
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>
<X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org "/>
<X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org "/>
<X-PRE-PROCESS cmd="set" data="unroll_loops=true"/>
<X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/> <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
<X-PRE-PROCESS cmd="set" data="call_debug=false"/> <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/> <X-PRE-PROCESS cmd="set" data="default_areacode=918"/> <X-PRE-PROCESS cmd="set" data="default_country=US"/>
<X-PRE-PROCESS cmd="set" data="presence_privacy=false"/>
<X-PRE-PROCESS cmd="set" data="be-ring=%(1000,3000,425)"/> <X-PRE-PROCESS cmd="set" data="ca-ring=%(2000,4000,440,480)"/> <X-PRE-PROCESS cmd="set" data="cn-ring=%(1000,4000,450)"/> <X-PRE-PROCESS cmd="set" data="cy-ring=%(1500,3000,425)"/> <X-PRE-PROCESS cmd="set" data="cz-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="de-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="dk-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="dz-ring=%(1500,3500,425)"/> <X-PRE-PROCESS cmd="set" data="eg-ring=%(2000,1000,475,375)"/> <X-PRE-PROCESS cmd="set" data="es-ring=%(1500,3000,425)"/> <X-PRE-PROCESS cmd="set" data="fi-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="fr-ring=%(1500,3500,440)"/> <X-PRE-PROCESS cmd="set" data="hk-ring=%(400,200,440,480);%(400,3000,440,480)"/> <X-PRE-PROCESS cmd="set" data="hu-ring=%(1250,3750,425)"/> <X-PRE-PROCESS cmd="set" data="il-ring=%(1000,3000,400)"/> <X-PRE-PROCESS cmd="set" data="in-ring=%(400,200,425,375);%(400,2000,425,375)"/> <X-PRE-PROCESS cmd="set" data="jp-ring=%(1000,2000,420,380)"/> <X-PRE-PROCESS cmd="set" data="ko-ring=%(1000,2000,440,480)"/> <X-PRE-PROCESS cmd="set" data="pk-ring=%(1000,2000,400)"/> <X-PRE-PROCESS cmd="set" data="pl-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="ro-ring=%(1850,4150,475,425)"/> <X-PRE-PROCESS cmd="set" data="rs-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="ru-ring=%(800,3200,425)"/> <X-PRE-PROCESS cmd="set" data="sa-ring=%(1200,4600,425)"/> <X-PRE-PROCESS cmd="set" data="tr-ring=%(2000,4000,450)"/> <X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2000,400,450)"/> <X-PRE-PROCESS cmd="set" data="us-ring=%(2000,4000,440,480)"/> <X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/> <X-PRE-PROCESS cmd="set" data="beep=%(1000,0,640)"/> <X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/>
<X-PRE-PROCESS cmd="set" data="default_provider=example.com"/> <X-PRE-PROCESS cmd="set" data="default_provider_username=joeuser"/> <X-PRE-PROCESS cmd="set" data="default_provider_password=password"/> <X-PRE-PROCESS cmd="set" data="default_provider_from_domain=example.com "/>
<X-PRE-PROCESS cmd="set" data="default_provider_register=false"/> <X-PRE-PROCESS cmd="set" data="default_provider_contact=5000"/>
<X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/>
<X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/> <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/> <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/> <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>
<X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/> <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/> <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/> <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>
On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <philippe@ppmt.org>wrote:
I am no expert so I could be wrong but:
First your outbound is no registered (NOREG) so that is most likely going to prevent outgoing call
Also you refer to default_gateway in your dialplan....what value is it set to? Check vars.xmls
I normally use directly the name of my gateway instead of using variable (might not be the best way though )
But you have the On 13-05-19 11:39 PM, Mike Hendrie wrote:
Thank you for your response. Per your request here is the result of the sofia status command:
freeswitch@internal> sofia status Name Type Data State
================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)
================================================================================================= 3 profiles 2 aliases
========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ==========================================
/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<include>
<extension name="local.example.com"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension>
<extension name="domestic.example.com"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
<extension name="international.example.com"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
</include>
========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include>
<include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include>
========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml
<include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
==========================================
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Thank you for your assistance. I made the suggested modification below, however, when calling the number it goes directly to voicemail. /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml <include> <extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(262xxxxxxx)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension> </include> On Tue, May 21, 2013 at 4:37 PM, Michael Collins <msc@freeswitch.org> wrote:
Hi Mike,
No worries - this can be frustrating at first. You'll get the hang of it shortly.
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:
#1 - move the file from the conf/dialplan/default/ directory into conf/dialplan/public/ #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:
<extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(8005551212)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension>
Hope this helps. -MC
On Tue, May 21, 2013 at 1:23 PM, Mike Hendrie <mike@hendrienet.com> wrote:
I think I am missing the basic understanding of how the DID connects to the gateway then to the extension. Which file does what.
thanks!!
On Tue, May 21, 2013 at 3:20 PM, Mike Hendrie <mike@hendrienet.com>wrote:
I am looking in the vars.xml file and am not seeing any reference to a gateway:
====== vars.xml
<X-PRE-PROCESS cmd="set" data="default_password=H1dD3n!"/>
<X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/> <X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/> <X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/> <X-PRE-PROCESS cmd="set" data="use_profile=internal"/>
<X-PRE-PROCESS cmd="set" data="zrtp_secure_media=true"/>
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/>
<X-PRE-PROCESS cmd="set" data="xmpp_client_profile=xmppc"/> <X-PRE-PROCESS cmd="set" data="xmpp_server_profile=xmpps"/>
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>
<X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org "/>
<X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org "/>
<X-PRE-PROCESS cmd="set" data="unroll_loops=true"/>
<X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/> <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
<X-PRE-PROCESS cmd="set" data="call_debug=false"/> <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/> <X-PRE-PROCESS cmd="set" data="default_areacode=918"/> <X-PRE-PROCESS cmd="set" data="default_country=US"/>
<X-PRE-PROCESS cmd="set" data="presence_privacy=false"/>
<X-PRE-PROCESS cmd="set" data="be-ring=%(1000,3000,425)"/> <X-PRE-PROCESS cmd="set" data="ca-ring=%(2000,4000,440,480)"/> <X-PRE-PROCESS cmd="set" data="cn-ring=%(1000,4000,450)"/> <X-PRE-PROCESS cmd="set" data="cy-ring=%(1500,3000,425)"/> <X-PRE-PROCESS cmd="set" data="cz-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="de-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="dk-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="dz-ring=%(1500,3500,425)"/> <X-PRE-PROCESS cmd="set" data="eg-ring=%(2000,1000,475,375)"/> <X-PRE-PROCESS cmd="set" data="es-ring=%(1500,3000,425)"/> <X-PRE-PROCESS cmd="set" data="fi-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="fr-ring=%(1500,3500,440)"/> <X-PRE-PROCESS cmd="set" data="hk-ring=%(400,200,440,480);%(400,3000,440,480)"/> <X-PRE-PROCESS cmd="set" data="hu-ring=%(1250,3750,425)"/> <X-PRE-PROCESS cmd="set" data="il-ring=%(1000,3000,400)"/> <X-PRE-PROCESS cmd="set" data="in-ring=%(400,200,425,375);%(400,2000,425,375)"/> <X-PRE-PROCESS cmd="set" data="jp-ring=%(1000,2000,420,380)"/> <X-PRE-PROCESS cmd="set" data="ko-ring=%(1000,2000,440,480)"/> <X-PRE-PROCESS cmd="set" data="pk-ring=%(1000,2000,400)"/> <X-PRE-PROCESS cmd="set" data="pl-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="ro-ring=%(1850,4150,475,425)"/> <X-PRE-PROCESS cmd="set" data="rs-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="ru-ring=%(800,3200,425)"/> <X-PRE-PROCESS cmd="set" data="sa-ring=%(1200,4600,425)"/> <X-PRE-PROCESS cmd="set" data="tr-ring=%(2000,4000,450)"/> <X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2000,400,450)"/> <X-PRE-PROCESS cmd="set" data="us-ring=%(2000,4000,440,480)"/> <X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/> <X-PRE-PROCESS cmd="set" data="beep=%(1000,0,640)"/> <X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/>
<X-PRE-PROCESS cmd="set" data="default_provider=example.com"/> <X-PRE-PROCESS cmd="set" data="default_provider_username=joeuser"/> <X-PRE-PROCESS cmd="set" data="default_provider_password=password"/> <X-PRE-PROCESS cmd="set" data="default_provider_from_domain= example.com"/>
<X-PRE-PROCESS cmd="set" data="default_provider_register=false"/> <X-PRE-PROCESS cmd="set" data="default_provider_contact=5000"/>
<X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/>
<X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/> <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/> <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/> <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>
<X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/> <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/> <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/> <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>
On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <philippe@ppmt.org>wrote:
I am no expert so I could be wrong but:
First your outbound is no registered (NOREG) so that is most likely going to prevent outgoing call
Also you refer to default_gateway in your dialplan....what value is it set to? Check vars.xmls
I normally use directly the name of my gateway instead of using variable (might not be the best way though )
But you have the On 13-05-19 11:39 PM, Mike Hendrie wrote:
Thank you for your response. Per your request here is the result of the sofia status command:
freeswitch@internal> sofia status Name Type Data State
================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)
================================================================================================= 3 profiles 2 aliases
========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ==========================================
/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<include>
<extension name="local.example.com"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension>
<extension name="domestic.example.com"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
<extension name="international.example.com"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
</include>
========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include>
<include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include>
========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml
<include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
==========================================
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Correction: I had a second dialplan in the public folder that was causing confusion. Below is the dialplan I am using. If I change the extension in the dialplan from 1000 to 1001 I get the appropriate voice mail extension, however, the phones never ring. I have the fs configured as a multi-tenant solution. Could the dialplan be using the default extensions (1000 and 1001) under /conf/directory/default and not reference the /conf/directory/GothamCity.xom domain? That would explain why I get to the voicemail for the correct extension when the phone never rings. Thanks ===== /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml <include> <extension name="GothamCity.xom 1001"> <condition field="destination_number" expression="^1?(2624481175)$"> <action application="set" data="domain_name=GothamCity.xom"/> <action application="transfer" data="1001 XML default"/> </condition> </extension> </include> ===== /conf/directory/GothamCity.xom.xml <domain name="GothamCity.xom"> <params> <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@ ${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/> </params> <variables> <variable name="record_stereo" value="true"/> <variable name="user_context" value="default"/> <variable name="default_gateway" value="$${default_provider}"/> <variable name="default_areacode" value="$${default_areacode}"/> <variable name="transfer_fallback_extension" value="operator"/> </variables> <groups> <group name="GothamCity.xom"> <users> <X-PRE-PROCESS cmd="include" data="GothamCity.xom/*.xml"/> </users> </group> <group name="sales"> <users> <!-- type="pointer" is a pointer so you can have the same user in multiple groups. It basically means to keep searching for the user in the directory. --> <user id="1000" type="pointer"/> <user id="1001" type="pointer"/> <user id="1002" type="pointer"/> <user id="1003" type="pointer"/> <user id="1004" type="pointer"/> </users> </group> ===== On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com> wrote:
Thank you for your assistance. I made the suggested modification below, however, when calling the number it goes directly to voicemail.
/usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(262xxxxxxx)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension>
</include>
On Tue, May 21, 2013 at 4:37 PM, Michael Collins <msc@freeswitch.org>wrote:
Hi Mike,
No worries - this can be frustrating at first. You'll get the hang of it shortly.
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:
#1 - move the file from the conf/dialplan/default/ directory into conf/dialplan/public/ #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:
<extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(8005551212)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension>
Hope this helps. -MC
On Tue, May 21, 2013 at 1:23 PM, Mike Hendrie <mike@hendrienet.com>wrote:
I think I am missing the basic understanding of how the DID connects to the gateway then to the extension. Which file does what.
thanks!!
On Tue, May 21, 2013 at 3:20 PM, Mike Hendrie <mike@hendrienet.com>wrote:
I am looking in the vars.xml file and am not seeing any reference to a gateway:
====== vars.xml
<X-PRE-PROCESS cmd="set" data="default_password=H1dD3n!"/>
<X-PRE-PROCESS cmd="set" data="domain=$${local_ip_v4}"/> <X-PRE-PROCESS cmd="set" data="domain_name=$${domain}"/> <X-PRE-PROCESS cmd="set" data="hold_music=local_stream://moh"/> <X-PRE-PROCESS cmd="set" data="use_profile=internal"/>
<X-PRE-PROCESS cmd="set" data="zrtp_secure_media=true"/>
<X-PRE-PROCESS cmd="set" data="global_codec_prefs=G722,PCMU,PCMA,GSM"/> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=PCMU,PCMA,GSM"/>
<X-PRE-PROCESS cmd="set" data="xmpp_client_profile=xmppc"/> <X-PRE-PROCESS cmd="set" data="xmpp_server_profile=xmpps"/>
<X-PRE-PROCESS cmd="set" data="bind_server_ip=auto"/>
<X-PRE-PROCESS cmd="set" data="external_rtp_ip=stun:stun.freeswitch.org "/>
<X-PRE-PROCESS cmd="set" data="external_sip_ip=stun:stun.freeswitch.org "/>
<X-PRE-PROCESS cmd="set" data="unroll_loops=true"/>
<X-PRE-PROCESS cmd="set" data="outbound_caller_name=FreeSWITCH"/> <X-PRE-PROCESS cmd="set" data="outbound_caller_id=0000000000"/>
<X-PRE-PROCESS cmd="set" data="call_debug=false"/> <X-PRE-PROCESS cmd="set" data="console_loglevel=info"/> <X-PRE-PROCESS cmd="set" data="default_areacode=918"/> <X-PRE-PROCESS cmd="set" data="default_country=US"/>
<X-PRE-PROCESS cmd="set" data="presence_privacy=false"/>
<X-PRE-PROCESS cmd="set" data="be-ring=%(1000,3000,425)"/> <X-PRE-PROCESS cmd="set" data="ca-ring=%(2000,4000,440,480)"/> <X-PRE-PROCESS cmd="set" data="cn-ring=%(1000,4000,450)"/> <X-PRE-PROCESS cmd="set" data="cy-ring=%(1500,3000,425)"/> <X-PRE-PROCESS cmd="set" data="cz-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="de-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="dk-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="dz-ring=%(1500,3500,425)"/> <X-PRE-PROCESS cmd="set" data="eg-ring=%(2000,1000,475,375)"/> <X-PRE-PROCESS cmd="set" data="es-ring=%(1500,3000,425)"/> <X-PRE-PROCESS cmd="set" data="fi-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="fr-ring=%(1500,3500,440)"/> <X-PRE-PROCESS cmd="set" data="hk-ring=%(400,200,440,480);%(400,3000,440,480)"/> <X-PRE-PROCESS cmd="set" data="hu-ring=%(1250,3750,425)"/> <X-PRE-PROCESS cmd="set" data="il-ring=%(1000,3000,400)"/> <X-PRE-PROCESS cmd="set" data="in-ring=%(400,200,425,375);%(400,2000,425,375)"/> <X-PRE-PROCESS cmd="set" data="jp-ring=%(1000,2000,420,380)"/> <X-PRE-PROCESS cmd="set" data="ko-ring=%(1000,2000,440,480)"/> <X-PRE-PROCESS cmd="set" data="pk-ring=%(1000,2000,400)"/> <X-PRE-PROCESS cmd="set" data="pl-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="ro-ring=%(1850,4150,475,425)"/> <X-PRE-PROCESS cmd="set" data="rs-ring=%(1000,4000,425)"/> <X-PRE-PROCESS cmd="set" data="ru-ring=%(800,3200,425)"/> <X-PRE-PROCESS cmd="set" data="sa-ring=%(1200,4600,425)"/> <X-PRE-PROCESS cmd="set" data="tr-ring=%(2000,4000,450)"/> <X-PRE-PROCESS cmd="set" data="uk-ring=%(400,200,400,450);%(400,2000,400,450)"/> <X-PRE-PROCESS cmd="set" data="us-ring=%(2000,4000,440,480)"/> <X-PRE-PROCESS cmd="set" data="bong-ring=v=-7;%(100,0,941.0,1477.0);v=-7;>=2;+=.1;%(1400,0,350,440)"/> <X-PRE-PROCESS cmd="set" data="beep=%(1000,0,640)"/> <X-PRE-PROCESS cmd="set" data="sit=%(274,0,913.8);%(274,0,1370.6);%(380,0,1776.7)"/>
<X-PRE-PROCESS cmd="set" data="default_provider=example.com"/> <X-PRE-PROCESS cmd="set" data="default_provider_username=joeuser"/> <X-PRE-PROCESS cmd="set" data="default_provider_password=password"/> <X-PRE-PROCESS cmd="set" data="default_provider_from_domain= example.com"/>
<X-PRE-PROCESS cmd="set" data="default_provider_register=false"/> <X-PRE-PROCESS cmd="set" data="default_provider_contact=5000"/>
<X-PRE-PROCESS cmd="set" data="sip_tls_version=tlsv1"/>
<X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/> <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/> <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/> <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>
<X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/> <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/> <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/> <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>
On Mon, May 20, 2013 at 4:49 PM, Philippe Le Toquin <philippe@ppmt.org>wrote:
I am no expert so I could be wrong but:
First your outbound is no registered (NOREG) so that is most likely going to prevent outgoing call
Also you refer to default_gateway in your dialplan....what value is it set to? Check vars.xmls
I normally use directly the name of my gateway instead of using variable (might not be the best way though )
But you have the On 13-05-19 11:39 PM, Mike Hendrie wrote:
Thank you for your response. Per your request here is the result of the sofia status command:
freeswitch@internal> sofia status Name Type Data State
================================================================================================= 10.1.1.5 alias internal ALIASED internal profile sip:mod_sofia@10.1.1.5:5060 RUNNING (0) external profile sip:mod_sofia@10.1.1.5:5080 RUNNING (0) external::example.com gateway sip:joeuser@example.com NOREG external::BatCave-inbound gateway sip:J0k3R!@BacCave.hole.Xom REGED external::BatCat-outbound gateway sip:J0k3R!@BacCave.hole.Xom NOREG GothamCity.xom alias internal ALIASED internal-ipv6 profile sip:mod_sofia@[::1]:5060 RUNNING (0)
================================================================================================= 3 profiles 2 aliases
========================================== /usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> <include> <context name="GothamCity.xom"> <extension name="vitel-inbound"> <condition field="destination_number" expression=""> <action application="transfer" data="1000 XML default"/> </condition> </extension> ==========================================
/usr/local/freeswitch/conf/dialplan/default/GothamCity.xom.xml
<include>
<extension name="local.example.com"> <condition field="${toll_allow}" expression="local"/> <condition field="destination_number" expression="^(\d{7})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/1${default_areacode}$1"/> </condition> </extension>
<extension name="domestic.example.com"> <condition field="${toll_allow}" expression="domestic"/> <condition field="destination_number" expression="^(\d{11})$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
<extension name="international.example.com"> <condition field="${toll_allow}" expression="international"/> <condition field="destination_number" expression="^(011\d+)$"> <action application="set" data="effective_caller_id_number=${outbound_caller_id_number}"/> <action application="set" data="effective_caller_id_name=${outbound_caller_id_name}"/> <action application="bridge" data="sofia/gateway/${default_gateway}/$1"/> </condition> </extension>
</include>
========================================== /usr/local/freeswitch/conf/sip_profiles/external/vitelity.xml
<include> <gateway name="BatCave-outbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-outbound"/> <!--/// account password *required* ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="outbound1.BatCave.net"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="false" /> </gateway> </include>
<include> <gateway name="BatCave-inbound"> <!--/// account username *required* ///--> <param name="username" value="Joker"/> <!--/// auth realm: *optional* same as gateway name, if blank ///--> <param name="realm" value="BatCave-inbound"/> <!--/// account password *required* (do not include allow=all) ///--> <param name="password" value="2F@ce"/> <!--/// extension for inbound calls: *optional* same as username, if blank ///--> <param name="extension" value="default"/> <!--/// proxy host: *optional* same as realm, if blank ///--> <param name="proxy" value="Yup.Not.REAL.Port"/> <!--/// expire in seconds: *optional* 3600, if blank ///--> <param name="expire-seconds" value="600"/> <param name="context" value="inbound"/> <!--/// register: *optional* true, if blank ///--> <param name="register" value="true" /> </gateway> </include>
========================================== /usr/local/freeswitch/conf/directory/GothamCity.xom/1000.xml
<include> <user id="1000"> <params> <param name="password" value="$${default_password}"/> <param name="vm-password" value="1000"/> </params> <variables> <variable name="toll_allow" value="domestic,international,local"/> <variable name="accountcode" value="1000"/> <!-- <variable name="user_context" value="default"/>--> <variable name="effective_caller_id_name" value="Extension 1000"/> <variable name="effective_caller_id_number" value="1000"/> <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/> <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/> <variable name="callgroup" value="techsupport"/> </variables> </user> </include>
==========================================
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Post a FreeSWITCH debug log of the incoming call. Use pastebin.freeswitch.org and select "FreeSWITCH Log" as the syntax highlighting. Paste the URL in this email thread and we'll take a look. -MC On Tue, May 21, 2013 at 9:35 PM, Mike Hendrie <mike@hendrienet.com> wrote:
Correction: I had a second dialplan in the public folder that was causing confusion. Below is the dialplan I am using. If I change the extension in the dialplan from 1000 to 1001 I get the appropriate voice mail extension, however, the phones never ring.
I have the fs configured as a multi-tenant solution.
Could the dialplan be using the default extensions (1000 and 1001) under /conf/directory/default and not reference the /conf/directory/GothamCity.xom domain? That would explain why I get to the voicemail for the correct extension when the phone never rings.
Thanks
===== /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="GothamCity.xom 1001"> <condition field="destination_number" expression="^1?(2624481175)$"> <action application="set" data="domain_name=GothamCity.xom"/> <action application="transfer" data="1001 XML default"/> </condition> </extension>
</include>
===== /conf/directory/GothamCity.xom.xml
<domain name="GothamCity.xom"> <params> <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@ ${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/> </params>
<variables> <variable name="record_stereo" value="true"/> <variable name="user_context" value="default"/> <variable name="default_gateway" value="$${default_provider}"/> <variable name="default_areacode" value="$${default_areacode}"/> <variable name="transfer_fallback_extension" value="operator"/> </variables>
<groups> <group name="GothamCity.xom"> <users> <X-PRE-PROCESS cmd="include" data="GothamCity.xom/*.xml"/> </users> </group>
<group name="sales"> <users> <!-- type="pointer" is a pointer so you can have the same user in multiple groups. It basically means to keep searching for the user in the directory. --> <user id="1000" type="pointer"/> <user id="1001" type="pointer"/> <user id="1002" type="pointer"/> <user id="1003" type="pointer"/> <user id="1004" type="pointer"/> </users> </group> =====
On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com> wrote:
Thank you for your assistance. I made the suggested modification below, however, when calling the number it goes directly to voicemail.
/usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(262xxxxxxx)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension>
</include>
<snip> -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Thank you. Here is the log URL. http://pastebin.freeswitch.org/20960 On Wed, May 22, 2013 at 1:39 AM, Michael Collins <msc@freeswitch.org> wrote:
Post a FreeSWITCH debug log of the incoming call. Use pastebin.freeswitch.org and select "FreeSWITCH Log" as the syntax highlighting. Paste the URL in this email thread and we'll take a look. -MC
On Tue, May 21, 2013 at 9:35 PM, Mike Hendrie <mike@hendrienet.com> wrote:
Correction: I had a second dialplan in the public folder that was causing confusion. Below is the dialplan I am using. If I change the extension in the dialplan from 1000 to 1001 I get the appropriate voice mail extension, however, the phones never ring.
I have the fs configured as a multi-tenant solution.
Could the dialplan be using the default extensions (1000 and 1001) under /conf/directory/default and not reference the /conf/directory/GothamCity.xom domain? That would explain why I get to the voicemail for the correct extension when the phone never rings.
Thanks
===== /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="GothamCity.xom 1001"> <condition field="destination_number" expression="^1?(2624481175)$"> <action application="set" data="domain_name=GothamCity.xom"/> <action application="transfer" data="1001 XML default"/> </condition> </extension>
</include>
===== /conf/directory/GothamCity.xom.xml
<domain name="GothamCity.xom"> <params> <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@ ${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/> </params>
<variables> <variable name="record_stereo" value="true"/> <variable name="user_context" value="default"/> <variable name="default_gateway" value="$${default_provider}"/> <variable name="default_areacode" value="$${default_areacode}"/> <variable name="transfer_fallback_extension" value="operator"/> </variables>
<groups> <group name="GothamCity.xom"> <users> <X-PRE-PROCESS cmd="include" data="GothamCity.xom/*.xml"/> </users> </group>
<group name="sales"> <users> <!-- type="pointer" is a pointer so you can have the same user in multiple groups. It basically means to keep searching for the user in the directory. --> <user id="1000" type="pointer"/> <user id="1001" type="pointer"/> <user id="1002" type="pointer"/> <user id="1003" type="pointer"/> <user id="1004" type="pointer"/> </users> </group> =====
On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com>wrote:
Thank you for your assistance. I made the suggested modification below, however, when calling the number it goes directly to voicemail.
/usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(262xxxxxxx)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension>
</include>
<snip> -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
This is why it goes to voicemail I guess 1. 2013-05-21 22:28:54.107400 [DEBUG] switch_channel.c:1099sofia/external/ 5555555555@66.66.66.66 EXPORTING[export_vars] [dialed_extension]=[1001]to event 2. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:2044Parsing global variables 3. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [sip_invite_domain]=[GothamCity.xom] 4. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [presence_id]=[1001@GothamCity.xom] 5. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED] 6. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 7. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639Cannot create outgoing channel of type [user] cause: [USER_NOT_REGISTERED] 8. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 9. 2013-05-21 22:28:54.107400 [INFO] mod_dptools.c:3106 Originate Failed. Cause: USER_NOT_REGISTERED 10. EXECUTE sofia/external/5555555555@66.66.66.66 answer() 11. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663 Audio Codec Compare [PCMU:0:8000:20:64000]/[G722:9:8000:20:64000] 12. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 13. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:1772 Set Codec sofia/external/5555555555@66.66.66.66 P Do you have a dialtone on that 1001 extension? On 22 May 2013 07:55, Mike Hendrie <mike@hendrienet.com> wrote:
Thank you.
Here is the log URL. http://pastebin.freeswitch.org/20960
On Wed, May 22, 2013 at 1:39 AM, Michael Collins <msc@freeswitch.org>wrote:
Post a FreeSWITCH debug log of the incoming call. Use pastebin.freeswitch.org and select "FreeSWITCH Log" as the syntax highlighting. Paste the URL in this email thread and we'll take a look. -MC
On Tue, May 21, 2013 at 9:35 PM, Mike Hendrie <mike@hendrienet.com>wrote:
Correction: I had a second dialplan in the public folder that was causing confusion. Below is the dialplan I am using. If I change the extension in the dialplan from 1000 to 1001 I get the appropriate voice mail extension, however, the phones never ring.
I have the fs configured as a multi-tenant solution.
Could the dialplan be using the default extensions (1000 and 1001) under /conf/directory/default and not reference the /conf/directory/GothamCity.xom domain? That would explain why I get to the voicemail for the correct extension when the phone never rings.
Thanks
===== /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="GothamCity.xom 1001"> <condition field="destination_number" expression="^1?(2624481175)$"> <action application="set" data="domain_name=GothamCity.xom"/> <action application="transfer" data="1001 XML default"/> </condition> </extension>
</include>
===== /conf/directory/GothamCity.xom.xml
<domain name="GothamCity.xom"> <params> <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@ ${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/> </params>
<variables> <variable name="record_stereo" value="true"/> <variable name="user_context" value="default"/> <variable name="default_gateway" value="$${default_provider}"/> <variable name="default_areacode" value="$${default_areacode}"/> <variable name="transfer_fallback_extension" value="operator"/> </variables>
<groups> <group name="GothamCity.xom"> <users> <X-PRE-PROCESS cmd="include" data="GothamCity.xom/*.xml"/> </users> </group>
<group name="sales"> <users> <!-- type="pointer" is a pointer so you can have the same user in multiple groups. It basically means to keep searching for the user in the directory. --> <user id="1000" type="pointer"/> <user id="1001" type="pointer"/> <user id="1002" type="pointer"/> <user id="1003" type="pointer"/> <user id="1004" type="pointer"/> </users> </group> =====
On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com>wrote:
Thank you for your assistance. I made the suggested modification below, however, when calling the number it goes directly to voicemail.
/usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(262xxxxxxx)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension>
</include>
<snip> -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I do. I can also ring extension 1000. On May 22, 2013 7:52 AM, "Philippe Le Toquin" <philippe@ppmt.org> wrote:
This is why it goes to voicemail I guess
1. 2013-05-21 22:28:54.107400 [DEBUG] switch_channel.c:1099sofia/external/ 5555555555@66.66.66.66 EXPORTING[export_vars] [dialed_extension]=[1001]to event 2. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:2044Parsing global variables 3. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [sip_invite_domain]=[GothamCity.xom] 4. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [presence_id]=[1001@GothamCity.xom] 5. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED] 6. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 7. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639Cannot create outgoing channel of type [user] cause: [USER_NOT_REGISTERED] 8. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 9. 2013-05-21 22:28:54.107400 [INFO] mod_dptools.c:3106 Originate Failed. Cause: USER_NOT_REGISTERED 10. EXECUTE sofia/external/5555555555@66.66.66.66 answer() 11. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663 Audio Codec Compare [PCMU:0:8000:20:64000]/[G722:9:8000:20:64000] 12. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 13. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:1772 Set Codec sofia/external/5555555555@66.66.66.66 P
Do you have a dialtone on that 1001 extension?
On 22 May 2013 07:55, Mike Hendrie <mike@hendrienet.com> wrote:
Thank you.
Here is the log URL. http://pastebin.freeswitch.org/20960
On Wed, May 22, 2013 at 1:39 AM, Michael Collins <msc@freeswitch.org>wrote:
Post a FreeSWITCH debug log of the incoming call. Use pastebin.freeswitch.org and select "FreeSWITCH Log" as the syntax highlighting. Paste the URL in this email thread and we'll take a look. -MC
On Tue, May 21, 2013 at 9:35 PM, Mike Hendrie <mike@hendrienet.com>wrote:
Correction: I had a second dialplan in the public folder that was causing confusion. Below is the dialplan I am using. If I change the extension in the dialplan from 1000 to 1001 I get the appropriate voice mail extension, however, the phones never ring.
I have the fs configured as a multi-tenant solution.
Could the dialplan be using the default extensions (1000 and 1001) under /conf/directory/default and not reference the /conf/directory/GothamCity.xom domain? That would explain why I get to the voicemail for the correct extension when the phone never rings.
Thanks
===== /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="GothamCity.xom 1001"> <condition field="destination_number" expression="^1?(2624481175 )$"> <action application="set" data="domain_name=GothamCity.xom"/> <action application="transfer" data="1001 XML default"/> </condition> </extension>
</include>
===== /conf/directory/GothamCity.xom.xml
<domain name="GothamCity.xom"> <params> <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@ ${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/> </params>
<variables> <variable name="record_stereo" value="true"/> <variable name="user_context" value="default"/> <variable name="default_gateway" value="$${default_provider}"/> <variable name="default_areacode" value="$${default_areacode}"/> <variable name="transfer_fallback_extension" value="operator"/> </variables>
<groups> <group name="GothamCity.xom"> <users> <X-PRE-PROCESS cmd="include" data="GothamCity.xom/*.xml"/> </users> </group>
<group name="sales"> <users> <!-- type="pointer" is a pointer so you can have the same user in multiple groups. It basically means to keep searching for the user in the directory. --> <user id="1000" type="pointer"/> <user id="1001" type="pointer"/> <user id="1002" type="pointer"/> <user id="1003" type="pointer"/> <user id="1004" type="pointer"/> </users> </group> =====
On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com>wrote:
Thank you for your assistance. I made the suggested modification below, however, when calling the number it goes directly to voicemail.
/usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(262xxxxxxx)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension>
</include>
<snip> -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I will look into the registration of the phones as I see I am missing something. freeswitch@internal> sofia status profile GothamCity.xom reg Registrations: ================================================================================================= Total items returned: 0 ================================================================================================= On Wed, May 22, 2013 at 8:15 AM, Mike Hendrie <mike@hendrienet.com> wrote:
I do. I can also ring extension 1000. On May 22, 2013 7:52 AM, "Philippe Le Toquin" <philippe@ppmt.org> wrote:
This is why it goes to voicemail I guess
1. 2013-05-21 22:28:54.107400 [DEBUG] switch_channel.c:1099sofia/external/ 5555555555@66.66.66.66 EXPORTING[export_vars] [dialed_extension]=[1001 ] to event 2. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:2044Parsing global variables 3. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [sip_invite_domain]=[GothamCity.xom] 4. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [presence_id]=[1001@GothamCity.xom] 5. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED] 6. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 7. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639Cannot create outgoing channel of type [user] cause: [USER_NOT_REGISTERED] 8. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 9. 2013-05-21 22:28:54.107400 [INFO] mod_dptools.c:3106 Originate Failed. Cause: USER_NOT_REGISTERED 10. EXECUTE sofia/external/5555555555@66.66.66.66 answer() 11. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663 Audio Codec Compare [PCMU:0:8000:20:64000]/[G722:9:8000:20:64000] 12. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 13. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:1772 Set Codec sofia/external/5555555555@66.66.66.66 P
Do you have a dialtone on that 1001 extension?
On 22 May 2013 07:55, Mike Hendrie <mike@hendrienet.com> wrote:
Thank you.
Here is the log URL. http://pastebin.freeswitch.org/20960
On Wed, May 22, 2013 at 1:39 AM, Michael Collins <msc@freeswitch.org>wrote:
Post a FreeSWITCH debug log of the incoming call. Use pastebin.freeswitch.org and select "FreeSWITCH Log" as the syntax highlighting. Paste the URL in this email thread and we'll take a look. -MC
On Tue, May 21, 2013 at 9:35 PM, Mike Hendrie <mike@hendrienet.com>wrote:
Correction: I had a second dialplan in the public folder that was causing confusion. Below is the dialplan I am using. If I change the extension in the dialplan from 1000 to 1001 I get the appropriate voice mail extension, however, the phones never ring.
I have the fs configured as a multi-tenant solution.
Could the dialplan be using the default extensions (1000 and 1001) under /conf/directory/default and not reference the /conf/directory/GothamCity.xom domain? That would explain why I get to the voicemail for the correct extension when the phone never rings.
Thanks
===== /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="GothamCity.xom 1001"> <condition field="destination_number" expression="^1?(2624481175 )$"> <action application="set" data="domain_name=GothamCity.xom"/> <action application="transfer" data="1001 XML default"/> </condition> </extension>
</include>
===== /conf/directory/GothamCity.xom.xml
<domain name="GothamCity.xom"> <params> <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@ ${dialed_domain}}${sofia_contact(*/${dialed_user}@ ${dialed_domain})}"/> </params>
<variables> <variable name="record_stereo" value="true"/> <variable name="user_context" value="default"/> <variable name="default_gateway" value="$${default_provider}"/> <variable name="default_areacode" value="$${default_areacode}"/> <variable name="transfer_fallback_extension" value="operator"/> </variables>
<groups> <group name="GothamCity.xom"> <users> <X-PRE-PROCESS cmd="include" data="GothamCity.xom/*.xml"/> </users> </group>
<group name="sales"> <users> <!-- type="pointer" is a pointer so you can have the same user in multiple groups. It basically means to keep searching for the user in the directory. --> <user id="1000" type="pointer"/> <user id="1001" type="pointer"/> <user id="1002" type="pointer"/> <user id="1003" type="pointer"/> <user id="1004" type="pointer"/> </users> </group> =====
On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com>wrote:
Thank you for your assistance. I made the suggested modification below, however, when calling the number it goes directly to voicemail.
/usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(262xxxxxxx)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension>
</include>
<snip> -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Mike, You might be confusing "profiles" with "domains". A profile is a "SIP profile" and represent a SIP user agent where FreeSWITCH's SIP stack ("Sofia") listens and responds. There is no explicit relationship between domains and profiles. Profiles simply define where SIP messages come and go on the system. Domains are a logical construct in the server. You can have multiple domains and thus multiple users with the same ID, i.e. "1001@domain1" and "1001@domain2". Go to your fs_cli and capture the output of these commands: sofia status sofia status profile internal reg Drop those in a pastebin a link back here. -MC On Wed, May 22, 2013 at 7:14 AM, Mike Hendrie <mike@hendrienet.com> wrote:
I will look into the registration of the phones as I see I am missing something.
freeswitch@internal> sofia status profile GothamCity.xom reg
Registrations:
================================================================================================= Total items returned: 0
=================================================================================================
On Wed, May 22, 2013 at 8:15 AM, Mike Hendrie <mike@hendrienet.com> wrote:
I do. I can also ring extension 1000. On May 22, 2013 7:52 AM, "Philippe Le Toquin" <philippe@ppmt.org> wrote:
This is why it goes to voicemail I guess
1. 2013-05-21 22:28:54.107400 [DEBUG] switch_channel.c:1099sofia/external/ 5555555555@66.66.66.66 EXPORTING[export_vars] [dialed_extension]=[ 1001] to event 2. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:2044Parsing global variables 3. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [sip_invite_domain]=[GothamCity.xom] 4. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [presence_id]=[1001@GothamCity.xom] 5. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED] 6. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 7. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639Cannot create outgoing channel of type [user] cause: [USER_NOT_REGISTERED] 8. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 9. 2013-05-21 22:28:54.107400 [INFO] mod_dptools.c:3106 Originate Failed. Cause: USER_NOT_REGISTERED 10. EXECUTE sofia/external/5555555555@66.66.66.66 answer() 11. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663Audio Codec Compare [PCMU:0:8000:20:64000]/[G722:9:8000:20:64000] 12. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 13. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:1772 Set Codec sofia/external/5555555555@66.66.66.66 P
Do you have a dialtone on that 1001 extension?
On 22 May 2013 07:55, Mike Hendrie <mike@hendrienet.com> wrote:
Thank you.
Here is the log URL. http://pastebin.freeswitch.org/20960
On Wed, May 22, 2013 at 1:39 AM, Michael Collins <msc@freeswitch.org>wrote:
Post a FreeSWITCH debug log of the incoming call. Use pastebin.freeswitch.org and select "FreeSWITCH Log" as the syntax highlighting. Paste the URL in this email thread and we'll take a look. -MC
On Tue, May 21, 2013 at 9:35 PM, Mike Hendrie <mike@hendrienet.com>wrote:
Correction: I had a second dialplan in the public folder that was causing confusion. Below is the dialplan I am using. If I change the extension in the dialplan from 1000 to 1001 I get the appropriate voice mail extension, however, the phones never ring.
I have the fs configured as a multi-tenant solution.
Could the dialplan be using the default extensions (1000 and 1001) under /conf/directory/default and not reference the /conf/directory/GothamCity.xom domain? That would explain why I get to the voicemail for the correct extension when the phone never rings.
Thanks
===== /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="GothamCity.xom 1001"> <condition field="destination_number" expression="^1?(2624481175 )$"> <action application="set" data="domain_name=GothamCity.xom"/> <action application="transfer" data="1001 XML default"/> </condition> </extension>
</include>
===== /conf/directory/GothamCity.xom.xml
<domain name="GothamCity.xom"> <params> <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@ ${dialed_domain}}${sofia_contact(*/${dialed_user}@ ${dialed_domain})}"/> </params>
<variables> <variable name="record_stereo" value="true"/> <variable name="user_context" value="default"/> <variable name="default_gateway" value="$${default_provider}"/> <variable name="default_areacode" value="$${default_areacode}"/> <variable name="transfer_fallback_extension" value="operator"/> </variables>
<groups> <group name="GothamCity.xom"> <users> <X-PRE-PROCESS cmd="include" data="GothamCity.xom/*.xml"/> </users> </group>
<group name="sales"> <users> <!-- type="pointer" is a pointer so you can have the same user in multiple groups. It basically means to keep searching for the user in the directory. --> <user id="1000" type="pointer"/> <user id="1001" type="pointer"/> <user id="1002" type="pointer"/> <user id="1003" type="pointer"/> <user id="1004" type="pointer"/> </users> </group> =====
On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com>wrote:
> Thank you for your assistance. I made the suggested modification > below, however, when calling the number it goes directly to voicemail. > > /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml > > <include> > > <extension name="vitel-inbound"> > <condition field="destination_number" > expression="^1?(262xxxxxxx)$"> > <action application="transfer" data="1000 XML default"/> > </condition> > </extension> > > </include> > > <snip> -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
Sorry it took so long. I updated the log file and your requested details. http://pastebin.freeswitch.org/20963 Thank you On Wed, May 22, 2013 at 10:38 AM, Michael Collins <msc@freeswitch.org>wrote:
Mike,
You might be confusing "profiles" with "domains". A profile is a "SIP profile" and represent a SIP user agent where FreeSWITCH's SIP stack ("Sofia") listens and responds. There is no explicit relationship between domains and profiles. Profiles simply define where SIP messages come and go on the system.
Domains are a logical construct in the server. You can have multiple domains and thus multiple users with the same ID, i.e. "1001@domain1" and "1001@domain2".
Go to your fs_cli and capture the output of these commands: sofia status sofia status profile internal reg
Drop those in a pastebin a link back here. -MC
On Wed, May 22, 2013 at 7:14 AM, Mike Hendrie <mike@hendrienet.com> wrote:
I will look into the registration of the phones as I see I am missing something.
freeswitch@internal> sofia status profile GothamCity.xom reg
Registrations:
================================================================================================= Total items returned: 0
=================================================================================================
On Wed, May 22, 2013 at 8:15 AM, Mike Hendrie <mike@hendrienet.com>wrote:
I do. I can also ring extension 1000. On May 22, 2013 7:52 AM, "Philippe Le Toquin" <philippe@ppmt.org> wrote:
This is why it goes to voicemail I guess
1. 2013-05-21 22:28:54.107400 [DEBUG] switch_channel.c:1099sofia/external/ 5555555555@66.66.66.66 EXPORTING[export_vars] [dialed_extension]=[ 1001] to event 2. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:2044Parsing global variables 3. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [sip_invite_domain]=[GothamCity.xom] 4. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [presence_id]=[1001@GothamCity.xom] 5. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED] 6. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 7. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639Cannot create outgoing channel of type [user] cause: [USER_NOT_REGISTERED] 8. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 9. 2013-05-21 22:28:54.107400 [INFO] mod_dptools.c:3106 Originate Failed. Cause: USER_NOT_REGISTERED 10. EXECUTE sofia/external/5555555555@66.66.66.66 answer() 11. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663Audio Codec Compare [PCMU:0:8000:20:64000]/[G722:9:8000:20:64000] 12. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 13. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:1772 Set Codec sofia/external/5555555555@66.66.66.66 P
Do you have a dialtone on that 1001 extension?
On 22 May 2013 07:55, Mike Hendrie <mike@hendrienet.com> wrote:
Thank you.
Here is the log URL. http://pastebin.freeswitch.org/20960
On Wed, May 22, 2013 at 1:39 AM, Michael Collins <msc@freeswitch.org>wrote:
Post a FreeSWITCH debug log of the incoming call. Use pastebin.freeswitch.org and select "FreeSWITCH Log" as the syntax highlighting. Paste the URL in this email thread and we'll take a look. -MC
On Tue, May 21, 2013 at 9:35 PM, Mike Hendrie <mike@hendrienet.com>wrote:
> Correction: > I had a second dialplan in the public folder that was causing > confusion. Below is the dialplan I am using. > If I change the extension in the dialplan from 1000 to 1001 I get > the appropriate voice mail extension, however, the phones never ring. > > I have the fs configured as a multi-tenant solution. > > Could the dialplan be using the default extensions (1000 and 1001) > under /conf/directory/default and not reference the > /conf/directory/GothamCity.xom domain? That would explain why I get to the > voicemail for the correct extension when the phone never rings. > > Thanks > > ===== > /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml > > <include> > > <extension name="GothamCity.xom 1001"> > <condition field="destination_number" expression="^1?(2624481175 > )$"> > <action application="set" data="domain_name=GothamCity.xom"/> > <action application="transfer" data="1001 XML default"/> > </condition> > </extension> > > </include> > > ===== > /conf/directory/GothamCity.xom.xml > > > <domain name="GothamCity.xom"> > <params> > <param name="dial-string" > value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@ > ${dialed_domain}}${sofia_contact(*/${dialed_user}@ > ${dialed_domain})}"/> > </params> > > <variables> > <variable name="record_stereo" value="true"/> > <variable name="user_context" value="default"/> > <variable name="default_gateway" value="$${default_provider}"/> > <variable name="default_areacode" > value="$${default_areacode}"/> > <variable name="transfer_fallback_extension" value="operator"/> > </variables> > > <groups> > <group name="GothamCity.xom"> > <users> > <X-PRE-PROCESS cmd="include" data="GothamCity.xom/*.xml"/> > </users> > </group> > > <group name="sales"> > <users> > <!-- > type="pointer" is a pointer so you can have the > same user in multiple groups. It basically means > to keep searching for the user in the directory. > --> > <user id="1000" type="pointer"/> > <user id="1001" type="pointer"/> > <user id="1002" type="pointer"/> > <user id="1003" type="pointer"/> > <user id="1004" type="pointer"/> > </users> > </group> > ===== > > > > > On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com>wrote: > >> Thank you for your assistance. I made the suggested modification >> below, however, when calling the number it goes directly to voicemail. >> >> /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml >> >> <include> >> >> <extension name="vitel-inbound"> >> <condition field="destination_number" >> expression="^1?(262xxxxxxx)$"> >> <action application="transfer" data="1000 XML default"/> >> </condition> >> </extension> >> >> </include> >> >> <snip> -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
so your extension are not registered On my FS I can see my own extension. Now this is where I am going to learn something because I have no idea why you can call from one extension to another if they are not registered. On 13-05-22 10:48 PM, Mike Hendrie wrote:
Sorry it took so long.
I updated the log file and your requested details.
http://pastebin.freeswitch.org/20963
Thank you
On Wed, May 22, 2013 at 10:38 AM, Michael Collins <msc@freeswitch.org <mailto:msc@freeswitch.org>> wrote:
Mike,
You might be confusing "profiles" with "domains". A profile is a "SIP profile" and represent a SIP user agent where FreeSWITCH's SIP stack ("Sofia") listens and responds. There is no explicit relationship between domains and profiles. Profiles simply define where SIP messages come and go on the system.
Domains are a logical construct in the server. You can have multiple domains and thus multiple users with the same ID, i.e. "1001@domain1" and "1001@domain2".
Go to your fs_cli and capture the output of these commands: sofia status sofia status profile internal reg
Drop those in a pastebin a link back here. -MC
On Wed, May 22, 2013 at 7:14 AM, Mike Hendrie <mike@hendrienet.com <mailto:mike@hendrienet.com>> wrote:
I will look into the registration of the phones as I see I am missing something.
freeswitch@internal> sofia status profile GothamCity.xom reg
Registrations: ================================================================================================= Total items returned: 0 =================================================================================================
On Wed, May 22, 2013 at 8:15 AM, Mike Hendrie <mike@hendrienet.com <mailto:mike@hendrienet.com>> wrote:
I do. I can also ring extension 1000.
On May 22, 2013 7:52 AM, "Philippe Le Toquin" <philippe@ppmt.org <mailto:philippe@ppmt.org>> wrote:
This is why it goes to voicemail I guess
1. 2013-05-21 22:28:54.107400 [DEBUG] switch_channel.c:1099 sofia/external/5555555555@66.66.66.66 EXPORTING[export_vars] [dialed_extension]=[1001] to event 2. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:2044 Parsing global variables 3. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [sip_invite_domain]=[GothamCity.xom] 4. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608 Parsing variable [presence_id]=[1001@GothamCity.xom] 5. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639 Cannot create outgoing channel of type [error] cause: [USER_NOT_REGISTERED] 6. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 7. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c:2639 Cannot create outgoing channel of type [user] cause: [USER_NOT_REGISTERED] 8. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 9. 2013-05-21 22:28:54.107400 [INFO] mod_dptools.c:3106 Originate Failed. Cause: USER_NOT_REGISTERED 10. EXECUTE sofia/external/5555555555@66.66.66.66 answer() 11. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663 Audio Codec Compare [PCMU:0:8000:20:64000]/[G722:9:8000:20:64000] 12. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663 Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 13. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:1772 Set Codec sofia/external/5555555555@66.66.66.66 P
Do you have a dialtone on that 1001 extension?
On 22 May 2013 07:55, Mike Hendrie <mike@hendrienet.com <mailto:mike@hendrienet.com>> wrote:
Thank you.
Here is the log URL. http://pastebin.freeswitch.org/20960
On Wed, May 22, 2013 at 1:39 AM, Michael Collins <msc@freeswitch.org <mailto:msc@freeswitch.org>> wrote:
Post a FreeSWITCH debug log of the incoming call. Use pastebin.freeswitch.org <http://pastebin.freeswitch.org> and select "FreeSWITCH Log" as the syntax highlighting. Paste the URL in this email thread and we'll take a look. -MC
On Tue, May 21, 2013 at 9:35 PM, Mike Hendrie <mike@hendrienet.com <mailto:mike@hendrienet.com>> wrote:
Correction: I had a second dialplan in the public folder that was causing confusion. Below is the dialplan I am using. If I change the extension in the dialplan from 1000 to 1001 I get the appropriate voice mail extension, however, the phones never ring.
I have the fs configured as a multi-tenant solution.
Could the dialplan be using the default extensions (1000 and 1001) under /conf/directory/default and not reference the /conf/directory/GothamCity.xom domain? That would explain why I get to the voicemail for the correct extension when the phone never rings.
Thanks
===== /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="GothamCity.xom 1001"> <condition field="destination_number" expression="^1?(2624481175 <tel:%282624481175>)$"> <action application="set" data="domain_name=GothamCity.xom"/> <action application="transfer" data="1001 XML default"/> </condition> </extension>
</include>
===== /conf/directory/GothamCity.xom.xml
<domain name="GothamCity.xom"> <params> <param name="dial-string" value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(*/${dialed_user}@${dialed_domain})}"/> </params>
<variables> <variable name="record_stereo" value="true"/> <variable name="user_context" value="default"/> <variable name="default_gateway" value="$${default_provider}"/> <variable name="default_areacode" value="$${default_areacode}"/> <variable name="transfer_fallback_extension" value="operator"/> </variables>
<groups> <group name="GothamCity.xom"> <users> <X-PRE-PROCESS cmd="include" data="GothamCity.xom/*.xml"/> </users> </group>
<group name="sales"> <users> <!-- type="pointer" is a pointer so you can have the same user in multiple groups. It basically means to keep searching for the user in the directory. --> <user id="1000" type="pointer"/> <user id="1001" type="pointer"/> <user id="1002" type="pointer"/> <user id="1003" type="pointer"/> <user id="1004" type="pointer"/> </users> </group> =====
On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com <mailto:mike@hendrienet.com>> wrote:
Thank you for your assistance. I made the suggested modification below, however, when calling the number it goes directly to voicemail.
/usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml
<include>
<extension name="vitel-inbound"> <condition field="destination_number" expression="^1?(262xxxxxxx)$"> <action application="transfer" data="1000 XML default"/> </condition> </extension>
</include>
<snip> -- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
I made a change to 1000 this morning and I can now dial each others extensions. When I call the number I still go directly to the voicemail when extension 1000 should ring. freeswitch@internal> sofia status profile internal reg Registrations: ================================================================================================= Call-ID: 519830183003@10.2.1.209 User: 1001@gothamcity.xom Contact: "user" <sip:1001@10.2.1.209:45048 ;transport=udp;fs_nat=yes;fs_path=sip%3A1001%4010.2.1.209%3A45048%3Btransport%3Dudp> Agent: Sipdroid/3.0 beta/SCH-I605 Status: Registered(UDP-NAT)(unknown) EXP(2013-05-22 23:44:29) EXPSECS(3501) Host: GothamCity-00 IP: 10.2.1.209 Port: 45048 Auth-User: 1001 Auth-Realm: gothamcity.xom MWI-Account: 1001@gothamcity.xom Call-ID: 7eb5078e-316ad43b-c274631c@10.2.1.50 User: 1000@gothamcity.xom Contact: "user" <sip:1000@10.2.1.50:5060 ;transport=tcp;fs_nat=yes;fs_path=sip%3A1000%4010.2.1.50%3A64461%3Btransport%3Dtcp> Agent: PolycomSoundPointIP-SPIP_335-UA/3.3.3.0069 Status: Registered(TCP-NAT)(unknown) EXP(2013-05-22 22:48:44) EXPSECS(156) Host: GothamCity-00 IP: 10.2.1.50 Port: 64461 Auth-User: 1000 Auth-Realm: gothamcity.xom MWI-Account: 1000@gothamcity.xom Total items returned: 2 ================================================================================================= Mike Hendrie T: 847.366.5881 E: mike@hendrienet.com On May 23, 2013 6:16 AM, "Philippe Le Toquin" <philippe@ppmt.org> wrote:
so your extension are not registered
On my FS I can see my own extension.
Now this is where I am going to learn something because I have no idea why you can call from one extension to another if they are not registered.
On 13-05-22 10:48 PM, Mike Hendrie wrote:
Sorry it took so long.
I updated the log file and your requested details.
http://pastebin.freeswitch.org/20963
Thank you
On Wed, May 22, 2013 at 10:38 AM, Michael Collins <msc@freeswitch.org>wrote:
Mike,
You might be confusing "profiles" with "domains". A profile is a "SIP profile" and represent a SIP user agent where FreeSWITCH's SIP stack ("Sofia") listens and responds. There is no explicit relationship between domains and profiles. Profiles simply define where SIP messages come and go on the system.
Domains are a logical construct in the server. You can have multiple domains and thus multiple users with the same ID, i.e. "1001@domain1" and "1001@domain2".
Go to your fs_cli and capture the output of these commands: sofia status sofia status profile internal reg
Drop those in a pastebin a link back here. -MC
On Wed, May 22, 2013 at 7:14 AM, Mike Hendrie <mike@hendrienet.com>wrote:
I will look into the registration of the phones as I see I am missing something.
freeswitch@internal> sofia status profile GothamCity.xom reg
Registrations:
================================================================================================= Total items returned: 0
=================================================================================================
On Wed, May 22, 2013 at 8:15 AM, Mike Hendrie <mike@hendrienet.com>wrote:
I do. I can also ring extension 1000. On May 22, 2013 7:52 AM, "Philippe Le Toquin" <philippe@ppmt.org> wrote:
This is why it goes to voicemail I guess
1. 2013-05-21 22:28:54.107400 [DEBUG] switch_channel.c:1099sofia/external/ 5555555555@66.66.66.66 EXPORTING[export_vars] [dialed_extension]=[ 1001] to event 2. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:2044Parsing global variables 3. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608Parsing variable [sip_invite_domain]=[GothamCity.xom] 4. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608Parsing variable [presence_id]=[1001@GothamCity.xom] 5. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c: 2639 Cannot create outgoing channel of type [error] cause: [ USER_NOT_REGISTERED] 6. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 7. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c: 2639 Cannot create outgoing channel of type [user] cause: [ USER_NOT_REGISTERED] 8. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c:3605Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 9. 2013-05-21 22:28:54.107400 [INFO] mod_dptools.c:3106Originate Failed. Cause: USER_NOT_REGISTERED 10. EXECUTE sofia/external/5555555555@66.66.66.66 answer() 11. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663Audio Codec Compare [PCMU:0:8000:20:64000]/[G722:9:8000:20:64000] 12. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 13. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:1772Set Codec sofia/external/ 5555555555@66.66.66.66 P
Do you have a dialtone on that 1001 extension?
On 22 May 2013 07:55, Mike Hendrie <mike@hendrienet.com> wrote:
Thank you.
Here is the log URL. http://pastebin.freeswitch.org/20960
On Wed, May 22, 2013 at 1:39 AM, Michael Collins <msc@freeswitch.org > wrote:
> Post a FreeSWITCH debug log of the incoming call. Use > pastebin.freeswitch.org and select "FreeSWITCH Log" as the syntax > highlighting. Paste the URL in this email thread and we'll take a look. > -MC > > > On Tue, May 21, 2013 at 9:35 PM, Mike Hendrie <mike@hendrienet.com>wrote: > >> Correction: >> I had a second dialplan in the public folder that was causing >> confusion. Below is the dialplan I am using. >> If I change the extension in the dialplan from 1000 to 1001 I get >> the appropriate voice mail extension, however, the phones never ring. >> >> I have the fs configured as a multi-tenant solution. >> >> Could the dialplan be using the default extensions (1000 and >> 1001) under /conf/directory/default and not reference the >> /conf/directory/GothamCity.xom domain? That would explain why I get to the >> voicemail for the correct extension when the phone never rings. >> >> Thanks >> >> ===== >> /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml >> >> <include> >> >> <extension name="GothamCity.xom 1001"> >> <condition field="destination_number" expression="^1? >> (2624481175)$"> >> <action application="set" data="domain_name=GothamCity.xom"/> >> <action application="transfer" data="1001 XML default"/> >> </condition> >> </extension> >> >> </include> >> >> ===== >> /conf/directory/GothamCity.xom.xml >> >> >> <domain name="GothamCity.xom"> >> <params> >> <param name="dial-string" >> value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@ >> ${dialed_domain}}${sofia_contact(*/${dialed_user}@ >> ${dialed_domain})}"/> >> </params> >> >> <variables> >> <variable name="record_stereo" value="true"/> >> <variable name="user_context" value="default"/> >> <variable name="default_gateway" >> value="$${default_provider}"/> >> <variable name="default_areacode" >> value="$${default_areacode}"/> >> <variable name="transfer_fallback_extension" >> value="operator"/> >> </variables> >> >> <groups> >> <group name="GothamCity.xom"> >> <users> >> <X-PRE-PROCESS cmd="include" data="GothamCity.xom/*.xml"/> >> </users> >> </group> >> >> <group name="sales"> >> <users> >> <!-- >> type="pointer" is a pointer so you can have the >> same user in multiple groups. It basically means >> to keep searching for the user in the directory. >> --> >> <user id="1000" type="pointer"/> >> <user id="1001" type="pointer"/> >> <user id="1002" type="pointer"/> >> <user id="1003" type="pointer"/> >> <user id="1004" type="pointer"/> >> </users> >> </group> >> ===== >> >> >> >> >> On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com>wrote: >> >>> Thank you for your assistance. I made the suggested modification >>> below, however, when calling the number it goes directly to voicemail. >>> >>> /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml >>> >>> <include> >>> >>> <extension name="vitel-inbound"> >>> <condition field="destination_number" >>> expression="^1?(262xxxxxxx)$"> >>> <action application="transfer" data="1000 XML default"/> >>> </condition> >>> </extension> >>> >>> </include> >>> >>> <snip> > -- > Michael S Collins > Twitter: @mercutioviz > http://www.FreeSWITCH.org > http://www.ClueCon.com > http://www.OSTAG.org > > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Looking at the log: http://pastebin.freeswitch.org/20964 Am I seeing the call transferring to 1000@default and not GothamCity.xom? Dialplan: sofia/external/5555555555@66.66.66.66 Regex (PASS) [GothamCity.xom 1001] destination_number(2222222222) =~ /^1?(2222222222)$/ break=on-false Dialplan: sofia/external/5555555555@66.66.66.66 Action set(domain_name=GothamCity.xom) Dialplan: sofia/external/5555555555@66.66.66.66 Action transfer(1000 XML default) The Dialplan should have it go to 1000@GithamCity.xom Thanks! On Thu, May 23, 2013 at 6:45 AM, Mike Hendrie <mike@hendrienet.com> wrote:
I made a change to 1000 this morning and I can now dial each others extensions.
When I call the number I still go directly to the voicemail when extension 1000 should ring.
freeswitch@internal> sofia status profile internal reg
Registrations:
=================================================================================================
Call-ID: 519830183003@10.2.1.209
User: 1001@gothamcity.xom
Contact: "user" <sip:1001@10.2.1.209:45048 ;transport=udp;fs_nat=yes;fs_path=sip%3A1001%4010.2.1.209%3A45048%3Btransport%3Dudp>
Agent: Sipdroid/3.0 beta/SCH-I605
Status: Registered(UDP-NAT)(unknown) EXP(2013-05-22 23:44:29) EXPSECS(3501)
Host: GothamCity-00
IP: 10.2.1.209
Port: 45048
Auth-User: 1001
Auth-Realm: gothamcity.xom
MWI-Account: 1001@gothamcity.xom
Call-ID: 7eb5078e-316ad43b-c274631c@10.2.1.50
User: 1000@gothamcity.xom
Contact: "user" <sip:1000@10.2.1.50:5060 ;transport=tcp;fs_nat=yes;fs_path=sip%3A1000%4010.2.1.50%3A64461%3Btransport%3Dtcp>
Agent: PolycomSoundPointIP-SPIP_335-UA/3.3.3.0069
Status: Registered(TCP-NAT)(unknown) EXP(2013-05-22 22:48:44) EXPSECS(156)
Host: GothamCity-00
IP: 10.2.1.50
Port: 64461
Auth-User: 1000
Auth-Realm: gothamcity.xom
MWI-Account: 1000@gothamcity.xom
Total items returned: 2
=================================================================================================
Mike Hendrie T: 847.366.5881 E: mike@hendrienet.com On May 23, 2013 6:16 AM, "Philippe Le Toquin" <philippe@ppmt.org> wrote:
so your extension are not registered
On my FS I can see my own extension.
Now this is where I am going to learn something because I have no idea why you can call from one extension to another if they are not registered.
On 13-05-22 10:48 PM, Mike Hendrie wrote:
Sorry it took so long.
I updated the log file and your requested details.
http://pastebin.freeswitch.org/20963
Thank you
On Wed, May 22, 2013 at 10:38 AM, Michael Collins <msc@freeswitch.org>wrote:
Mike,
You might be confusing "profiles" with "domains". A profile is a "SIP profile" and represent a SIP user agent where FreeSWITCH's SIP stack ("Sofia") listens and responds. There is no explicit relationship between domains and profiles. Profiles simply define where SIP messages come and go on the system.
Domains are a logical construct in the server. You can have multiple domains and thus multiple users with the same ID, i.e. "1001@domain1" and "1001@domain2".
Go to your fs_cli and capture the output of these commands: sofia status sofia status profile internal reg
Drop those in a pastebin a link back here. -MC
On Wed, May 22, 2013 at 7:14 AM, Mike Hendrie <mike@hendrienet.com>wrote:
I will look into the registration of the phones as I see I am missing something.
freeswitch@internal> sofia status profile GothamCity.xom reg
Registrations:
================================================================================================= Total items returned: 0
=================================================================================================
On Wed, May 22, 2013 at 8:15 AM, Mike Hendrie <mike@hendrienet.com>wrote:
I do. I can also ring extension 1000. On May 22, 2013 7:52 AM, "Philippe Le Toquin" <philippe@ppmt.org> wrote:
This is why it goes to voicemail I guess
1. 2013-05-21 22:28:54.107400 [DEBUG] switch_channel.c:1099sofia/external/ 5555555555@66.66.66.66 EXPORTING[export_vars] [dialed_extension]=[ 1001] to event 2. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c: 2044 Parsing global variables 3. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608Parsing variable [sip_invite_domain]=[GothamCity.xom] 4. 2013-05-21 22:28:54.107400 [DEBUG] switch_event.c:1608Parsing variable [presence_id]=[1001@GothamCity.xom] 5. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c: 2639 Cannot create outgoing channel of type [error] cause: [ USER_NOT_REGISTERED] 6. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c: 3605 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 7. 2013-05-21 22:28:54.107400 [NOTICE] switch_ivr_originate.c: 2639 Cannot create outgoing channel of type [user] cause: [ USER_NOT_REGISTERED] 8. 2013-05-21 22:28:54.107400 [DEBUG] switch_ivr_originate.c: 3605 Originate Resulted in Error Cause: 606 [USER_NOT_REGISTERED] 9. 2013-05-21 22:28:54.107400 [INFO] mod_dptools.c:3106Originate Failed. Cause: USER_NOT_REGISTERED 10. EXECUTE sofia/external/5555555555@66.66.66.66 answer() 11. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663Audio Codec Compare [PCMU:0:8000:20:64000]/[G722:9:8000:20:64000] 12. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:2663Audio Codec Compare [PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000] 13. 2013-05-21 22:28:54.107400 [DEBUG] switch_core_media.c:1772Set Codec sofia/external/ 5555555555@66.66.66.66 P
Do you have a dialtone on that 1001 extension?
On 22 May 2013 07:55, Mike Hendrie <mike@hendrienet.com> wrote:
> Thank you. > > Here is the log URL. > http://pastebin.freeswitch.org/20960 > > > > On Wed, May 22, 2013 at 1:39 AM, Michael Collins < > msc@freeswitch.org> wrote: > >> Post a FreeSWITCH debug log of the incoming call. Use >> pastebin.freeswitch.org and select "FreeSWITCH Log" as the syntax >> highlighting. Paste the URL in this email thread and we'll take a look. >> -MC >> >> >> On Tue, May 21, 2013 at 9:35 PM, Mike Hendrie <mike@hendrienet.com>wrote: >> >>> Correction: >>> I had a second dialplan in the public folder that was causing >>> confusion. Below is the dialplan I am using. >>> If I change the extension in the dialplan from 1000 to 1001 I >>> get the appropriate voice mail extension, however, the phones never ring. >>> >>> I have the fs configured as a multi-tenant solution. >>> >>> Could the dialplan be using the default extensions (1000 and >>> 1001) under /conf/directory/default and not reference the >>> /conf/directory/GothamCity.xom domain? That would explain why I get to the >>> voicemail for the correct extension when the phone never rings. >>> >>> Thanks >>> >>> ===== >>> /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml >>> >>> <include> >>> >>> <extension name="GothamCity.xom 1001"> >>> <condition field="destination_number" expression="^1? >>> (2624481175)$"> >>> <action application="set" >>> data="domain_name=GothamCity.xom"/> >>> <action application="transfer" data="1001 XML default"/> >>> </condition> >>> </extension> >>> >>> </include> >>> >>> ===== >>> /conf/directory/GothamCity.xom.xml >>> >>> >>> <domain name="GothamCity.xom"> >>> <params> >>> <param name="dial-string" >>> value="{^^:sip_invite_domain=${dialed_domain}:presence_id=${dialed_user}@ >>> ${dialed_domain}}${sofia_contact(*/${dialed_user}@ >>> ${dialed_domain})}"/> >>> </params> >>> >>> <variables> >>> <variable name="record_stereo" value="true"/> >>> <variable name="user_context" value="default"/> >>> <variable name="default_gateway" >>> value="$${default_provider}"/> >>> <variable name="default_areacode" >>> value="$${default_areacode}"/> >>> <variable name="transfer_fallback_extension" >>> value="operator"/> >>> </variables> >>> >>> <groups> >>> <group name="GothamCity.xom"> >>> <users> >>> <X-PRE-PROCESS cmd="include" >>> data="GothamCity.xom/*.xml"/> >>> </users> >>> </group> >>> >>> <group name="sales"> >>> <users> >>> <!-- >>> type="pointer" is a pointer so you can have the >>> same user in multiple groups. It basically means >>> to keep searching for the user in the directory. >>> --> >>> <user id="1000" type="pointer"/> >>> <user id="1001" type="pointer"/> >>> <user id="1002" type="pointer"/> >>> <user id="1003" type="pointer"/> >>> <user id="1004" type="pointer"/> >>> </users> >>> </group> >>> ===== >>> >>> >>> >>> >>> On Tue, May 21, 2013 at 9:27 PM, Mike Hendrie <mike@hendrienet.com >>> > wrote: >>> >>>> Thank you for your assistance. I made the suggested modification >>>> below, however, when calling the number it goes directly to voicemail. >>>> >>>> /usr/local/freeswitch/conf/dialplan/public/GothamCity.xom.xml >>>> >>>> <include> >>>> >>>> <extension name="vitel-inbound"> >>>> <condition field="destination_number" >>>> expression="^1?(262xxxxxxx)$"> >>>> <action application="transfer" data="1000 XML default"/> >>>> </condition> >>>> </extension> >>>> >>>> </include> >>>> >>>> <snip> >> -- >> Michael S Collins >> Twitter: @mercutioviz >> http://www.FreeSWITCH.org >> http://www.ClueCon.com >> http://www.OSTAG.org >> >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> FreeSWITCH-powered IP PBX: The CudaTel Communication Server >> http://www.cudatel.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://wiki.freeswitch.org >> http://www.cluecon.com >> >> FreeSWITCH-users mailing list >> FreeSWITCH-users@lists.freeswitch.org >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users >> UNSUBSCRIBE: >> http://lists.freeswitch.org/mailman/options/freeswitch-users >> http://www.freeswitch.org >> >> > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > FreeSWITCH-powered IP PBX: The CudaTel Communication Server > http://www.cudatel.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://wiki.freeswitch.org > http://www.cluecon.com > > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE: > http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org > >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Michael Collins
-
Mike Hendrie
-
Philippe Le Toquin