Mountain View
Jabber SDK API Documentation

Tutorial: Hunt Group

Hunt Group

Title Telephony device can be part of Hunt Group which is a CUCM feature. Before any of the hunt group API is used, isHuntGroupEnabled capability must be checked. TelephonyControllerCapabilities are retrieved through TelephonyController.capabilities property. Through TelephonyDevice.huntGroupLogin and TelephonyDevice.huntGroupLogout methods device can be logged in or logged out of hunt group as it is shown in the snippet below:

        var telephonyDevice;

        // ...
        // Acquire telephony device (softphone, deskphone, remotephone)
        // ...

        if(cwic.TelephonyController.capabilities.isHuntGroupEnabled)
        {
            // Hunt Group Login
            telephonyDevice.huntGroupLogin();

            // Hunt Group Logout
            telephonyDevice.huntGroupLogout();
        }
    
When telephony device changes its Hunt Group State, "onTelephonyDeviceListChanged" event will be fired. Hunt group state can be read from TelephonyDevice.huntGroupState property as it is shown in the snippet below:

         var telephonyDevice;

         // ...
         // Acquire telephony device (softphone, deskphone, remotephone)
         // ...

         // Read hunt group state (State can be one of the following: "LoggenIn", "LoggedOut", "Unknown"
         var huntGroupState = telephonyDevice.huntGroupState;

     

Next

Previous