- Add Support "Callforward NOANSWER"
- Add Support "park"
This commit is contained in:
		
							parent
							
								
									c0990954e5
								
							
						
					
					
						commit
						3b33d83739
					
				| 
						 | 
				
			
			@ -95,7 +95,7 @@ class Sccp_manager extends \FreePBX_Helpers implements \BMO {
 | 
			
		|||
    private $SCCP_LANG_DICTIONARY = 'be-sccp.jar'; // CISCO LANG file search in /tftp-path 
 | 
			
		||||
    private $pagedata = null;
 | 
			
		||||
    private $sccp_driver_ver = '11.3';             // Ver fore SCCP.CLASS.PHP 
 | 
			
		||||
    public $sccp_manager_ver = '14.0.0.1';
 | 
			
		||||
    public $sccp_manager_ver = '14.0.0.2';
 | 
			
		||||
    private $tftpLang = array();
 | 
			
		||||
//    private $hint_context = '@ext-local'; /// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Get it from Config !!!
 | 
			
		||||
    private $hint_context = array('default' => '@ext-local'); /// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Get it from Config !!!
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -275,6 +275,17 @@ and open the template in the editor. Base Version before all crash :-)
 | 
			
		|||
            </input>
 | 
			
		||||
            <help>Digit Timeout: The amount of time to wait after the second (or subsequent) dialed digit. Override rules are the same as for firstdigittimeout.</help>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item type="IE" id="3">
 | 
			
		||||
            <label>No Answer Ring Time</label>
 | 
			
		||||
            <input>
 | 
			
		||||
                <name>cfwdnoanswer_timeout</name> 
 | 
			
		||||
                <default>30</default>
 | 
			
		||||
                <class>sccp-custom</class>
 | 
			
		||||
                <type>number</type>
 | 
			
		||||
                <options min="0" max="120"></options>
 | 
			
		||||
            </input>
 | 
			
		||||
            <help>Timeout after which callforward noanswer (when active) will be triggered. default is 30 seconds</help>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item type="IE" id="3">
 | 
			
		||||
            <label>Autoanswer Ring Time</label>
 | 
			
		||||
            <input>
 | 
			
		||||
| 
						 | 
				
			
			@ -430,10 +441,18 @@ and open the template in the editor. Base Version before all crash :-)
 | 
			
		|||
            <name>cfwdbusy</name> 
 | 
			
		||||
            <label>Call Forward busy</label>
 | 
			
		||||
            <default>off</default>
 | 
			
		||||
            <button value="on">On</button>
 | 
			
		||||
            <button value="on">On</button>Call Forward
 | 
			
		||||
            <button value="off">Off</button>
 | 
			
		||||
            <help>Activate the callforward busy softkeys. Default is On</help>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item type="IS" id="3" seq="0">
 | 
			
		||||
            <name>cfwdnoanswer</name> 
 | 
			
		||||
            <label>Call Forward NOANSWER</label>
 | 
			
		||||
            <default>off</default>
 | 
			
		||||
            <button value="on">On</button>
 | 
			
		||||
            <button value="off">Off</button>
 | 
			
		||||
            <help>Activate the callforward NOANSWER stuff and softkeys. Default is On</help>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item type="IS" id="5" seq="0">
 | 
			
		||||
            <name>dndFeature</name> 
 | 
			
		||||
            <label>DND Button on Device</label>
 | 
			
		||||
| 
						 | 
				
			
			@ -1174,6 +1193,15 @@ and open the template in the editor. Base Version before all crash :-)
 | 
			
		|||
            <button value="off">Off</button>
 | 
			
		||||
            <help>Transfer allowed</help>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item type="IS" id="1" seq="99">
 | 
			
		||||
            <name>park</name> 
 | 
			
		||||
            <label>Park</label>
 | 
			
		||||
            <default>on</default>
 | 
			
		||||
            <button_d value="NONE">Inherit</button_d>
 | 
			
		||||
            <button value="on">On</button>
 | 
			
		||||
            <button value="off">Off</button>
 | 
			
		||||
            <help>Take a look to the compile how-to. Park stuff is not compiled by default.</help>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item type="IS" id="2" seq="99">
 | 
			
		||||
            <name>cfwdall</name> 
 | 
			
		||||
            <label>Call Forward</label>
 | 
			
		||||
| 
						 | 
				
			
			@ -1192,6 +1220,15 @@ and open the template in the editor. Base Version before all crash :-)
 | 
			
		|||
            <button value="off">Off</button>
 | 
			
		||||
            <help>Activate the callforward busy softkeys. Default is On</help>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item type="IS" id="3" seq="0">
 | 
			
		||||
            <name>cfwdnoanswer</name> 
 | 
			
		||||
            <label>Call Forward NOANSWER</label>
 | 
			
		||||
            <default>NONE</default>
 | 
			
		||||
            <button value="NONE">Inherit</button>
 | 
			
		||||
            <button value="on">On</button>
 | 
			
		||||
            <button value="off">Off</button>
 | 
			
		||||
            <help>Activate the callforward NOANSWER stuff and softkeys. Default is On</help>
 | 
			
		||||
        </item>
 | 
			
		||||
        <item type="IS" id="5" seq="99">
 | 
			
		||||
            <name>dndFeature</name> 
 | 
			
		||||
            <label>DND Button on Device</label>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -261,6 +261,8 @@ function Get_DB_config($sccp_compatible) {
 | 
			
		|||
            'transfer' => array('create' => "enum('on','off') NULL default NULL", 'modify' => "enum('on','off')"),
 | 
			
		||||
            'cfwdall' => array('create' => "enum('on','off') NULL default 'on'", 'modify' => "enum('on','off')"),
 | 
			
		||||
            'cfwdbusy' => array('create' => "enum('on','off') NULL default 'on'", 'modify' => "enum('on','off')"),
 | 
			
		||||
            'cfwdnoanswer' => array('create' => "enum('on','off') NULL default 'on'", 'modify' => "enum('on','off')"),
 | 
			
		||||
            'park' => array('create' => "enum('on','off') NULL default 'on'", 'modify' => "enum('on','off')"),            
 | 
			
		||||
            'directrtp' => array('create' => "enum('on','off') NULL default NULL", 'modify' => "enum('on','off')"),
 | 
			
		||||
            'dndFeature' => array('create' => "enum('on','off') NULL default NULL", 'modify' => "enum('on','off')"),
 | 
			
		||||
            'earlyrtp' => array('create' => "ENUM('immediate','offHook','dialing','ringout','progress','none') NULL default NULL", 'modify' => "ENUM('immediate','offHook','dialing','ringout','progress','none')"),
 | 
			
		||||
| 
						 | 
				
			
			@ -335,6 +337,8 @@ function Get_DB_config($sccp_compatible) {
 | 
			
		|||
        'sccpdevice' => array(
 | 
			
		||||
            'pickupexten' => array('drop' => "yes"),
 | 
			
		||||
            'directed_pickup' => array('drop' => "yes"),
 | 
			
		||||
            'cfwdnoanswer' => array('create' => "enum('on','off') NULL default 'on'", 'modify' => "enum('on','off')"),
 | 
			
		||||
            'park' => array('create' => "enum('on','off') NULL default 'on'", 'modify' => "enum('on','off')"),
 | 
			
		||||
            '_description' => array('rename' => "description"),
 | 
			
		||||
            '_loginname' => array('drop' => "yes"),
 | 
			
		||||
            '_profileid' => array('drop' => "yes"),
 | 
			
		||||
| 
						 | 
				
			
			@ -611,6 +615,10 @@ function InstallDB_updateSchema($db_config) {
 | 
			
		|||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
//        out("<li>" . print_r($sql_update, 1) . "</li>");
 | 
			
		||||
//        out("<li>" . print_r($sql_modify, 1) . "</li>");
 | 
			
		||||
//       die("Can not modify Е" . $tabl_name . " table sql: " . $sql_modify . "n");
 | 
			
		||||
        
 | 
			
		||||
        if (!empty($sql_update)) {
 | 
			
		||||
            $sql_update = 'BEGIN; ' . $sql_update . ' COMMIT;';
 | 
			
		||||
            sql($sql_update);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
<module>
 | 
			
		||||
	<rawname>sccp_manager</rawname>
 | 
			
		||||
	<name>SCCP Manager</name>
 | 
			
		||||
	<version>13.0.0.4M</version>
 | 
			
		||||
	<version>14.0.0.2M</version>
 | 
			
		||||
	<type>setup</type>
 | 
			
		||||
	<category>SCCP Connectivity</category>
 | 
			
		||||
	<publisher>Alex GP</publisher>
 | 
			
		||||
| 
						 | 
				
			
			@ -19,7 +19,7 @@
 | 
			
		|||
	</changelog>
 | 
			
		||||
	<location></location>
 | 
			
		||||
	<supported>
 | 
			
		||||
		<version>13.0.0.1M</version>
 | 
			
		||||
		<version>13.0.0.2M</version>
 | 
			
		||||
	</supported>
 | 
			
		||||
        <info>https://github.com/PhantomVl/sccp_manager</info>
 | 
			
		||||
        <license>GPL</license>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -95,7 +95,7 @@ if (empty($conf_realtime)) {
 | 
			
		|||
// $mysql_info 
 | 
			
		||||
if ($mysql_info['Value'] <= '2000') {
 | 
			
		||||
    $this->info_warning['MySql'] = Array('Increase Mysql Group Concat Max. Length','Step 1: Go to mysql path <br> nano /etc/my.cnf',
 | 
			
		||||
                                          'Step 2: And add the following line below [mysqld] as shown below <br> [mysql] <br>group_concat_max_len = 4096 or more',
 | 
			
		||||
                                          'Step 2: And add the following line below [mysqld] as shown below <br> [mysqld] <br>group_concat_max_len = 4096 or more',
 | 
			
		||||
                                          'Step 3: Save and restart <br> systemctl restart mariadb.service<br> Or <br> service mysqld restart');
 | 
			
		||||
}
 | 
			
		||||
 global $amp_conf;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue