FreeSWITCH

FreeSWITCH_logoMain configuration

under ubuntu/debian the configuration is under /etc/freeswitch

1) make a new file call it freelycall.com.xml
include the following

root@free:/etc/freeswitch/sip_profiles/external# cat freelycall.com.xml
 <include>
   <gateway name=”freelycall.com“>
     <param name=”username” value=”(YOUR-FREELYCALL-ACCOUNT-NUMBER)”/>
     <param name=”realm” value=”freelycall.com“/>
     <param name=”from-domain” value=”freelycall.com“/>
     <param name=”password” value=”+++++++++++”/>
     <param name=”register” value=”true”/>
     <param name=”retry-seconds” value=”30″/>
</gateway>
 </include>

2) fs_cli and reload the config reloadxml

3) check freeswitch@internal> myserver status

external::freelycall.com gateway sip:2XXXX@freelycall.com REGED

Don’t forget to replace 2XXXX and password with your actual freelycall account settings.

Faxing

Faxing can use T.38 or G711 media mode. When calling internationally, T.38 is not supported by many carriers, so it might needed to fall back to g711 media mode. Here’s how to achieve this

in the  file  under /etc/freeswitch/suto_config
spandsp.conf.xml

Add

this is the  same as in :

originate {absolute_codec_string=’PCMU,PCMA’,fax_enable_t38=false,fax_enable_t38_request=false}myserver/gateway/freelycall.com/13478171397 &txfax(/tmp/txfax-sample.tiff)

reload the configuration and  you can send  faxes  without  t.38

DID

Make  sure that you are already registered  to freelycall
1) go to  /etc/freeswitch/dialplan/public
2) make a file like  vim freelycall-uk-in.xml
3) the file should have  this :
  <include>
   <extension name=”FreelyCall.com“>
     <condition field=”destination_number” expression=“^(YOUR-FREELYCALL-ACCOUNT-NUMBER)$”>
       <action application=”set” data=”domain_name=$${domain}”/>
       <action application=”transfer” data=“YOUR EXTENTION XML default”/>
     </condition>
   </extension>
 </include>
4) reload the configuration  and you are  done