User Tools

Site Tools


voip:freeswitch:sip_provider_viptel

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
voip:freeswitch:sip_provider_viptel [2013/06/14 10:31] – created biggivoip:freeswitch:sip_provider_viptel [2015/08/15 22:56] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 I transfer incoming calls to an internal number. You can add the external number as your login etc., but I'd like to be able to create queues and play around with different functions, so I just transfer incoming calls to internal number "1000" (one of the example config users) I transfer incoming calls to an internal number. You can add the external number as your login etc., but I'd like to be able to create queues and play around with different functions, so I just transfer incoming calls to internal number "1000" (one of the example config users)
 +
 We need to define 3 files to connect + dial in + dial out to/from VIPTel: We need to define 3 files to connect + dial in + dial out to/from VIPTel:
-./conf/sip_profiles/external/viptel.xml +  * ./conf/sip_profiles/external/viptel.xml 
-./conf/dialplan/public/00_viptel_inbound_did.xml +  ./conf/dialplan/public/00_viptel_inbound_did.xml 
-./conf/dialplan/default/01_viptel.xml+  ./conf/dialplan/default/01_viptel.xml
  
 The first file (viptel.xml) defines a gateway to connect to. The first file (viptel.xml) defines a gateway to connect to.
-The second file (00_viptel_inbound_did.xml) is kinda self-explanatory. It creates the rules for inbound calls from the provider. +\\ The second file (00_viptel_inbound_did.xml) is kinda self-explanatory. It creates the rules for inbound calls from the provider. 
-The third file defines outbound rules.+\\ The third file defines outbound rules.
  
 **./conf/sip_profiles/external/viptel.xml** **./conf/sip_profiles/external/viptel.xml**
Line 40: Line 41:
 <extension name="Local Denmark"> <extension name="Local Denmark">
    <condition field="destination_number" expression="^([0-9]{8})$">    <condition field="destination_number" expression="^([0-9]{8})$">
-     <action application="set" data="effective_caller_id_name=DIT NAVN"/> +     <action application="set" data="effective_caller_id_name=YOUR NAME"/> 
-     <action application="set" data="effective_caller_id_number=DIT NUMMER"/>+     <action application="set" data="effective_caller_id_number=YOUR NUMBER"/>
      <action application="bridge" data="sofia/gateway/viptel.dk/$1"/>      <action application="bridge" data="sofia/gateway/viptel.dk/$1"/>
    </condition>    </condition>
Line 48: Line 49:
 <extension name="International"> <extension name="International">
    <condition field="destination_number" expression="^00([0-9]*)$">    <condition field="destination_number" expression="^00([0-9]*)$">
-     <action application="set" data="effective_caller_id_name=DIT NAVN"/> +     <action application="set" data="effective_caller_id_name=YOUR NAME"/> 
-     <action application="set" data="effective_caller_id_number=DIT NUMMER"/>+     <action application="set" data="effective_caller_id_number=YOUR NUMBER"/>
      <action application="bridge" data="sofia/gateway/viptel.dk/00$1"/>      <action application="bridge" data="sofia/gateway/viptel.dk/00$1"/>
    </condition>    </condition>
 </extension> </extension>
 </code> </code>
 +
 +Afterwards, just run "reloadxml" + "sofia profile external rescan reloadxml". Or you can just do a "shutdown" (of freeswitch, not your machine! I'd never ask you to reboot your machine. Only insane people reboot, unless it's a kernel update :>), then start freeswitch again.
voip/freeswitch/sip_provider_viptel.1371198688.txt.gz · Last modified: 2015/08/15 22:56 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki