Changeset 3899

Show
Ignore:
Timestamp:
04/05/07 10:05:13 (2 years ago)
Author:
p_lindheimer
Message:

Remove hardcoded paths to voicemail.conf

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/voicemail/functions.inc.php

    r3359 r3899  
    313313 
    314314function voicemail_saveVoicemail($vmconf) { 
     315        global $amp_conf; 
     316 
    315317        // just in case someone tries to be sneaky and not call getVoicemail() first.. 
    316318        if ($vmconf == null) die('Error: Trying to write null voicemail file! I refuse to contiune!'); 
    317319         
    318320        // yes, this is hardcoded.. is this a bad thing? 
    319         write_voicemailconf("/etc/asterisk/voicemail.conf", $vmconf, $section); 
     321        write_voicemailconf(rtrim($amp_conf["ASTETCDIR"],"/")."/voicemail.conf", $vmconf, $section); 
    320322} 
    321323 
    322324function voicemail_getVoicemail() { 
     325        global $amp_conf; 
     326 
    323327        $vmconf = null; 
    324328        $section = null; 
    325329         
    326330        // yes, this is hardcoded.. is this a bad thing? 
    327         parse_voicemailconf("/etc/asterisk/voicemail.conf", $vmconf, $section); 
     331        parse_voicemailconf(rtrim($amp_conf["ASTETCDIR"],"/")."/voicemail.conf", $vmconf, $section); 
    328332         
    329333        return $vmconf; 
  • modules/branches/2.2/voicemail/module.xml

    r3699 r3899  
    22        <rawname>voicemail</rawname> 
    33        <name>Voicemail</name> 
    4         <version>1.6.1</version> 
     4        <version>1.6.2</version> 
    55        <changelog> 
    6            *1.6.1* Bump version to fix existing extensions with disabled voicemail #1697 
    7            *1.6* Re-Fix 1.5.2, bump version for 2.2rc2 release. 
    8             *1.5.3* Fix for vm Javascript sanity checks only working in DevAndUser mode. 
    9             *1.5.2* Fix vm not appearing in DeviceAndUser mode 
    10            *1.5.1* Fix for MWI not working 
    11             *1.5* Fix issue with vm options not being saved on creation of extension 
    12             *1.4.2* Change category to Basic 
    13             *1.4.1* Fixed radio button defaults to 'no' from false so they work 
    14             *1.4* First release for 2.2. Fix inability to create voicemail box 
     6                *1.6.2* Remove hardcoded paths to voicemail.conf 
     7                *1.6.1* Bump version to fix existing extensions with disabled voicemail #1697 
     8                *1.6* Re-Fix 1.5.2, bump version for 2.2rc2 release. 
     9                *1.5.3* Fix for vm Javascript sanity checks only working in DevAndUser mode. 
     10                *1.5.2* Fix vm not appearing in DeviceAndUser mode 
     11                *1.5.1* Fix for MWI not working 
     12                *1.5* Fix issue with vm options not being saved on creation of extension 
     13                *1.4.2* Change category to Basic 
     14                *1.4.1* Fixed radio button defaults to 'no' from false so they work 
     15                *1.4* First release for 2.2. Fix inability to create voicemail box 
    1516        </changelog> 
    1617        <description>This module allows you to configure Voicemail for a user or extension</description> 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads