SHOW:
|
|
- or go back to the newest paste.
1 | <?xml version="1.0" encoding="utf-8"?> | |
2 | <!-- | |
3 | NOTICE: | |
4 | ||
5 | This context is usually accessed via authenticated callers on the sip profile on port 5060 | |
6 | or transfered callers from the public context which arrived via the sip profile on port 5080. | |
7 | ||
8 | Authenticated users will use the user_context variable on the user to determine what context | |
9 | they can access. You can also add a user in the directory with the cidr= attribute acl.conf.xml | |
10 | will build the domains ACL using this value. | |
11 | --> | |
12 | <!-- http://wiki.freeswitch.org/wiki/Dialplan_XML --> | |
13 | <include> | |
14 | <context name="default"> | |
15 | ||
16 | <!-- dial external numbers (mobile, landlines) via gsmopen gsm01 interface --> | |
17 | <extension name="gsmopen"> | |
18 | <condition field="destination_number" expression="^(\d{10})$"> | |
19 | - | <action application="bridge" data="gsmopen/gsm01/+1$1"/> |
19 | + | <action application="set" data="instant_ringback=false"/> |
20 | <action application="set" data="bridge_early_media=true"/> | |
21 | <action application="set" data="ignore_early_media=false"/> | |
22 | <action application="bridge" data="{instant_ringback=false,bridge_early_media=true,ignore_early_media=false}gsmopen/gsm01/+1$1"/> | |
23 | </condition> | |
24 | </extension> | |
25 | ||
26 | <!-- | |
27 | This extension allows calling any digits of number | |
28 | freeswitch will call plivo outbound server on every incoming call | |
29 | --> | |
30 | <extension name="plivo"> | |
31 | <condition field="destination_number" expression="^(\d+)$"> | |
32 | <!-- <condition field="destination_number" expression="^5000$"> --> | |
33 | <action application="enable_heartbeat" data="60"/> | |
34 | <action application="set" data="instant_ringback=false"/> | |
35 | <action application="set" data="bridge_early_media=true"/> | |
36 | <action application="set" data="ignore_early_media=false"/> | |
37 | <action application="socket" data="127.0.0.1:8084 async full"/> | |
38 | <!-- increase the call/recording volume --> | |
39 | <action application="set_audio_level" data="read 4"/> | |
40 | <action application="set_audio_level" data="write 4"/> | |
41 | </condition> | |
42 | </extension> | |
43 | ||
44 | <!-- | |
45 | This extension allows calling sip:[email protected] | |
46 | freeswitch will call plivo outbound server on every incoming call | |
47 | --> | |
48 | <extension name="plivo_sip_uri"> | |
49 | <condition field="destination_number" expression="^sip:(.*)$"> | |
50 | <action application="enable_heartbeat" data="60"/> | |
51 | <action application="set" data="instant_ringback=false"/> | |
52 | <action application="set" data="bridge_early_media=true"/> | |
53 | <action application="set" data="ignore_early_media=false"/> | |
54 | <action application="socket" data="127.0.0.1:8084 async full"/> | |
55 | </condition> | |
56 | </extension> | |
57 | ||
58 | </context> | |
59 | </include> |