-
Notifications
You must be signed in to change notification settings - Fork 1
/
provisioning_gs.php
145 lines (145 loc) · 5.78 KB
/
provisioning_gs.php
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
$template = <<<EOD
<?xml version="1.0" encoding="UTF-8"?>
<gs_provision>
<config version="2">
<item name="account.1.sip">
<part name="authenticateIncomingInvite">No</part>
<part name="rfc2543Hold">0</part>
<part name="publishForPresence">No</part>
<part name="omitCharsetUtf8InMessage">No</part>
<part name="subscribeFailureRetryWaitTime">1</part>
<part name="specialFeature">Standard</part>
<part name="registration">Yes</part>
<part name="registerExpiration">60</part>
<part name="userid">${exten}</part>
<part name="localPort">9950</part>
<part name="allowSipReset">No</part>
<part name="accountDisplay">User Name</part>
<part name="transport">UDP</part>
<part name="registrationFailureRetryWaitTime">20</part>
<part name="allowUnsolicitedRefer">Disabled</part>
<part name="listeningMode">Transport_Only</part>
<part name="calleeIdDisplay">Auto</part>
<part name="minimumSE">90</part>
<part name="enableRTCP">RTCP-XR</part>
<part name="telUri">Disabled</part>
<part name="lineSeizeTimeout">15</part>
<part name="callerIdDisplay">Header</part>
<part name="syncFeatureKey">No</part>
<part name="uriSchemeWhenUsingTls">sips</part>
<part name="supportInstanceId">Yes</part>
<part name="unregisterOnReboot">Yes</part>
<part name="registerBeforeExpiration">0</part>
<part name="useActualEphemeralPortInContactWithTcpTls">No</part>
</item>
<item name="account.1.sip.subscriber">
<part name="name">${exten}</part>
<part name="userid">${exten}</part>
<part name="password">${ext_secret}</part>
</item>
<item name="network.dhcp">
<part name="hostName">tlf_${exten}</part>
</item>
<item name="account.1">
<part name="name">${exten}</part>
<part name="enable">Yes</part>
</item>
<item name="account.1.sip.server.1">
<part name="address">172.16.0.3</part>
</item>
<item name="provisioning.firmware">
<part name="serverPath">172.16.0.3/gs</part>
<part name="checkCondition">AlwaysCheck</part>
<part name="protocol">HTTP</part>
</item>
<item name="provisioning.config">
<part name="serverPath">172.16.0.3/gs</part>
<part name="filePrefix">${exten}</part>
<part name="protocol">HTTP</part>
</item>
<item name="dateTime.ntp.server">
<part name="1">172.16.0.3</part>
<part name="2">172.16.0.1</part>
</item>
<item name="dateTime.timezone">
<part name="custom">MTZ+3MDT+3,M4.1.0,M11.1.0</part>
</item>
<item name="dateTime">
<part name="showOnStatusBar">Yes</part>
<part name="timezone">Moscow, Russia</part>
</item>
<item name="dateTime.ntp">
<part name="updateInterval">1440</part>
</item>
<item name="dateTime.format">
<part name="date">dd-mm-yyyy</part>
<part name="time">12Hour</part>
</item>
<item name="account.1.call.hidePassword">
<part name="length">0</part>
</item>
<item name="account.1.sip.subscribe">
<part name="expiration">60</part>
<part name="forMwi">No</part>
<part name="forRegistration">No</part>
</item>
<item name="account.1.network">
<part name="dnsMode">ARecord</part>
<part name="dnsSRVRegisterBeforeFailover">No</part>
<part name="natTraversal">No</part>
<part name="dnsSRVFailoverMode">Default</part>
</item>
<item name="account.1.codec.choice">
<part name="8">G.722</part>
<part name="7">G.722</part>
<part name="1">PCMU</part>
<part name="2">PCMA</part>
<part name="3">G.722</part>
<part name="4">G.722</part>
<part name="5">G.722</part>
<part name="6">G.722</part>
</item>
<item name="pks.mpk.1">
<part name="account">Account1</part>
<part name="description">Ресепшн</part>
<part name="value">8888</part>
<part name="keyMode">BLF</part>
</item>
<item name="pks.mpk.2">
<part name="account">Account1</part>
<part name="description">Ресторан</part>
<part name="value">8881</part>
<part name="keyMode">BLF</part>
</item>
<item name="pks.mpk.3">
<part name="account">Account1</part>
<part name="description">SPA</part>
<part name="value">8088</part>
<part name="keyMode">BLF</part>
</item>
<item name="pks.mpk.4">
<part name="account">Account1</part>
<part name="description">Клиника</part>
<part name="value">8808</part>
<part name="keyMode">BLF</part>
</item>
<item name="pks.mpk.5">
<part name="account">Account1</part>
<part name="description">Охрана</part>
<part name="value">8800</part>
<part name="keyMode">BLF</part>
</item>
<item name="pks.mpk.6">
<part name="account">Account1</part>
<part name="description">Пул-бар</part>
<part name="value">8880</part>
<part name="keyMode">BLF</part>
</item>
<item name="language">
<part name="gui">Russian</part>
</item>
</config>
</gs_provision>
EOD;
?>