[Freeswitch-users] Looking for dial plan examples for FS and SPA3102 router

Todd Bailey toddb at toddbailey.net
Thu Jul 19 19:55:10 MSD 2012


Any one ?


On Tue, 2012-07-17 at 15:37 -0700, Todd Bailey wrote:
> Hi All,
> 
> 
> I'm having issues getting a dial plan to work on FS and a Cisco SPA 3102
> router.
> 
> when I dial 0, 1 or 9 plus a 10 number, I get to the router's dial tone
> but I have to reenter the number I want to connect to.
> 
> The expected action is to only need to enter the number to dial one
> 
> Can some one provide dial plan and/or other config file example on how
> to resolve this issue?
> 
> here is what I have so far:
> 
> /usr/local/freeswitch/conf/dialplan/default.xml
> 
> <!-- Dial any 10 digit number (2223334444) or 1+10 number (12223334444)
> or 9 + 10 number here -->
> 
>     <extension name="external">
> 
>     <condition field="destination_number"
> expression="^(1{0,1,9}\d{10})$">
> 
>       <action application="set"
> data="effective_caller_id_number=12223334444"/>
>       <!-- If your provider does not provide ringback (180 or 183) you
> may simulate ringback by uncommenting the following line. -->
>       <!-- action application="ringback" /-->
>       <!-- <action application="bridge"
> data="sofia/gateway/voicepulse/$1"/> -->
>       <!-- <action application="bridge"
> data="sofia/internal/${destination_number}@192.168.1.5:5061"/>   -->
>            <action application="bridge"
> data="sofia/internal/$1 at 192.168.1.5:5061" />
>      </condition>
>    </extension>
> 
> 
> /usr/local/freeswitch/conf/dialplan/default/00_spa3102.xml
> 
> <include>
>   <extension name="To PSTN">
>     <condition field="destination_number" expression="(.*)">
>       <action application="bridge"
> data="sofia/internal/${destination_number}@192.168.1.5:5061" />
>     </condition>
>   </extension>
> </include>
> 
> 
> 
> 
> _________________________________________________________________________
> 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
> 
> Join Us At ClueCon - Aug 7-9, 2012
> 
> 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
> 





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