Esempio n. 1
0
 public static function delete($ccData)
 {
     $xml = Telephony::getDriver()->xml;
     $locationRec = Doctrine::getTable('Location')->find($ccData->cca_locationid);
     $root = '//document/section[@name="configuration"]/configuration[@name="callcenter.conf"][@description="CallCenter"]/agents/agent[@bluebox="' . $ccData->cca_id . '"]';
     $xml->setXmlRoot($root);
     $xml->deleteNode();
     if (CallCenterManager::updateRealtime() == 'realtime') {
         $agentname = $ccData->cca_loginid . '@' . $ccData->agentLocation->domain;
         self::removeRunning($agentname);
     }
 }
Esempio n. 2
0
File: tier.php Progetto: swk/bluebox
 public static function delete($ccData)
 {
     $xml = Telephony::getDriver()->xml;
     $agentRec = Doctrine::getTable('callcenter_agent')->find($ccData->cct_cca_id);
     $queueRec = Doctrine::getTable('callcenter_queue')->find($ccData->cct_ccq_id);
     $locationRec = Doctrine::getTable('Location')->find($agentRec->cca_location_id);
     $root = '//document/section[@name="configuration"]/configuration[@name="callcenter.conf"][@description="CallCenter"]/tiers/tier[@agent="' . $agentRec->cca_loginid . '\\@' . $locationRec->domain . '"][@queue="' . $queueRec->ccq_name . '\\@' . $locationRec->domain . '"]';
     $xml->setXmlRoot($root);
     $xml->deleteNode();
     if (CallCenterManager::updateRealtime()) {
         self::removeRunning($ccData);
     }
 }
Esempio n. 3
0
 public static function delete($ccData)
 {
     $xml = Telephony::getDriver()->xml;
     $locationRec = Doctrine::getTable('Location')->find($ccData->ccq_locationid);
     $root = '//document/section[@name="configuration"]/configuration[@name="callcenter.conf"][@description="CallCenter"]/queues/queue[@name="' . $ccData->ccq_name . '\\@' . $locationRec->domain . '"]';
     $xml->setXmlRoot($root);
     $xml->deleteNode();
     if (CallCenterManager::updateRealtime()) {
         $queuename = $ccData->ccq_name . '@' . $ccData->queueLocation->domain;
         self::removeRunning($queuename);
     }
 }