Changeset 5221

Show
Ignore:
Timestamp:
11/06/07 19:29:23 (6 years ago)
Author:
p_lindheimer
Message:

fix: context, redisplay of groups, get proper vm contexts, beep before leaving msg

Files:

Legend:

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

    r5063 r5221  
    2828  switch($engine) { 
    2929    case "asterisk": 
    30       $ext->addInclude('from-internal-additional','vmblast'); 
     30      $ext->addInclude('from-internal-additional','vmblast-grp'); 
    3131      $contextname = 'vmblast-grp'; 
    3232      $ringlist = vmblast_list(); 
     
    3535          $grpnum = ltrim($item['0']); 
    3636          $grp = vmblast_get($grpnum); 
    37           $grplist = $grp['grplist']
     37          $grplist = explode('&',$grp['grplist'])
    3838          $ext->add($contextname, $grpnum, '', new ext_macro('user-callerid')); 
    39           $ext->add($contextname, $grpnum, '', new ext_vm($grplist)); 
     39          $ext->add($contextname, $grpnum, '', new ext_setvar('GRPLIST','')); 
     40          foreach ($grplist as $exten) { 
     41            $ext->add($contextname, $grpnum, '', new ext_macro('get-vmcontext',$exten)); 
     42            $ext->add($contextname, $grpnum, '', new ext_setvar('GRPLIST','${GRPLIST}&'.$exten.'@${VMCONTEXT}')); 
     43          } 
     44          $ext->add($contextname, $grpnum, '', new ext_vm('${GRPLIST:1},s')); 
    4045          $ext->add($contextname, $grpnum, '', new ext_hangup('')); 
    4146        } 
  • contributed_modules/modules/vmblast/module.xml

    r5066 r5221  
    22  <rawname>vmblast</rawname> 
    33  <name>VoiceMail Blasting</name> 
    4   <version>1.0.0</version> 
     4  <version>1.0.1</version> 
    55  <type>setup</type> 
    66  <category>Inbound Call Control</category> 
     
    88    Creates a group of extensions that Calls a group of voicemail boxes and allows you to leave a Msg for them all at once.  
    99  </description> 
     10  <changelog> 
     11    *1.0.l* fix: context, redisplay of groups, get proper vm contexts, beep before leaving msg 
     12  </changelog> 
    1013  <menuitems> 
    1114    <vmblast>VoiceMail Blasting</vmblast> 
  • contributed_modules/modules/vmblast/page.vmblast.php

    r5063 r5221  
    9797    $thisgrp = vmblast_get(ltrim($extdisplay,'GRP-')); 
    9898    $grpliststr = $thisgrp['grplist']; 
    99     $grplist = explode("-", $grpliststr); 
     99    $grplist = explode("&", $grpliststr); 
    100100    $description = $thisgrp['description']; 
    101101    unset($grpliststr);