Changeset 5368
- Timestamp:
- 12/07/07 22:12:59 (9 months ago)
- Files:
-
- contributed_modules/modules/vmblast/functions.inc.php (modified) (3 diffs)
- contributed_modules/modules/vmblast/module.xml (modified) (2 diffs)
- contributed_modules/modules/vmblast/page.vmblast.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
contributed_modules/modules/vmblast/functions.inc.php
r5366 r5368 82 82 // 83 83 if ($grp['audio_label'] == -1 || !$recordings_installed) { 84 $ext->add($contextname, $grpnum, '', new ext_saydigits($grpnum)); 84 $ext->add($contextname, $grpnum, '', new ext_setvar('DIGITS',$grpnum)); 85 $ext->add($contextname, $grpnum, '', new ext_goto('digits','vmblast','app-vmblast')); 85 86 } else { 86 87 if (!$got_recordings) { … … 93 94 } 94 95 if (isset($recording_hash[$grp['audio_label']])) { 95 $ext->add($contextname, $grpnum, '', new ext_playback($recording_hash[$grp['audio_label']])); 96 $ext->add($contextname, $grpnum, '', new ext_setvar('MSG',$recording_hash[$grp['audio_label']])); 97 $ext->add($contextname, $grpnum, '', new ext_goto('msg','vmblast','app-vmblast')); 96 98 } else { 97 $ext->add($contextname, $grpnum, '', new ext_saydigits($grpnum)); 99 $ext->add($contextname, $grpnum, '', new ext_setvar('DIGITS',$grpnum)); 100 $ext->add($contextname, $grpnum, '', new ext_goto('digits','vmblast','app-vmblast')); 98 101 } 99 102 } 100 $ext->add($contextname, $grpnum, '', new ext_goto('1','vmblast','app-vmblast'));101 103 } 102 104 $contextname = 'app-vmblast'; 105 $ext->add($contextname, 'vmblast', 'digits', new ext_execif('$["${DIGITS}" != ""]','SayDigits','${DIGITS}')); 106 $ext->add($contextname, 'vmblast', 'msg', new ext_execif('$["${MSG}" != ""]','Background','${MSG}')); 103 107 $ext->add($contextname, 'vmblast', '', new ext_background('if-correct-press&digits/1')); 104 108 $ext->add($contextname, 'vmblast', '', new ext_waitexten('20')); … … 135 139 136 140 function vmblast_add($grpnum,$grplist,$description,$audio_label= -1, $password = '') { 137 $sql = "INSERT INTO vmblast (grpnum, grplist, description, audio_label, password) VALUES (".$grpnum.", '".str_replace("'", "''", $grplist)."', '".str_replace("'", "''", $description)."', $audio_label, '".str_replace("'","''", $password)."')";141 $sql = "INSERT INTO vmblast (grpnum, grplist, description, audio_label, password) VALUES (".$grpnum.", '".str_replace("'", "''", $grplist)."', '".str_replace("'", "''", $description)."', '$audio_label', '".str_replace("'","''", $password)."')"; 138 142 $results = sql($sql); 139 143 } contributed_modules/modules/vmblast/module.xml
r5367 r5368 2 2 <rawname>vmblast</rawname> 3 3 <name>VoiceMail Blasting</name> 4 <version>1.1. 0</version>4 <version>1.1.1</version> 5 5 <type>setup</type> 6 6 <category>Internal Options & Configuration</category> … … 9 9 </description> 10 10 <changelog> 11 *1.1.1* fixed a couple SQL bugs, improved dialplan so you can skip annoucement and messages immeditiately (except if saydigits used) 11 12 *1.1.0* add audio label, password protect, fix bug for javascript validation to work, add extension/dest registry support 12 13 *1.0.2* increase grouplist field to varchar(255) to increase the vmblast list contributed_modules/modules/vmblast/page.vmblast.php
r5366 r5368 177 177 $tresults = recordings_list(); 178 178 $default = (isset($audio_label) ? $audio_label : -1); 179 echo '<option value=" ">'._("Read Group Number")."</option>";179 echo '<option value="-1">'._("Read Group Number")."</option>"; 180 180 if (isset($tresults[0])) { 181 181 foreach ($tresults as $tresult) {
