Show
Ignore:
Timestamp:
08/03/11 12:09:39 (2 years ago)
Author:
mickecarlsson
Message:

Really fix googlevoice so it will work with FreePBX 2.9. Thank you mbrevda and tm1000

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contributed_modules/modules/googlevoice/functions.inc.php

    r12292 r12353  
    2525  require_once("functions.inc.php"); 
    2626  require_once("extensions.class.php"); 
    27   } else { 
    28         //We are on a FreePBX 2.9 system 
    29         require_once("libraries/extensions.class.php"); 
    30 
    31  
    32 class ext_senddtmf extends extension { 
    33   var $digits; 
    34   function ext_senddtmf($digits) { 
    35     $this->digits = $digits; 
    36   }  
    37   function output() { 
    38     return 'SendDTMF('.$this->digits.')'; 
     27
     28 
     29function googlevoice_hookGet_config($engine) { 
     30  global $ext;   
     31  if (!method_exists($ext, 'ext_senddtmf')) {    
     32    class ext_senddtmf extends extension { 
     33      var $digits; 
     34      function ext_senddtmf($digits) { 
     35        $this->digits = $digits; 
     36      }  
     37      function output() { 
     38        return 'SendDTMF('.$this->digits.')'; 
     39      } 
     40    } 
    3941  } 
    4042} 
  • contributed_modules/modules/googlevoice/module.xml

    r12293 r12353  
    22  <rawname>googlevoice</rawname> 
    33  <name>Google Voice</name> 
    4   <version>0.1.0</version> 
     4  <version>0.1.1</version> 
    55  <publisher>Marcus Brown</publisher> 
    66  <license>GPLv2+</license> 
     
    1111  </description> 
    1212  <changelog> 
     13    *0.1.1* really fix the FreePBX 2.9 issue 
    1314    *0.1.0* make the module work for FreePBX 2.9 
    1415    *0.0.9* changed trunk name to the phonenum