Provider Configuration: ippi

From FreeSWITCH Wiki
Jump to: navigation, search

SIP gateway: conf/sip_profiles/external/ippi.xml

 <include>
       <gateway name="ippi.fr">
               <param name="username" value="**Login**"/>
               <param name="password" value="**Password**"/>
               <param name="realm" value="ippi.fr"/>
               <param name="proxy" value="ippi.fr"/>
               <param name="register-proxy" value="ippi.fr"/>
               <param name="register" value="true"/>
       </gateway>
 </include>

Outgoing calls: conf/dialplan/default/00_ippi.xml

0 = outgoing prefix

 <include>
     <extension name="ippi" continue="false">
           <condition field="destination_number" expression = "^0(.*)$">
               <action application="set" data="effective_caller_id_name=**Your Name**"/>
               <action application="set" data="effective_caller_id_number=**Your main number**"/>
               <action application="bridge" data="sofia/gateway/ippi.fr/$1"/>
       </condition>
   </extension>
 </include>

Incoming calls: conf/dialplan/public/10_inbound_ippi.xml

Transfer incoming calls to device 1000

 <include>
   <extension name="public_ippi">
     <condition field="destination_number" expression="^(**Your main number**)$">
       <action application="set" data="domain_name=$${domain}"/>
       <action application="transfer" data="1000 XML default"/>
     </condition>
   </extension>
 </include>