Show
Ignore:
Timestamp:
05/29/09 14:01:54 (3 years ago)
Author:
seanmh
Message:

1.0.0 Added backward compatibility support for 2.0 rev 1104.

Fixed bug in which a flawed context would prevent orphaned parked calls from ringing back to the parking extension if parked via the panel.
Made debug menu always visible.
Added server debug menu.
Debug logs now show on main module page.
Multiple debug options can now be set at once.
Added database column checks in installation script to handle module upgrades.
Added default FreePBX page context to configuration.
Added admin username and password fields to the main module page.
Added originate timeout field to main module page.
Added auto reload and enable page status checkboxes to main module page.
Added global Jabber connection configuration fields on main module page.
Added email and cell phone fields to extension page.
Added Jabber connection configuration override fields to extension page.
Added Jabber username and password fields to extension page.
Added auto answer checkbox to extension page.
Modified database debug tables to account for new tables and columns.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contributed_modules/modules/isymphony/isymphony-php-library/isymphony.php

    r6438 r7772  
    44 *Author       : Michael Yara 
    55 *Created      : June 15, 2008 
    6  *Last Updated : August 22, 2008 
    7  *History      : 0.2  
     6 *Last Updated : May 27, 2009 
     7 *History      : 0.4  
    88 *Purpose      : Contains all functions used to interact with the iSymphony configuration. 
    99 *Copyright    : 2008 HEHE Enterprises, LLC 
     
    2828$ISERROR = ""; 
    2929 
     30//Tracker variables for improved running time 
     31$IN_LOCATION = false; 
     32$IN_TENNAT = false; 
     33 
    3034//Connection methods------------------------------------------------------------------------------- 
    3135/*############################################### 
     
    4347  if(($SOCKET = socket_create(AF_INET, SOCK_STREAM, 0)) && (socket_connect($SOCKET, $HOST, $PORT))) {    
    4448     
    45     //Check version to modify property arrays if necessary 
    46     //Modify for 2.1     
    47     if((($versionResult = getiSymphonyServerVersion()) !== false) && (strstr($versionResult, "2.1") !== false)) { 
    48       isymphony_modify_property_arrays_2_1(); 
     49    //Check version and revision number to modify property arrays if necessary 
     50    if((($versionResult = getiSymphonyServerVersion()) !== false) && (($revisionResult = getiSymphonyServerRevision()) !== false)) { 
     51       
     52      //Modify for 2.1 
     53      if((strstr($versionResult, "2.1") !== false)) { 
     54         
     55        //Modify for rev 1493 and above 
     56        if($revisionResult >= 1493) { 
     57          isymphony_modify_property_arrays_2_1_1493(); 
     58         
     59        //Modify for rev 1489 through 1493 
     60        } else if($revisionResult >= 1489) { 
     61          isymphony_modify_property_arrays_2_1_1489(); 
     62           
     63        //Modify for post rev 1489   
     64        } else { 
     65          isymphony_modify_property_arrays_2_1(); 
     66        } 
     67      } 
    4968    } 
    50  
    5169    return true; 
    5270  } else { 
     
    6381function iSymphonyDisconnect() { 
    6482   
    65   global $SOCKET; 
     83  global $SOCKET, $IN_LOCATION, $IN_TENNAT; 
     84   
     85  $IN_LOCATION = false; 
     86  $IN_TENNAT = false; 
    6687   
    6788  if(($SOCKET !== null) && ($SOCKET)) { 
     
    19341955 
    19351956/*############################################### 
     1957 * Gets the server revision 
     1958 * Takes: nothing 
     1959 * Returns: server revision if successful or false if error occurred   
     1960 */  
     1961function getiSymphonyServerRevision() { 
     1962   
     1963  if(($serverVersion = getiSymphonyServerVersion()) === false) { 
     1964    return false; 
     1965  } 
     1966   
     1967  //Parse our server revision number from server version 
     1968  $serverRevison = ereg_replace("[^0-9]+", '', substr($serverVersion, strpos($serverVersion, "rev"))); 
     1969   
     1970  //If revision number is not numeric something went wrong in the parsing. If so return false. 
     1971  if(!is_numeric($serverRevison)) { 
     1972    $ISERROR = "Error: Parsed server version was non numeric."; 
     1973    return false; 
     1974  } 
     1975   
     1976  return $serverRevison; 
     1977} 
     1978 
     1979/*############################################### 
    19361980 * Shutdown the iSymphony server 
    19371981 * Takes: nothing