[Freeswitch-users] Cannot ring extension from DID

Philippe Le Toquin philippe at ppmt.org
Wed May 22 05:46:41 MSD 2013


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 at ppmt.org 
> <mailto:philippe at 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 at hendrienet.com
>     <mailto:mike at 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 at ppmt.org <mailto:philippe at 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 at internal> sofia status
>>                                  Name      Type                 Data
>>                  State
>>             =================================================================================================
>>                              10.1.1.5     alias             internal
>>              ALIASED
>>                              internal   profile
>>             sip:mod_sofia at 10.1.1.5:5060
>>             <http://sip:mod_sofia@10.1.1.5:5060>      RUNNING (0)
>>                              external   profile
>>             sip:mod_sofia at 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 at example.com
>>             <mailto:sip%3Ajoeuser at example.com>      NOREG
>>             external::BatCave-inbound  gateway
>>             sip:J0k3R!@BacCave.hole.Xom
>>             <mailto:sip:J0k3R%21 at BacCave.hole.Xom>      REGED
>>             external::BatCat-outbound gateway
>>             sip:J0k3R!@BacCave.hole.Xom
>>             <mailto:sip:J0k3R%21 at 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 at 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 at 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 at freeswitch.org  <mailto:consulting at freeswitch.org>
>>             http://www.freeswitchsolutions.com
>>
>>             
>>             
>>
>>             Official FreeSWITCH Sites
>>             http://www.freeswitch.org
>>             http://wiki.freeswitch.org
>>             http://www.cluecon.com
>>
>>             FreeSWITCH-users mailing list
>>             FreeSWITCH-users at lists.freeswitch.org  <mailto:FreeSWITCH-users at 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 at freeswitch.org <mailto:consulting at freeswitch.org>
>             http://www.freeswitchsolutions.com
>
>             
>             
>
>             Official FreeSWITCH Sites
>             http://www.freeswitch.org
>             http://wiki.freeswitch.org
>             http://www.cluecon.com
>
>             FreeSWITCH-users mailing list
>             FreeSWITCH-users at lists.freeswitch.org
>             <mailto:FreeSWITCH-users at 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 at freeswitch.org <mailto:consulting at freeswitch.org>
>         http://www.freeswitchsolutions.com
>
>         
>         
>
>         Official FreeSWITCH Sites
>         http://www.freeswitch.org
>         http://wiki.freeswitch.org
>         http://www.cluecon.com
>
>         FreeSWITCH-users mailing list
>         FreeSWITCH-users at lists.freeswitch.org
>         <mailto:FreeSWITCH-users at 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 at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     
>     
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://wiki.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130521/4da6ab9c/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list