Share your tips, tricks and best practise ideas for Fongo services in here!
curriegrad2004
Active Poster
Posts: 68 Joined: 09/03/2010
SIP Device Name: FreeSwitch SoftSwitch
Firmware Version: Latest Git
ISP Name: Telus HSI/Rogers 3G
Computer OS: Windows 7
Router: Netfilter with SIP ALG
Location: CYVR - Runway 26L
Post
by curriegrad2004 » 09/30/2010
For users out there who has a config file and would like to use FPL with FreeSwitch, just simply put this code snippet in your external SIP gateway profile:
Code: Select all
<gateway name="FPLXXXXXXXXXX">
<param name="username" value="XXXXXXXXXX" />
<param name="from-user" value="XXXXXXXXXX" />
<param name="realm" value="voip.freephoneline.ca"/>
<param name="proxy" value="voip.freephoneline.ca"/>
<param name="password" value="PasswordHere" />
<param name="register" value="true" />
</gateway>
</gateways>
I assume users out there with a FreeSwitch box would know the rest on setting up dialplans, etc.
ppmt
Just Passing Thru
Posts: 21 Joined: 09/04/2009
SIP Device Name: SPA2102
ISP Name: Videotron
Post
by ppmt » 01/25/2011
Hi,
I am testing Freeswitch so thanks for that example. Right now I have on my main PC but if successful I will transfer it to my guruplug (ARM based).
I would however be interrested in your dialplan as well
Jake
Technical Support
Posts: 2837 Joined: 10/18/2009
Post
by Jake » 01/25/2011
ppmt wrote: Hi,
I am testing Freeswitch so thanks for that example. Right now I have on my main PC but if successful I will transfer it to my guruplug (ARM based).
I would however be interrested in your dialplan as well
This is the one I use
<extension name="local.example.com">
<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="^(1?)(\d{10})$">
<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$2"/>
</condition>
</extension>
I have it in the conf/dialplan/default/00_dial.in.xml file. Make sure you have set the gateway config and areacode in your vars.xml file so it pulls in the default_gateway, default_areacode, etc
I do have more dial plans for other situations, but this is the one that deals with normal Canadian calls and allows me to 7 digit dial local numbers.
ppmt
Just Passing Thru
Posts: 21 Joined: 09/04/2009
SIP Device Name: SPA2102
ISP Name: Videotron
Post
by ppmt » 01/26/2011
I will test it tomorrow. I will probably not use your 7 digit for local one....going to take to long to retrain the misses
Freeswitch seems really good. I managed to create an extension in no time and am now thinkering with gateways and dialplan
thanks again
curriegrad2004
Active Poster
Posts: 68 Joined: 09/03/2010
SIP Device Name: FreeSwitch SoftSwitch
Firmware Version: Latest Git
ISP Name: Telus HSI/Rogers 3G
Computer OS: Windows 7
Router: Netfilter with SIP ALG
Location: CYVR - Runway 26L
Post
by curriegrad2004 » 01/27/2011
Wow, somebody already beat me to it on putting example dialplans for FreeSwitch.
I did write a quick and dirty tutorial on my blog last year, link to it is below.
http://www.curriegrad2004.ca/archives/5 ... witch.html
Comes with an inbound and outbound dialplan, just enough to get things running there.
IIRC, an employee of FPL over at Facebook did read over it and gave me a good rep... I wonder who it was...