Changeset 3899
- Timestamp:
- 04/05/07 10:05:13 (2 years ago)
- Files:
-
- modules/branches/2.2/voicemail/functions.inc.php (modified) (1 diff)
- modules/branches/2.2/voicemail/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.2/voicemail/functions.inc.php
r3359 r3899 313 313 314 314 function voicemail_saveVoicemail($vmconf) { 315 global $amp_conf; 316 315 317 // just in case someone tries to be sneaky and not call getVoicemail() first.. 316 318 if ($vmconf == null) die('Error: Trying to write null voicemail file! I refuse to contiune!'); 317 319 318 320 // 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); 320 322 } 321 323 322 324 function voicemail_getVoicemail() { 325 global $amp_conf; 326 323 327 $vmconf = null; 324 328 $section = null; 325 329 326 330 // 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); 328 332 329 333 return $vmconf; modules/branches/2.2/voicemail/module.xml
r3699 r3899 2 2 <rawname>voicemail</rawname> 3 3 <name>Voicemail</name> 4 <version>1.6. 1</version>4 <version>1.6.2</version> 5 5 <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 15 16 </changelog> 16 17 <description>This module allows you to configure Voicemail for a user or extension</description>
