Changeset 9460 for modules/branches/2.8/queues
- Timestamp:
- 04/07/10 13:16:23 (3 years ago)
- Files:
-
- modules/branches/2.8 (modified) (1 prop)
- modules/branches/2.8/queues/functions.inc.php (modified) (2 diffs)
- modules/branches/2.8/queues/module.xml (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.8
- Property svnmerge-integrated changed from /modules/branches/2.7:1-9417,9448 to /modules/branches/2.7:1-9459
modules/branches/2.8/queues/functions.inc.php
r9396 r9460 884 884 $results['queuewait'] = $config['queuewait']; 885 885 $results['use_queue_context'] = $config['use_queue_context']; 886 887 // TODO: why the str_replace? 888 // 889 if ($astman) { 890 $account=str_replace("'",'',$account); 891 //get dynamic members priority from astDB 892 $get=$astman->database_show('QPENALTY/'.$account.'/agents'); 893 if($get){ 894 foreach($get as $key => $value){ 895 $key=explode('/',$key); 896 $mem[$key[4]]=$value; 897 } 898 foreach($mem as $mem => $pnlty){ 899 $dynmem[]=$mem.','.$pnlty; 900 } 901 $results['dynmembers']=implode("\n",$dynmem); 902 } else { 903 $results['dynmembers']=''; 904 } 905 $results['dynmemberonly'] = $astman->database_get('QPENALTY/'.$account,'dynmemberonly'); 906 } else { 907 fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]); 908 } 886 909 } 887 910 … … 902 925 } 903 926 } 904 // TODO: why the str_replace?905 //906 if ($astman) {907 $account=str_replace("'",'',$account);908 //get dynamic members priority from astDB909 $get=$astman->database_show('QPENALTY/'.$account.'/agents');910 if($get){911 foreach($get as $key => $value){912 $key=explode('/',$key);913 $mem[$key[4]]=$value;914 }915 foreach($mem as $mem => $pnlty){916 $dynmem[]=$mem.','.$pnlty;917 }918 $results['dynmembers']=implode("\n",$dynmem);919 } else {920 $results['dynmembers']='';921 }922 $results['dynmemberonly'] = $astman->database_get('QPENALTY/'.$account,'dynmemberonly');923 } else {924 fatal("Cannot connect to Asterisk Manager with ".$amp_conf["AMPMGRUSER"]."/".$amp_conf["AMPMGRPASS"]);925 }926 927 return $results; 927 928 } modules/branches/2.8/queues/module.xml
r9396 r9460 2 2 <rawname>queues</rawname> 3 3 <name>Queues</name> 4 <version>2.7.0. 3</version>4 <version>2.7.0.4</version> 5 5 <publisher>FreePBX</publisher> 6 6 <license>GPLv2+</license> … … 11 11 </description> 12 12 <changelog> 13 *2.7.0.4* #4187 13 14 *2.7.0.3* #4165 14 15 *2.7.0.2* #4120 again fixed typo in variable name
