[Freeswitch-users] Looking for dial plan examples for FS and SPA3102 router
Todd Bailey
toddb at toddbailey.net
Wed Jul 18 02:37:51 MSD 2012
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>
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list