Provider Configuration: FreePhonie

From FreeSWITCH Wiki
Jump to: navigation, search

freephonie.net

Incoming and outgoing works.

  • SIP profile : conf/sip_profiles/external/freephonie.xml

095056xxxx = your freephonie number

 <include>
       <gateway name="freephonie.net">
               <param name="username" value="095056xxxx"/>
               <param name="password" value="xxxxxxxxxx"/>
               <param name="realm" value="freephonie.net"/>
               <param name="proxy" value="freephonie.net"/>
               <param name="register-proxy" value="freephonie.net"/>
               <param name="register" value="true"/>
       </gateway>
 </include>
  • Outgoing calls : conf/dialplan/default/00_freephonie.xml

4 = outgoing prefix

 <include>
     <extension name="freephonie" continue="false">
           <condition field="destination_number" expression = "^4(.*)$">
               <action application="set" data="effective_caller_id_name=095056xxxx"/>
               <action application="set" data="effective_caller_id_number=095056xxxx"/>
               <action application="bridge" data="sofia/gateway/freephonie.net/$1"/>
       </condition>
   </extension>
 </include>
  • Incoming calls : conf/dialplan/public/10_inbound_freephonie.xml

Transfer incoming calls to device 1000

 <include>
   <extension name="public_freephonie">
     <condition field="destination_number" expression="^(095056xxxx)$">
       <action application="set" data="domain_name=$${domain}"/>
       <action application="transfer" data="1000 XML default"/>
     </condition>
   </extension>
 </include>