Changeset 5993
- Timestamp:
- 07/13/08 17:34:25 (4 months ago)
- Files:
-
- modules/branches/2.5/queues/functions.inc.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/queues/functions.inc.php
r5949 r5993 34 34 } 35 35 36 $results = queues_list( );36 $results = queues_list(true); 37 37 foreach ($results as $result) { 38 38 $output .= "[".$result[0]."]\n"; … … 51 51 foreach ($results2 as $keyword => $data) { 52 52 if ($ver12){ 53 $output .= $keyword."=".$data."\n"; 53 switch($keyword){ 54 case 'ringinuse': 55 break; 56 default: 57 $output .= $keyword."=".$data."\n"; 58 break; 59 } 54 60 }else{ 55 61 switch($keyword){ … … 102 108 function queues_destinations() { 103 109 //get the list of all exisiting 104 $results = queues_list( );110 $results = queues_list(true); 105 111 106 112 //return an associative array with destination and description … … 150 156 /* queue extensions */ 151 157 $ext->addInclude('from-internal-additional','ext-queues'); 152 $qlist = queues_list( );158 $qlist = queues_list(true); 153 159 if (is_array($qlist)) { 154 160 foreach($qlist as $item) { … … 175 181 $ext->add('ext-queues', $exten, '', new ext_setvar('__BLKVM_BASE', '${EXTEN}')); 176 182 $ext->add('ext-queues', $exten, '', new ext_setvar('DB(${BLKVM_OVERRIDE})', 'TRUE')); 177 $ext->add('ext-queues', $exten, '', new ext_ setvar('_DIAL_OPTIONS', '${DIAL_OPTIONS}M(auto-blkvm)'));183 $ext->add('ext-queues', $exten, '', new ext_execif('$["${REGEX("(M[(]auto-blkvm[)])" ${DIAL_OPTIONS})}" != "1"]', 'Set', '_DIAL_OPTIONS=${DIAL_OPTIONS}M(auto-blkvm)')); 178 184 179 185 // Inform all the children NOT to send calls to destinations or voicemail … … 301 307 array($account,'monitor-join','yes',0), 302 308 array($account,'eventwhencalled',($_REQUEST['eventwhencalled'])?$_REQUEST['eventwhencalled']:'no',0), 303 array($account,'eventmemberstatus',($_REQUEST['eventmemberstatus'])?$_REQUEST['eventmemberstatus']:'no',0)); 309 array($account,'eventmemberstatus',($_REQUEST['eventmemberstatus'])?$_REQUEST['eventmemberstatus']:'no',0), 310 array($account,'ringinuse',($cwignore)?'no':'yes',0), 311 ); 304 312 305 313 if ($_REQUEST['music'] != 'inherit') { … … 359 367 360 368 //get the existing queue extensions 361 function queues_list() { 369 // 370 function queues_list($listall=false) { 362 371 global $db; 363 372 $sql = "SELECT extension, descr FROM queues_config ORDER BY extension"; … … 368 377 369 378 foreach($results as $result){ 370 if ( checkRange($result[0])){379 if ($listall || checkRange($result[0])){ 371 380 $extens[] = array($result[0],$result[1]); 372 381 }
