ims.conf.xml
2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0"?>
<document type="ims/xml">
<section type="service" description="ims basic run config">
<service type="main" ip="127.0.0.1" port="9527"/>
<service type="monitor" ip="127.0.0.1" port="9011"/>
<service type="config" ip="127.0.0.1" port="9012"/>
</section>
<section type="param" description="run core param">
<param name="max-session" value="1000"/>
<param name="bgcc-poolsize" value="500"/>
</section>
<section type="client" description="allow/deny connect to ims">
<client type="ivr">
<allow data="127.0.0.0/24" />
</client>
<client type="config">
<allow data="127.0.0.0/24" />
</client>
<client type="acd">
<allow data="127.0.0.0/24" />
</client>
<client type="monitor">
<allow data="127.0.0.0/24" />
</client>
</section>
<section type="gateway" description="gateway info" log="true">
<gateway type="freeswitch" id="0" ip="127.0.0.1" port="8022" pswd="ClueCon" user="" max_conn="10" dtmf="inband"/>
</section>
<section type="route" description="outbound route info">
<route name="route5" type="outbound">
<condition field="callerno " expression="^(9999)$">
<set disp_callerno="$1"/>
<set call_callerno="user/$1"/>
<set call_calledno="sofia/internal/${CALLED}@127.0.0.1:5060"/>
</condition>
</route>
<route name="route4" type="outbound">
<condition field="callerno " expression="^agt(.*)">
<set disp_callerno="$1"/>
<set call_callerno="sofia/internal/$1@127.0.0.1:5060"/>
<set call_calledno="sofia/internal/${CALLED}@127.0.0.1:5060"/>
</condition>
</route>
<route name="route3" type="outbound">
<condition field="callerno " expression="^(.*)$">
<set disp_callerno="$1"/>
<set call_callerno="sofia/internal/${DN}@127.0.0.1:5060"/>
<set call_calledno="sofia/internal/${CALLED}@127.0.0.1:5060"/>
</condition>
</route>
</section>
</document>