This repository has been archived by the owner on Aug 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
cisco_settings.php
193 lines (193 loc) · 8.71 KB
/
cisco_settings.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?php
header("Content-Type: text/xml; charset=UTF-8");
echo <<<XML
<flat-profile>
// Web
<Enable_Web_Server ua="na">Yes</Enable_Web_Server>
<Web_Server_Port ua="na">80</Web_Server_Port>
<Enable_Web_Admin_Access ua="na">Yes</Enable_Web_Admin_Access>
<Admin_Passwd ua="na">$admin_password</Admin_Passwd>
<User_Password ua="rw"></User_Password>
// Network
<Connection_Type ua="rw">DHCP</Connection_Type>
<Use_Backup_IP ua="na">No</Use_Backup_IP>
<Static_IP ua="rw"></Static_IP>
<NetMask ua="rw"></NetMask>
<Gateway ua="rw"></Gateway>
<HostName ua="rw"></HostName>
<Domain ua="rw"></Domain>
<Enable_SSLv3 ua="na">No</Enable_SSLv3>
// VLAN
<Enable_VLAN ua="na">No</Enable_VLAN>
<VLAN_ID ua="na">1</VLAN_ID>
<PC_Port_VLAN_Highest_Priority ua="na">No Limit</PC_Port_VLAN_Highest_Priority>
<Enable_PC_Port_VLAN_Tagging ua="na">No</Enable_PC_Port_VLAN_Tagging>
<PC_Port_VLAN_ID ua="na">1</PC_Port_VLAN_ID>
// CDP and LLDP-MED
<Enable_CDP ua="na">$enable_cdp</Enable_CDP>
<Enable_LLDP-MED ua="na">$enable_lldp</Enable_LLDP-MED>
//NTP
<NTP_Enable ua="na">Yes</NTP_Enable>
<Primary_NTP_Server ua="na">$ntp_primary</Primary_NTP_Server>
<Secondary_NTP_Server ua="na">$ntp_secondary</Secondary_NTP_Server>
//Syslog
<Syslog_Server ua="na">$syslog_server</Syslog_Server>
<Debug_Server ua="na"></Debug_Server>
<Debug_Level ua="na">0</Debug_Level>
<Layer_2_Logging ua="na">No</Layer_2_Logging>
// SIP
<SIP_Reg_User_Agent_Name ua="na">$reg</SIP_Reg_User_Agent_Name>
<Reg_Retry_Intvl group="SIP/SIP_Timer_Values__sec_">$sip_reg_retry_int</Reg_Retry_Intvl>
<Reg_Retry_Long_Intvl group="SIP/SIP_Timer_Values__sec_">$sip_reg_retry_long_int</Reg_Retry_Long_Intvl>
// EXT2-4
// Disable 2-12 lines
<Line_Enable_2_ ua="na">No</Line_Enable_2_>
<Line_Enable_3_ ua="na">No</Line_Enable_3_>
<Line_Enable_4_ ua="na">No</Line_Enable_4_>
<Line_Enable_5_ ua="na">No</Line_Enable_5_>
<Line_Enable_6_ ua="na">No</Line_Enable_6_>
<Line_Enable_7_ ua="na">No</Line_Enable_7_>
<Line_Enable_8_ ua="na">No</Line_Enable_8_>
<Line_Enable_9_ ua="na">No</Line_Enable_9_>
<Line_Enable_10_ ua="na">No</Line_Enable_10_>
<Line_Enable_11_ ua="na">No</Line_Enable_11_>
<Line_Enable_12_ ua="na">No</Line_Enable_12_>
// EXT1
// Enable 1st line
<Line_Enable_1_ ua="na">Yes</Line_Enable_1_>
// Network
<Proxy_1_ ua="na">$sip_proxy</Proxy_1_>
<SIP_Port_1_ ua="na">5060</SIP_Port_1_>
<SIP_Transport_1_ ua="na">UDP</SIP_Transport_1_>
<Register_Expires_1_ ua="na">300</Register_Expires_1_>
<Auto_Register_When_Failover_1_ ua="na">Yes</Auto_Register_When_Failover_1_>
<NAT_Keep_Alive_Enable_1_ ua="na">No</NAT_Keep_Alive_Enable_1_>
<NAT_Keep_Alive_Msg_1_ ua="na">$notify</NAT_Keep_Alive_Msg_1_>
<NAT_Keep_Alive_Dest_1_ ua="na">$proxy</NAT_Keep_Alive_Dest_1_>
<SIP_TOS_DiffServ_Value_1_ ua="na">0x68</SIP_TOS_DiffServ_Value_1_>
<SIP_CoS_Value_1_ ua="na">3</SIP_CoS_Value_1_>
<RTP_TOS_DiffServ_Value_1_ ua="na">0xb8</RTP_TOS_DiffServ_Value_1_>
<RTP_CoS_Value_1_ ua="na">6</RTP_CoS_Value_1_>
<Network_Jitter_Level_1_ ua="na">high</Network_Jitter_Level_1_>
<Jitter_Buffer_Adjustment_1_ ua="na">up and down</Jitter_Buffer_Adjustment_1_>
// Auth
<User_ID_1_ ua="na">$channel</User_ID_1_>
<Password_1_ ua="na">$pass</Password_1_>
// Settings
<Default_Ring__1__ ua="rw">No Ring</Default_Ring__1__>
<Dial_Plan_1_ ua="na">$dialplan</Dial_Plan_1_>
// Codecs
<G711u_Enable_1_ ua="na">Yes</G711u_Enable_1_>
<G711a_Enable_1_ ua="na">Yes</G711a_Enable_1_>
<G729a_Enable_1_ ua="na">No</G729a_Enable_1_>
<G723_Enable_1_ ua="na">No</G723_Enable_1_>
<G722_Enable_1_ ua="na">No</G722_Enable_1_>
<L16_Enable_1_ ua="na">No</L16_Enable_1_>
<AMR-WB_Enable_1_ ua="na">No</AMR-WB_Enable_1_>
<G726-16_Enable_1_ ua="na">No</G726-16_Enable_1_>
<G726-24_Enable_1_ ua="na">No</G726-24_Enable_1_>
<G726-32_Enable_1_ ua="na">No</G726-32_Enable_1_>
<G726-40_Enable_1_ ua="na">No</G726-40_Enable_1_>
<Preferred_Codec_1_ ua="na">G711a</Preferred_Codec_1_>
<Use_Pref_Codec_Only_1_ ua="na">No</Use_Pref_Codec_Only_1_>
<Second_Preferred_Codec_1_ ua="na">G711u</Second_Preferred_Codec_1_>
<Third_Preferred_Codec_1_ ua="na">Unspecified</Third_Preferred_Codec_1_>
// Provision
<Provision_Enable ua="na">Yes</Provision_Enable>
<DHCP_Option_To_Use ua="na">66,160,159,150,60,43,125</DHCP_Option_To_Use>
<Upgrade_Rule ua="na">$upgrade_rule</Upgrade_Rule>
<Profile_Rule ua="na">$resync/cisco/cisco.php?mac=$mau&model=$pn</Profile_Rule>
<Profile_Rule_B ua="na"/>
<Profile_Rule_C ua="na"/>
<Profile_Rule_D ua="na"/>
<Resync_On_Reset ua="na">Yes</Resync_On_Reset>
<Resync_Periodic ua="na">3600</Resync_Periodic>
<Forced_Resync_Delay ua="na">1800</Forced_Resync_Delay>
<Resync_Fails_On_FNF ua="na">Yes</Resync_Fails_On_FNF>
<Resync_Error_Retry_Delay ua="na">60</Resync_Error_Retry_Delay>
// Regional
<Dictionary_Server_Script ua="na">$dict</Dictionary_Server_Script>
<Language_Selection ua="na">$deflanguage</Language_Selection>
<Default_Character_Encoding ua="na">UTF-8</Default_Character_Encoding>
<Locale ua="na">ru-RU</Locale>
// Supplementary Services
<Conference_Serv ua="na">$conference_serv</Conference_Serv>
<Attn_Transfer_Serv ua="na">$attn_transfer_serv</Attn_Transfer_Serv>
<Blind_Transfer_Serv ua="na">$blind_transfer_serv</Blind_Transfer_Serv>
<DND_Serv ua="na">$dnd_serv</DND_Serv>
<Block_ANC_Serv ua="na">$block_anc_serv</Block_ANC_Serv>
<Call_Back_Serv ua="na">$call_back_serv</Call_Back_Serv>
<Block_CID_Serv ua="na">$block_cid_serv</Block_CID_Serv>
<Secure_Call_Serv ua="na">$secure_call_serv</Secure_Call_Serv>
<Cfwd_All_Serv ua="na">$cfwd_all_serv</Cfwd_All_Serv>
<Cfwd_Busy_Serv ua="na">$cfwd_busy_serv</Cfwd_Busy_Serv>
<Cfwd_No_Ans_Serv ua="na">$cfwd_no_ans_serv</Cfwd_No_Ans_Serv>
<Paging_Serv ua="na">$paging_serv</Paging_Serv>
<Call_Park_Serv ua="na">$call_park_serv</Call_Park_Serv>
<Call_Pick_Up_Serv ua="na">$call_park_up_serv</Call_Pick_Up_Serv>
<ACD_Login_Serv ua="na">$acd_login_serv</ACD_Login_Serv>
<Group_Call_Pick_Up_Serv ua="na">$group_call_pick_up_serv</Group_Call_Pick_Up_Serv>
<ACD_Ext ua="na">$acd_ext</ACD_Ext>
<Service_Annc_Serv ua="na">$service_annc_serv</Service_Annc_Serv>
//Time
<Time_Zone ua="na">GMT</Time_Zone>
<Ignore_DHCP_Time_Offset ua="na">No</Ignore_DHCP_Time_Offset>
//PHONE
//Disable Line Keys 2-12
<Extension_2_ ua="na">Disabled</Extension_2_>
<Extension_3_ ua="na">Disabled</Extension_3_>
<Extension_4_ ua="na">Disabled</Extension_4_>
<Extension_5_ ua="na">Disabled</Extension_5_>
<Extension_6_ ua="na">Disabled</Extension_6_>
<Extension_7_ ua="na">Disabled</Extension_7_>
<Extension_8_ ua="na">Disabled</Extension_8_>
<Extension_9_ ua="na">Disabled</Extension_9_>
<Extension_10_ ua="na">Disabled</Extension_10_>
<Extension_11_ ua="na">Disabled</Extension_11_>
<Extension_12_ ua="na">Disabled</Extension_12_>
// Enable Line Key 1
<Extension_1_ ua="na">1</Extension_1_>
<Short_Name_1_ ua="na">$state</Short_Name_1_>
// Logo
<Text_Logo ua="na">$textlogo</Text_Logo>
<Select_Background_Picture ua="na">Text Logo</Select_Background_Picture>
<Softkey_Labels_Font ua="na">Auto</Softkey_Labels_Font>
<Screen_Saver_Enable ua="na">No</Screen_Saver_Enable>
// LDAP
<LDAP_Dir_Enable ua="na">Yes</LDAP_Dir_Enable>
<LDAP_Corp_Dir_Name ua="na">$ldap_name</LDAP_Corp_Dir_Name>
<LDAP_Server ua="na">$ldap_server</LDAP_Server>
<LDAP_Auth_Method ua="na">$ldap_auth_method</LDAP_Auth_Method>
<LDAP_Client_DN ua="na">$ldap_dn</LDAP_Client_DN>
<LDAP_Username ua="na">$ldap_user</LDAP_Username>
<LDAP_Password ua="na">$ldap_pwd</LDAP_Password>
<LDAP_Search_Base ua="na">$ldap_search</LDAP_Search_Base>
<LDAP_Last_Name_Filter ua="na">$ldap_sn</LDAP_Last_Name_Filter>
<LDAP_First_Name_Filter ua="na">$ldap_cn</LDAP_First_Name_Filter>
<LDAP_Search_Item_3 ua="na">$ldap_display3</LDAP_Search_Item_3>
<LDAP_Item_3_Filter ua="na">$ldap_filter3</LDAP_Item_3_Filter>
<LDAP_Search_Item_4 ua="na">$ldap_display4</LDAP_Search_Item_4>
<LDAP_item_4_Filter ua="na">$ldap_filter4</LDAP_item_4_Filter>
<LDAP_Display_Attrs ua="na">$ldap_display</LDAP_Display_Attrs>
<LDAP_Number_Mapping ua="na"/>
// USER
// Speed Dial
<Speed_Dial_3 ua="na">$speed_dial3</Speed_Dial_3>
<Speed_Dial_4 ua="na">$speed_dial4</Speed_Dial_4>
<Speed_Dial_5 ua="na">$speed_dial5</Speed_Dial_5>
<Speed_Dial_6 ua="na">$speed_dial6</Speed_Dial_6>
<Speed_Dial_7 ua="na">$speed_dial7</Speed_Dial_7>
<Speed_Dial_8 ua="na">$speed_dial8</Speed_Dial_8>
<Speed_Dial_9 ua="na">$speed_dial9</Speed_Dial_9>
// Call Waiting
<CW_Setting ua="rw">No</CW_Setting>
<Preferred_Audio_Device ua="na">Headset</Preferred_Audio_Device>
// Time
<Time_Format ua="rw">24hr</Time_Format>
<Date_Format ua="rw">day/month</Date_Format>
// LCD
<LCD_Contrast ua="na">5</LCD_Contrast>
<Back_Light_Timer ua="na">20 s</Back_Light_Timer>
</flat-profile>
XML;
?>