Tutorial: Create an app to provision 3rd-party devices

In this tutorial you will learn how receive the data from the Users and Devices App Services when provisioning a 3rd-party phone. This data must be managed somehow and sent to your phone.

Conventions

Your filenames might be different according to your settings. You need to select your app con the Apps tab from the Profile App Object on the PBX. Otherwise the Profile App will not be able to send the data to your app.

Testing and expected behaviour

For testing you need to start a phone provisioning on the Profile App.

Step by step

Task 1: Publish de app as a provisioning provider

On the session class, you need to publish your app as a provider to provision phones using the AppWebsocketServiceInfo function.

Task 2: Receive the data from the Profile App

The data will be received inside the AppWebsocketMessage function on the session class with the mt "ProvisioningPhone".

Task 3: Get the published services to be able to connect with Devices later

To set the Sysclient connection to get the phone configuration from Devices later.

Task 4: Get the phone configuration with the Sysclient connection

After the configuration received from the Profile App has been stored on the DB, the sysclient connection must be set with Devices to be able to receive the phone configuration and its updates. To learn more about this protocol you can check this article.

Useful documentation