Example #1
0
 public function finalizeInstall()
 {
     try {
         Feature::reregister('intercom', 'intercom', 'Intercom', 'Two-way intercom feature, dial feature number and extension', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
 }
Example #2
0
 public function installFeatures()
 {
     //register features
     try {
         Feature::reregister('ccuuidbridgeext', 'callcenter_agents', 'Agent UUID Bridge Dialplan (Agent ID = Extention)', 'UUID Agent dial in and log in to callcenter.', User::TYPE_SYSTEM_ADMIN);
     } catch (featureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('ccuuidbridgeget', 'callcenter_agents', 'Agent UUID Bridge Dialplan (Get Agent)', 'UUID Agent dial in and log in to callcenter.', User::TYPE_SYSTEM_ADMIN);
     } catch (featureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('ccagentloginext', 'callcenter_agents', 'Agent Log In Dialplan (Agent ID = Extention)', 'Log in to the Callcenter using the current sip user.', User::TYPE_SYSTEM_ADMIN);
     } catch (featureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('ccagentlogoutext', 'callcenter_agents', 'Agent Log Out Dialplan (Agent ID = Extention)', 'Log out of the Callcenter using the current sip user.', User::TYPE_SYSTEM_ADMIN);
     } catch (featureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('ccagentloginget', 'callcenter_agents', 'Agent Log In Dialplan (Get Agent ID)', 'Request user them Log in to the Callcenter.', User::TYPE_SYSTEM_ADMIN);
     } catch (featureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('ccagentlogoutget', 'callcenter_agents', 'Agent Log Out Dialplan (Get Agent ID)', 'Request user then Log out of the Callcenter.', User::TYPE_SYSTEM_ADMIN);
     } catch (featureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
 }
Example #3
0
 public function installDefaultFeatures()
 {
     try {
         Feature::reregister('ivrreturn', 'feature', 'Return to last Auto Attendent', 'Return to the last Auto Attendant', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('redial', 'feature', 'Redial', 'Redial the last number dialed', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('callreturn', 'feature', 'Call Return', 'Dial the last number that called', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('checkvmaskuseraskpass', 'feature', 'Voicemail', 'Dial Voicemail and ask for extension and password', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('checkvmautouseraskpass', 'feature', 'Voicemail - Sip user - Ask Password', 'Dial Voicemail using the calling sip user as the voicemail user. The Sip user and voicemail user must be in sync for this to work.', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('checkvmautouserautopass', 'feature', 'Voicemail - Sip User - Sip Password', 'Dial Voicemail using the calling Sip user as the voicemail user and Sip password as the password.  The Sip user and password must be in sync between the device and voicemail for this to work.', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('park', 'feature', 'Call Park', 'Tranfer a call to a park extension', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('unpark', 'feature', 'Call Unpark/Pickup', 'Unpark/Pickup a call from a parked extension', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('echo', 'feature', 'Echo Test', 'Echo back every sound (helpful in determining if the phone is working and/or is full duplex)', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('delayecho', 'feature', 'Delay Echo', 'Echo back every sound with a 1 second delay (helpful in determining if the phone is working while preventing feedback on phones that are not full duplex)', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('tonetest', 'feature', 'Tone Test', 'Play a tone', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('holdmusic', 'feature', 'Hold Music', 'Listen to the default system hold music (to verify that it is working)', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('forwardon', 'feature', 'Forward On', 'Forward this extension to another', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
     try {
         Feature::reregister('forwardoff', 'feature', 'Forward Off', 'Un-Forward this extension to another', User::TYPE_SYSTEM_ADMIN);
     } catch (FeatureException $e) {
         if ($e->getCode() != 0 || $e->getCode() == -2) {
             throw $e;
         }
     }
 }