From 17293287fa2a765fbf28e2eef9afa671305f047f Mon Sep 17 00:00:00 2001 From: steve-lad <72376554+steve-lad@users.noreply.github.com> Date: Fri, 4 Jun 2021 17:02:27 +0200 Subject: [PATCH] Correct Default values Correct default values Fix SQL syntax error --- conf/sccpgeneral.xml.v433 | 526 +++++++++++++-------------- sccpManClasses/dbinterface.class.php | 8 +- 2 files changed, 267 insertions(+), 267 deletions(-) diff --git a/conf/sccpgeneral.xml.v433 b/conf/sccpgeneral.xml.v433 index f734102..698f0d6 100644 --- a/conf/sccpgeneral.xml.v433 +++ b/conf/sccpgeneral.xml.v433 @@ -3,34 +3,34 @@ To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. Base Version before all crash :-) - * IE - Text Input + * IE - Text Input * IED - Text Input Dynamic * ITED- Input Dynamic Table * IS - Radio box - * SL - Select element + * SL - Select element * SLA - Select element (from - data ) - * Input element Select SLD - Date format - * SLZ - Time Zone + * Input element Select SLD - Date format + * SLZ - Time Zone * SLTZN - Time Zone List * SLT - TFTP Lang - * SLM - Music on hold + * SLM - Music on hold * SLK - System KeySet - * * Input element Select SLS - System Language - * Input element Select SDM - Model List + * * Input element Select SLS - System Language + * Input element Select SDM - Model List * SDE - Extension List tftp_rewrite * Help elemen HLP - Help Element - + --> - XML_info + XML_info NONE - + @@ -67,7 +67,7 @@ and open the template in the editor. Base Version before all crash :-) Help. - + @@ -76,36 +76,36 @@ and open the template in the editor. Base Version before all crash :-) - servername + servername Vt Servername: This is the type of server - usually, it will be Asterisk. - + - bindaddr + bindaddr 0.0.0.0 sccp-custom - port + port 2000 sccp-custom Bind Address: The address to bind to for SCCP. In general, it should be set to '0.0.0.0'. If you find problems with one-way audio, you can set this to a specific address in the server. Note that '127.0.0.1' is always wrong here. Also note that placing in your external IP address will cause the chan_sccp module to not load. A manual edit of the /etc/asterisk/sccp.conf file will be needed to fix and reload the module. : - + - externip + externip 0.0.0.0 sccp-custom - externhost + externhost sccp-custom @@ -116,7 +116,7 @@ and open the template in the editor. Base Version before all crash :-) / externhost - + @@ -129,16 +129,16 @@ and open the template in the editor. Base Version before all crash :-) Time between Keep Alive checks. Valid range is 60-300 seconds. After much trial-and-error, the minimum (60) seems to work just fine. - nat + nat auto Global NAT support (default Auto) - + - debug + debug NONE @@ -150,7 +150,7 @@ and open the template in the editor. Base Version before all crash :-) Debug: Enable debugging level in SCCP module. - displayconfig + displayconfig sccpgeneral @@ -158,7 +158,7 @@ and open the template in the editor. Base Version before all crash :-) Help! - siptftp + siptftp off @@ -177,7 +177,7 @@ and open the template in the editor. Base Version before all crash :-) - + + Add Allow Range @@ -195,7 +195,7 @@ and open the template in the editor. Base Version before all crash :-) - + + @@ -243,30 +243,30 @@ and open the template in the editor. Base Version before all crash :-) - language + language English SCCP Language: This is the language for your hints and other features of the phone. If you don't have any languages installed or are using a single language, you can leave this blank. - netlang + netlang English_United_States The Network locales allows the phone to play tones (ringing, busy etc.) native to the phone's country. - devlang + devlang English_United_States The user locale allows the phone to display text (menu items, soft keys etc.) native to the phone's language. - - + + - + firstdigittimeout @@ -277,10 +277,10 @@ and open the template in the editor. Base Version before all crash :-) First Digit Timeout: The amount of time after your first digit to start dialing automatically. This can be over-ridden with settings in your dialplan.xml or by using the 'immediate dial' button. - + - digittimeout + digittimeout 8 sccp-custom number @@ -291,7 +291,7 @@ and open the template in the editor. Base Version before all crash :-) - cfwdnoanswer_timeout + cfwdnoanswer_timeout 30 sccp-custom number @@ -302,7 +302,7 @@ and open the template in the editor. Base Version before all crash :-) - autoanswer_ring_time + autoanswer_ring_time 0 sccp-custom number @@ -313,7 +313,7 @@ and open the template in the editor. Base Version before all crash :-) - autoanswer_tone + autoanswer_tone 0x32 sccp-custom @@ -322,7 +322,7 @@ and open the template in the editor. Base Version before all crash :-) - remotehangup_tone + remotehangup_tone 0x32 sccp-custom @@ -331,7 +331,7 @@ and open the template in the editor. Base Version before all crash :-) - transfer_tone + transfer_tone 0x32 sccp-custom @@ -340,14 +340,14 @@ and open the template in the editor. Base Version before all crash :-) - callwaiting_tone + callwaiting_tone 0x2D sccp-custom Call Waiting Tone: The tone played when a call is waiting. If you set this one to '0', you will not get a tone in your current call if a new call comes in, so you might want to disable call waiting for this line instead. - echocancel + echocancel off @@ -355,15 +355,15 @@ and open the template in the editor. Base Version before all crash :-) Echo Cancel: Echo Cancellation (On or Off). - silencesuppression - + silencesuppression + off Silence Suppression: Slience Suppression on the phone. - private + private on @@ -371,7 +371,7 @@ and open the template in the editor. Base Version before all crash :-) Private Calling Enabled: Place a call with privacy Options (no Caller ID) turned on. Needs to be supported in Asterisk to work through SIP and DAHDI trunks. - callanswerorder + callanswerorder oldestfirst @@ -379,7 +379,7 @@ and open the template in the editor. Base Version before all crash :-) Call Answer Order: Which call should be answered first? The most common choice is "oldestfirst", but other orders are supported. - callhistory_answered_elsewhere + callhistory_answered_elsewhere Missed Calls @@ -389,7 +389,7 @@ and open the template in the editor. Base Version before all crash :-) - mwilamp + mwilamp On @@ -400,19 +400,19 @@ and open the template in the editor. Base Version before all crash :-) Set the MWI lamp style when MWI active to on, off, wink, flash or blink - mwioncall + mwioncall off Set the MWI on call. - - + + - directrtp + directrtp off @@ -420,7 +420,7 @@ and open the template in the editor. Base Version before all crash :-) This option set global allow devices to do direct RTP sessions (default Off) - earlyrtp + earlyrtp none Immediate @@ -432,18 +432,18 @@ and open the template in the editor. Base Version before all crash :-) The audio strem will be open in the progress and connected state. Valid options: NONE, progress, offhook, dial, ringout. Default may be Progress. - simulate_enbloc + simulate_enbloc on Use simulated enbloc dialing to speedup connection when dialing while onhook (older phones) - + - cfwdall + cfwdall off @@ -451,7 +451,7 @@ and open the template in the editor. Base Version before all crash :-) Activate the callforward softkeys. Default is On - cfwdbusy + cfwdbusy off Call Forward @@ -459,7 +459,7 @@ and open the template in the editor. Base Version before all crash :-) Activate the callforward busy softkeys. Default is On - cfwdnoanswer + cfwdnoanswer off @@ -467,7 +467,7 @@ and open the template in the editor. Base Version before all crash :-) Activate the callforward NOANSWER stuff and softkeys. Default is On - dndFeature + dndFeature on @@ -475,19 +475,19 @@ and open the template in the editor. Base Version before all crash :-) Do Not Disturb. Default is Off - transfer + transfer on Allow the use of the transfer feature - - + + - ntp_config_enabled + ntp_config_enabled off @@ -497,14 +497,14 @@ and open the template in the editor. Base Version before all crash :-) - ntp_server + ntp_server pool.ntp.org pool.ntp.org NTP Server name or IP - ntp_server_mode + ntp_server_mode unicast @@ -514,12 +514,12 @@ and open the template in the editor. Base Version before all crash :-) Configure NTP Server protocol time synchronization - + - dateformat + dateformat @@ -527,61 +527,61 @@ and open the template in the editor. Base Version before all crash :-) - ntp_timezone + ntp_timezone sccp-custom Date Format: Time zone - - + + - + - vendorconfig_logserver + vendorconfig_logserver sccp-custom Log server Address: x.x.x.x:9001 - + - vendorconfig_daysdisplaynotactive + vendorconfig_daysdisplaynotactive sccp-custom Comma separated list of days that the phone's display is not active and will be automatically turned off after the time specified by "displayIdleTimeout" has elapsed (1 - Sunday, 7 - Saturday) - + - vendorconfig_displayontime + vendorconfig_displayontime sccp-custom Time in HH:MM format to automatically turn on the phone display. - + - vendorconfig_displayonduration + vendorconfig_displayonduration sccp-custom Time duration in HH:MM format to automatically turn off the phone display after it was turned on. - + - vendorconfig_displayidletimeout + vendorconfig_displayidletimeout sccp-custom @@ -590,7 +590,7 @@ and open the template in the editor. Base Version before all crash :-) - vendorconfig_settingsaccess + vendorconfig_settingsaccess @@ -599,7 +599,7 @@ and open the template in the editor. Base Version before all crash :-) Whether a user can access the phone settings. - vendorconfig_videocapability + vendorconfig_videocapability @@ -608,7 +608,7 @@ and open the template in the editor. Base Version before all crash :-) - vendorconfig_webaccess + vendorconfig_webaccess @@ -617,7 +617,7 @@ and open the template in the editor. Base Version before all crash :-) Enable the phone's HTTP server. - vendorconfig_webadmin + vendorconfig_webadmin @@ -626,7 +626,7 @@ and open the template in the editor. Base Version before all crash :-) Enable remote administration using the phone's HTTP server. 8821 model only. - vendorconfig_pcport + vendorconfig_pcport @@ -635,7 +635,7 @@ and open the template in the editor. Base Version before all crash :-) Disable the PC (computer) port - vendorconfig_spantopcport + vendorconfig_spantopcport @@ -644,7 +644,7 @@ and open the template in the editor. Base Version before all crash :-) Forward packets sent and received on the SW (network) port to the PC (computer) port. - vendorconfig_voicevlanaccess + vendorconfig_voicevlanaccess @@ -653,7 +653,7 @@ and open the template in the editor. Base Version before all crash :-) Allow devices connected to the PC (computer) port to access the voice VLAN. - vendorconfig_enablecdpswport + vendorconfig_enablecdpswport @@ -662,7 +662,7 @@ and open the template in the editor. Base Version before all crash :-) Enable Cisco Discovery Protocol on the SW (network) port. - vendorconfig_enablecdppcport + vendorconfig_enablecdppcport @@ -671,7 +671,7 @@ and open the template in the editor. Base Version before all crash :-) Enable Cisco Discovery Protocol on the PC (computer) port. - vendorconfig_enablelldpswport + vendorconfig_enablelldpswport @@ -680,7 +680,7 @@ and open the template in the editor. Base Version before all crash :-) Enable Link Layer Discovery Protocol on the SW (network) port. - vendorconfig_enablelldppcport + vendorconfig_enablelldppcport @@ -688,21 +688,21 @@ and open the template in the editor. Base Version before all crash :-) Enable Link Layer Discovery Protocol on the PC (computer) port. - - - - + + + + - + Help_srst You can also configure a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list. This proves especially useful in a remote site configuration where the phones and Asterisk are connected over a WAN network. SRST provides users with fallback support for the IP phones that cannot access the primary, secondary, or tertiary Asterisk Node in the CallManager List because of an Asterisk Node failure or loss of connectivity across the WAN. For the remote sites attached to multiple-service routers across the WAN, SRST ensures that your remote users receive continuous (although minimal) service by providing call handling support directly from the SRST router. When IP phones lose contact with primary, secondary, and tertiary Asterisk Nodes (CM's), they must establish a connection to a local SRST router to sustain the call-processing capability necessary to place and receive calls. The IP phone retains the IP address of the local SRST router as a default router in the Network Configuration area of the Settings menu. The Settings menu supports a maximum of five default router entries; however, the cnf.xml accommodates a maximum of three entries. When a secondary Asterisk Node is not available on the network, the local SRST Router's IP address is retained as the standby connection for Asterisk Node during normal operation. - srst_Option + srst_Option disable @@ -711,7 +711,7 @@ and open the template in the editor. Base Version before all crash :-) You enabled/configured a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list. - srst_userModifiable + srst_userModifiable false @@ -719,7 +719,7 @@ and open the template in the editor. Base Version before all crash :-) The user can change the personal SRST configuration on the device - srst_isSecure + srst_isSecure false @@ -730,7 +730,7 @@ and open the template in the editor. Base Version before all crash :-) - srst_Name + srst_Name Enable You enabled configure a Survivable Remote Site Telephony (SRST) reference as the last device in the CallManager(CM) list. @@ -746,7 +746,7 @@ and open the template in the editor. Base Version before all crash :-) - + Add Server @@ -762,40 +762,40 @@ and open the template in the editor. Base Version before all crash :-) - + Add Server Help. - + - dev_servicesURL + dev_servicesURL - + - dev_secureservicesURL + dev_secureservicesURL - + - dev_authenticationURL + dev_authenticationURL @@ -805,7 +805,7 @@ and open the template in the editor. Base Version before all crash :-) - dev_secureauthenticationURL + dev_secureauthenticationURL @@ -886,7 +886,7 @@ and open the template in the editor. Base Version before all crash :-) - + @@ -897,7 +897,7 @@ and open the template in the editor. Base Version before all crash :-) - + @@ -909,58 +909,58 @@ and open the template in the editor. Base Version before all crash :-) - - - + + + - + - sccp_tos + sccp_tos 0x68 sccp-custom - sccp_cos + sccp_cos 0x4 sccp-custom SCCP Type Of Service / Class Of Service: SCCP Type or Class of Service - this is modifiable, but don't. - + - audio_tos + audio_tos 0xB8 sccp-custom - audio_cos + audio_cos 0x6 sccp-custom Audio Type Of Service / Class Of Service: Audio Type or Class of Service - this is modifiable, but don't. - + - video_tos + video_tos 0x88 sccp-custom - video_cos + video_cos 0x5 sccp-custom Video Type Of Service / Class Of Service: Video Type or Class of Service - this is modifiable, but don't. - + Help_id2 - + Setting the hotline Feature on a device, will make it connect to a predefined extension as soon as the Receiver is picked up or the "New Call" Button is pressed. No number has to be given. This works even on devices which have no entry in the config file or realtime database. The hotline function can be used in : @@ -1001,11 +1001,11 @@ and open the template in the editor. Base Version before all crash :-) hotline - + - + - hotline_enabled + hotline_enabled off @@ -1015,7 +1015,7 @@ and open the template in the editor. Base Version before all crash :-) - hotline_extension + hotline_extension *111 sccp-custom @@ -1024,7 +1024,7 @@ and open the template in the editor. Base Version before all crash :-) - hotline_label + hotline_label Hot Line sccp-custom @@ -1033,20 +1033,20 @@ and open the template in the editor. Base Version before all crash :-) - hotline_context + hotline_context default sccp-custom Hotline Context: This is the context through which the phone will connect. It should probably match your other contest. The default is "from-internal" but "from-internal-xfer" would also make sense by limiting the options for the person using the phone. - + - context + context from-internal sccp-custom @@ -1055,7 +1055,7 @@ and open the template in the editor. Base Version before all crash :-) - regcontext + regcontext sccpregistration sccp-custom @@ -1064,7 +1064,7 @@ and open the template in the editor. Base Version before all crash :-) - directed_pickup_context + directed_pickup_context sccp-custom @@ -1074,16 +1074,16 @@ and open the template in the editor. Base Version before all crash :-) - pickupgroup + pickupgroup sccp-custom Context where direct pickup search for extensions. if not set current contect will be use. - + - pickup_modeanswer + pickup_modeanswer off @@ -1091,7 +1091,7 @@ and open the template in the editor. Base Version before all crash :-) Directed Pickup Mode (Answer): If a call is sent with the "directed pickup" flag, the phone will answer when set to "Yes". - transfer_on_hangup + transfer_on_hangup off @@ -1101,14 +1101,14 @@ and open the template in the editor. Base Version before all crash :-) - dial_template + dial_template NONE sccp-custom Help. - autoselectline_enabled + autoselectline_enabled off @@ -1116,7 +1116,7 @@ and open the template in the editor. Base Version before all crash :-) Enables and Disables auto line selection. - meetme + meetme off @@ -1126,7 +1126,7 @@ and open the template in the editor. Base Version before all crash :-) - meetmeopts + meetmeopts qxd sccp-custom @@ -1134,7 +1134,7 @@ and open the template in the editor. Base Version before all crash :-) - autocall_select + autocall_select off @@ -1142,7 +1142,7 @@ and open the template in the editor. Base Version before all crash :-) - backgroundImageAccess + backgroundImageAccess true @@ -1150,7 +1150,7 @@ and open the template in the editor. Base Version before all crash :-) I'm guessing on this one, but on some devices, the background image on the display can be modified at the device. I think this is the thing that allows that to take. - phonePersonalization + phonePersonalization 0 @@ -1158,7 +1158,7 @@ and open the template in the editor. Base Version before all crash :-) Phone personalization needs to be set to allow the server to push background or ringtones to the phone in the SEPXXXXXXXXXX.cnf.xml of each phone: - callLogBlfEnabled + callLogBlfEnabled 2 @@ -1167,7 +1167,7 @@ and open the template in the editor. Base Version before all crash :-) - musicclass + musicclass NONE form-control @@ -1178,7 +1178,7 @@ and open the template in the editor. Base Version before all crash :-) - + Help_tftp_rewrite This section is responsible for the modes of operation of external services: tftp http. * off - Flat model cisco. All data is in the directory /tftproot @@ -1190,7 +1190,7 @@ and open the template in the editor. Base Version before all crash :-) provision_hide - tftp_path + tftp_path /tftpboot sccp-custom @@ -1200,7 +1200,7 @@ and open the template in the editor. Base Version before all crash :-) provision_show - tftp_rewrite_path + tftp_rewrite_path /tftpboot sccp-custom @@ -1208,7 +1208,7 @@ and open the template in the editor. Base Version before all crash :-) - tftp_rewrite + tftp_rewrite off pro @@ -1222,7 +1222,7 @@ and open the template in the editor. Base Version before all crash :-) - devicetable + devicetable sccpdevice @@ -1233,7 +1233,7 @@ and open the template in the editor. Base Version before all crash :-) - linetable + linetable sccpline sccp-custom @@ -1241,7 +1241,7 @@ and open the template in the editor. Base Version before all crash :-) - createlangdir + createlangdir no @@ -1250,28 +1250,28 @@ and open the template in the editor. Base Version before all crash :-) - system_rouminguser + system_rouminguser no Experemental Function Roaming Users - + - + - mac + mac 000000000 sccp-custom The MAC address of the phone. You must specify 12 characters in the format XXXX.XXXX.XXXX or XX-XX-XX-XX-XX-XX or XXXXXXXXXXXX - + type @@ -1282,7 +1282,7 @@ and open the template in the editor. Base Version before all crash :-) - addon + addon NONE hw_select sccp-custom @@ -1295,13 +1295,13 @@ and open the template in the editor. Base Version before all crash :-) - mac + mac 000000000 sccp-custom The MAC address of the phone - + type @@ -1315,7 +1315,7 @@ and open the template in the editor. Base Version before all crash :-) - type + type 79XX sccp-custom @@ -1325,7 +1325,7 @@ and open the template in the editor. Base Version before all crash :-) - addon + addon NONE sccp-custom @@ -1336,11 +1336,11 @@ and open the template in the editor. Base Version before all crash :-) - + - _description + _description 000000000 sccp-custom @@ -1349,28 +1349,28 @@ and open the template in the editor. Base Version before all crash :-) - softkeyset + softkeyset default System Default Softkey - tzoffset + tzoffset 00 Time Zone offset - netlang + netlang English_United_States The Network locales allows the phone to play tones (ringing, busy etc.) native to the phone's country. - devlang + devlang Russian_Russia The user locale allows the phone to display text (menu items, soft keys etc.) native to the phone's language. @@ -1378,7 +1378,7 @@ and open the template in the editor. Base Version before all crash :-) - backgroundImage + backgroundImage sccp-custom @@ -1387,40 +1387,40 @@ and open the template in the editor. Base Version before all crash :-) - ringtone + ringtone sccp-custom The ringtone that the phone will default to. Can be overridden in the phone. The files RINGLIST.XML provice the basic phone ring tones, while DISTINCTIVERINGLIST.XML defines the list of possible ring tones for your other line types. They, along with the actual 'raw' ringtones, are stored in the /tftpboot/ringtones directory with the rest of the config files. - + - mac + mac 000000000 sccp-custom - + - transfer + transfer - NONE - + off + Transfer allowed - park + park on Inherit @@ -1429,58 +1429,58 @@ and open the template in the editor. Base Version before all crash :-) Take a look to the compile how-to. Park stuff is not compiled by default. - cfwdall + cfwdall - NONE - + off + Activate the callforward softkeys. Default is On - cfwdbusy + cfwdbusy - NONE - + off + Activate the callforward busy softkeys. Default is On - cfwdnoanswer + cfwdnoanswer - NONE - + on + Activate the callforward NOANSWER stuff and softkeys. Default is On - dndFeature + dndFeature - NONE - + off + Do Not Disturb. Default is Off - conf_allow + conf_allow on off Allow the use of conference - + - - + + - + - useRedialMenu + useRedialMenu off @@ -1488,7 +1488,7 @@ and open the template in the editor. Base Version before all crash :-) You can specifying 'useRedialMenu = yes' in the sccp.conf device section and the redial softkey will cause the "placed calls" list instead of immediately calling the last dialed number. - force_dtmfmode + force_dtmfmode auto @@ -1497,29 +1497,29 @@ and open the template in the editor. Base Version before all crash :-) Some phone models with bad firmware do send dtmf in a messed up order and need to be forced to skinny mode. - mwioncall + mwioncall - NONE - + on + Set the MWI on call. - - - mwilamp + + + mwilamp - NONE - + on + Set the MWI lamp style when MWI active to on, off, wink, flash or blink - + - callhistory_answered_elsewhere + callhistory_answered_elsewhere Missed Calls @@ -1528,14 +1528,14 @@ and open the template in the editor. Base Version before all crash :-) - + - + conf_hide - conf_play_general_announce + conf_play_general_announce on @@ -1543,7 +1543,7 @@ and open the template in the editor. Base Version before all crash :-) Playback General Announcements (like: 'You are Entering/Leaving the conference') - conf_play_part_announce + conf_play_part_announce on @@ -1551,7 +1551,7 @@ and open the template in the editor. Base Version before all crash :-) Playback Personal/Participant Announcements, (like: 'You have been muted / You have been kicked') - conf_mute_on_entry + conf_mute_on_entry off @@ -1559,7 +1559,7 @@ and open the template in the editor. Base Version before all crash :-) Mute new participants from the start - conf_show_conflist + conf_show_conflist on @@ -1568,7 +1568,7 @@ and open the template in the editor. Base Version before all crash :-) - conf_music_on_hold_class + conf_music_on_hold_class default form-control @@ -1578,41 +1578,41 @@ and open the template in the editor. Base Version before all crash :-) - custom_network_acc + custom_network_acc permit Help. - + - custom_network_type + custom_network_type ipv4 Help. - + - custom_network_v + custom_network_v sccp-custom - custom_network_m + custom_network_m sccp-custom Help. - + - + @@ -1629,7 +1629,7 @@ and open the template in the editor. Base Version before all crash :-) + Add Deny network All RFC 1918 addresses are local networks. Should always be at least '0.0.0.0/0.0.0.0'. - + @@ -1646,18 +1646,18 @@ and open the template in the editor. Base Version before all crash :-) - - + + + Add Allow network Allow network settings. Blank fields will be ignored used Network 0.0.0.0. - nat + nat - NONE - + auto + @@ -1665,17 +1665,17 @@ and open the template in the editor. Base Version before all crash :-) - directrtp + directrtp - NONE - Auto - + off + Auto + This option allow devices to do direct RTP sessions (default Off) - earlyrtp + earlyrtp NONE @@ -1692,18 +1692,18 @@ and open the template in the editor. Base Version before all crash :-) - dialtemplate_name + dialtemplate_name name_ruls form-control Help. - + - + Help_id1 Specifies a pattern to match dialed digits against. Note: TEMPLATE must be in uppercase. Rules: @@ -1788,7 +1788,7 @@ and open the template in the editor. Base Version before all crash :-) - + empty Bellcore-Alerting Bellcore-Inside @@ -1817,11 +1817,11 @@ and open the template in the editor. Base Version before all crash :-) CallWaiting-4 Allow network settings. Blank fields will be ignored used Network 0.0.0.0. - + - + - @@ -1829,18 +1829,18 @@ and open the template in the editor. Base Version before all crash :-) - id + id 000000000 sccp-custom Help! - + - description + description Help! @@ -1848,7 +1848,7 @@ and open the template in the editor. Base Version before all crash :-) - pin + pin Help! @@ -1856,13 +1856,13 @@ and open the template in the editor. Base Version before all crash :-) - password + password Help! - roaminglogin + roaminglogin off @@ -1871,7 +1871,7 @@ and open the template in the editor. Base Version before all crash :-) - auto_logout + auto_logout off @@ -1881,20 +1881,20 @@ and open the template in the editor. Base Version before all crash :-) - homedevice + homedevice NONE sccp-custom Help! - - work_time + work_time off @@ -1905,7 +1905,7 @@ and open the template in the editor. Base Version before all crash :-) - work_group + work_group Help! @@ -1913,25 +1913,25 @@ and open the template in the editor. Base Version before all crash :-) - time_extend + time_extend 30 Help! - + - mac + mac 000000000 sccp-custom The MAC address of the phone. You must specify 12 characters in the format XXXX.XXXX.XXXX or XX-XX-XX-XX-XX-XX or XXXXXXXXXXXX - + type @@ -1942,7 +1942,7 @@ and open the template in the editor. Base Version before all crash :-) - addon + addon NONE hw_select sccp-custom @@ -1951,19 +1951,19 @@ and open the template in the editor. Base Version before all crash :-) - + - _dialrules + _dialrules dialplan Dial templates control what number patterns are valid and how many seconds to wait for extra digits before dialing. - + - + setvar @@ -1974,7 +1974,7 @@ and open the template in the editor. Base Version before all crash :-) + - + - + diff --git a/sccpManClasses/dbinterface.class.php b/sccpManClasses/dbinterface.class.php index ae366d2..2a5e071 100644 --- a/sccpManClasses/dbinterface.class.php +++ b/sccpManClasses/dbinterface.class.php @@ -83,11 +83,11 @@ class dbinterface } elseif (!empty($data['type'])) { switch ($data['type']) { case "cisco-sip": - $stmts = $dbh->prepare('SELECT ' . $fld . ' FROM sccpdeviceconfig WHERE TYPE LIKE \'%-sip\' ORDER BY name'); + $stmts = $dbh->prepare("SELECT {$fld} FROM sccpdeviceconfig WHERE TYPE LIKE '%-sip' ORDER BY name"); break; case "cisco": // Fall through to default intentionally default: - $stmts = $dbh->prepare('SELECT ' . $fld . ' FROM sccpdeviceconfig WHERE TYPE not LIKE \'%-sip\' ORDER BY name'); + $stmts = $dbh->prepare("SELECT {$fld} FROM sccpdeviceconfig WHERE TYPE not LIKE '%-sip' ORDER BY name"); break; } } else { //no filter and no name provided - return all @@ -219,10 +219,10 @@ class dbinterface $stmt = $dbh->prepare("SELECT {$sel_inf} FROM sccpdevmodel WHERE (dns > 0) and (enabled = 1) ORDER BY model"); break; case 'ciscophones': - $stmt = $dbh->prepare("SELECT {$sel_inf} FROM sccpdevmodel WHERE (dns > 0) and (enabled = 1) AND vendor NOT LIKE \'%-sip\' ORDER BY model"); + $stmt = $dbh->prepare("SELECT {$sel_inf} FROM sccpdevmodel WHERE (dns > 0) and (enabled = 1) AND vendor NOT LIKE '%-sip' ORDER BY model"); break; case 'sipphones': - $stmt = $dbh->prepare("SELECT {$sel_inf} FROM sccpdevmodel WHERE (dns > 0) and (enabled = 1) AND vendor LIKE \'%-sip\' ORDER BY model"); + $stmt = $dbh->prepare("SELECT {$sel_inf} FROM sccpdevmodel WHERE (dns > 0) and (enabled = 1) AND vendor LIKE '%-sip' ORDER BY model"); break; case 'all': // Fall through to default default: