Show
Ignore:
Timestamp:
09/14/11 14:44:34 (2 years ago)
Author:
tm1000
Message:

Fixed updating password issue and added priority=1

Files:

Legend:

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

    r12441 r12505  
    9494      $output .= "[".$username."]\ntype=client\nserverhost=talk.google.com\n"; 
    9595      $output .= "username=".$address."/Talk\nsecret=".$password."\n"; 
    96       $output .= "port=5222\nusetls=yes\nusesasl=yes\nstatus=Available\n"; 
     96      $output .= "port=5222\npriority=1\nusetls=yes\nusesasl=yes\nstatus=Available\n"; 
    9797      $output .= "statusmessage=\"No Information Available\"\n"; 
    9898      $output .= "timeout=100\nkeepalive=yes\n\n"; 
     
    345345    } 
    346346 
    347   $sql = "UPDATE googlevoice 
    348       SET username = '?', password = '?' 
    349           WHERE phonenum = '?'"; 
     347  $sql = "UPDATE googlevoice SET username = '".$username."', password = '".$password."' WHERE phonenum = '".$phonenum."'"; 
    350348    $params = array($username, $password, $phonenum); 
    351   $result = $db->getAssoc($sql,false,$params); 
     349  $result = $db->query($sql); 
    352350  if (DB::IsError($result) || empty($result)) { 
    353351    return false; 
  • contributed_modules/modules/googlevoice/module.xml

    r12444 r12505  
    22  <rawname>googlevoice</rawname> 
    33  <name>Google Voice</name> 
    4   <version>0.5.0</version> 
     4  <version>0.6.0</version> 
    55  <publisher>Marcus Brown</publisher> 
    66  <license>GPLv2+</license> 
     
    1111  </description> 
    1212  <changelog> 
    13                 *0.5.0* Added Ability to add Google Apps Voice Accounts. Adding Trunk Prepends instead of just Route Prepends 
     13    *0.6.0* Added Priority=1, Fixed password/username not updating on edit issue 
     14        *0.5.0* Added Ability to add Google Apps Voice Accounts. Adding Trunk Prepends instead of just Route Prepends 
    1415    *0.1.1* really fix the FreePBX 2.9 issue 
    1516    *0.1.0* make the module work for FreePBX 2.9 
     
    3132    <googlevoice>Google Voice</googlevoice> 
    3233  </menuitems> 
    33   <location>contributed_modules/release/googlevoice-0.5.0.tgz</location> 
    34   <md5sum>80d0e12fd2a4bc11de1734952067e673</md5sum> 
     34  <location>contributed_modules/release/googlevoice-0.1.1.tgz</location> 
     35  <md5sum>b3b4a952c5bfd4079fc3c09d7c8d8412</md5sum> 
    3536</module>