Exemplo n.º 1
0
         } else {
             # Do Nothing
             $object->addEntry('');
         }
     }
     break;
     # Logoff ALL
 # Logoff ALL
 case 'logoff_all':
     # Retrieve the list of queues
     $queues = get_queues();
     $agents = get_agent_status('', $agent);
     # Remove from each queue if logged in as dynamic
     foreach ($queues as $value) {
         if ($agents[$value['Queue']]['Status'] > 0 and $agents[$value['Queue']]['Membership'] != 'static') {
             Aastra_queue_remove_Asterisk($agent, $value['Queue']);
         }
     }
     # Next Actions
     require_once 'AastraIPPhoneExecute.class.php';
     $object = new AastraIPPhoneExecute();
     # Update via the "check" mechanism
     $object->addEntry($XML_SERVER . '&action=check');
     # Callback for the display
     $object->addEntry($XML_SERVER . '&action=show_queues&queue=' . $queue);
     break;
     # Pause/Unpause ALL
 # Pause/Unpause ALL
 case 'pause_all':
 case 'unpause_all':
     # Pause or unpause
Exemplo n.º 2
0
     # Do we have any
     foreach ($members as $value) {
         if ($value['type'] == 'dynamic') {
             Aastra_queue_remove_Asterisk($value['agent'], $queue);
         }
     }
     # Next action
     require_once 'AastraIPPhoneExecute.class.php';
     $object = new AastraIPPhoneExecute();
     $object->addEntry($XML_SERVER . '&action=show_queue_members&queue=' . $queue . '&q_desc=' . $q_desc);
     break;
     # Logout agent
 # Logout agent
 case 'logout_agent':
     # Remove agent
     Aastra_queue_remove_Asterisk($member, $queue);
     # Next action
     require_once 'AastraIPPhoneExecute.class.php';
     $object = new AastraIPPhoneExecute();
     $object->addEntry($XML_SERVER . '&action=show_queue_members&queue=' . $queue . '&q_desc=' . $q_desc . '&member=' . $member);
     break;
     # Show Queues
 # Show Queues
 case 'show_queues_page':
     $queue = '';
 case 'refresh':
     $refresh = 0;
 case 'show_queues':
     # Authenticate user
     Aastra_check_signature_Asterisk($user);
     # Retrieve the list of queues