Changeset 4294
- Timestamp:
- 07/02/07 01:08:58 (6 years ago)
- Files:
-
- modules/branches/2.2 (modified) (1 prop)
- modules/branches/2.2/recordings/module.xml (modified) (1 diff)
- modules/branches/2.2/recordings/page.recordings.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.2
- Property svnmerge-integrated changed from /modules/branches/2.1:1-2166,2289,2414,2419,2424,2430,2449,2458,2462,2476 /modules/branches/2.3:1-3256,4102,4232,4251 to /modules/branches/2.1:1-2166,2289,2414,2419,2424,2430,2449,2458,2462,2476 /modules/branches/2.3:1-3256,4102,4227,4232,4251
modules/branches/2.2/recordings/module.xml
r4255 r4294 2 2 <rawname>recordings</rawname> 3 3 <name>Recordings</name> 4 <version>3.3. 3</version>4 <version>3.3.4</version> 5 5 <type>setup</type> 6 6 <category>Internal Options & Configuration</category> 7 7 <description>Creates and manages system recordings, used by many other modules (eg, IVR).</description> 8 8 <changelog> 9 *3.3.4* fixed bug not able to save recorded message from *77 featurecode, backported for FreePBX 2.3 9 10 *3.3.3* #2032 remove recordings as a destination, no purpose (use annoucement module) 10 11 *3.3.2* Fix mp3 upload bug (#1764) modules/branches/2.2/recordings/page.recordings.php
r3773 r4294 21 21 $usersnum = isset($_REQUEST['usersnum'])?$_REQUEST['usersnum']:''; 22 22 $sysrec = isset($_REQUEST['sysrec'])?$_REQUEST['sysrec']:''; 23 $suffix = isset($_REQUEST['suffix'])?$_REQUEST['suffix']:'wav'; 23 $suffix = isset($_REQUEST['suffix']) && trim($_REQUEST['suffix'] != "") ? $_REQUEST['suffix'] : 'wav'; 24 25 $astsnd = isset($asterisk_conf['astvarlibdir'])?$asterisk_conf['astvarlibdir']:'/var/lib/asterisk'; 26 $astsnd .= "/sounds/"; 27 24 28 if (empty($usersnum)) { 25 29 $dest = "unnumbered-"; … … 48 52 break; 49 53 case "newsysrec": 50 $astsnd = isset($asterisk_conf['astvarlibdir'])?$asterisk_conf['astvarlibdir']:'/var/lib/asterisk';51 $astsnd .= "/sounds/";52 54 $sysrecs = recordings_readdir($astsnd, strlen($astsnd)+1); 53 55 if (recordings_add($sysrecs[$sysrec], $sysrecs[$sysrec])) { … … 63 65 // Clean up the filename, take out any nasty characters 64 66 $filename = escapeshellcmd(strtr($rname, '/ ', '__')); 65 if (!file_exists($ recordings_astsnd_path."custom")) {66 if (!mkdir($ recordings_astsnd_path."custom", 0775)) {67 echo '<div class="content"><h5>'._("Failed to create").' '.$ recordings_astsnd_path.'custom'.'</h5>';67 if (!file_exists($astsnd."custom")) { 68 if (!mkdir($astsnd."custom", 0775)) { 69 echo '<div class="content"><h5>'._("Failed to create").' '.$astsnd.'custom'.'</h5>'; 68 70 } 69 71 } else { 70 72 // can't rename a file from one partition to another, must use mv or cp 71 73 // rename($recordings_save_path."{$dest}ivrrecording.wav",$recordings_astsnd_path."custom/{$filename}.wav"); 72 exec("mv " . $recordings_save_path . "{$dest}ivrrecording.$suffix " . $ recordings_astsnd_path."custom/{$filename}.$suffix");74 exec("mv " . $recordings_save_path . "{$dest}ivrrecording.$suffix " . $astsnd."custom/{$filename}.$suffix"); 73 75 $isok = recordings_add($rname, "custom/{$filename}.$suffix"); 74 76
