Integrating the eG Manager with Azure Communication Services (ACS)
Azure Communication Services (ACS) is a managed cloud platform providing rich communication APIs and SDKs to integrate voice, video, chat, SMS, email, and Microsoft Teams interoperability into custom web, mobile, and desktop applications.
By integrating with ACS, the eG manager can send SMS notifications of alarms to configured mobile phone numbers.
The key requirements for this integration is that you own a valid Azure account with an active subscription.
Once these requirements are fulfilled, you can proceed to integrate the eG manager with ACS. To enable the integration, you need to configure the eG manager with the following:
- Communication Services Resource: A valid Communication Services Resource has to be created in Azure specifically for the purpose of this integration. Azure exposes its SMS framework to the manager via this resource only.
-
Endpoint URL: This URL allows the eG manager access to the Communication Services resource that you created in Azure for the purpose of the integration.
-
Access Key: This key enables the Communication Services SDKs to connect and authenticate to Azure.
-
From Mobile Phone Number: All eG alerts routed as SMS messages via ACS will be sent from a specific mobile number only. This phone number has to be explicitly purchased from Azure and verified before being fed into the eG Enterprise system.
Follow the steps discussed hereunder to obtain the aforesaid information from Azure:
-
Login to the Azure portal.
-
Use the Search button (magnifying glass icon) in the portal to search for 'communication services' (seeFigure 1). Once Communication Services appears in the search results, click on it
-
Figure 2 will then appear listing ACS resources that may pre-exist. For the eG manager to integrate with ACS, you need to create a special ACS resource. So, click on the Create button in Figure 2.
-
This will invoke Figure 3. First, pick the Subscription that will be subscribing to the new resource. Then, select the Resource group to which the new resource is to be added. Next, give a name to the new resource against Resource name. Finally, select a geography from the Data location drop-down. All chat messages, and resource data stored by Communication Services at rest are retained in the chosen geography, in a data center selected internally by Communication Services.
-
Then, click the Review + Create button in Figure 3. This will open Figure 4. Review the new resource specifications using Figure 4 and finally click the Create button to create the resource.
-
Upon successful resource creation, Figure 5 will appear. To view the details of the new resource, click the Go to resource button in Figure 5.
-
Figure 6 will then appear. The resource list in Figure 6 will now display the newly created resource.
Figure 6 : The newly created resource displayed in the resource list
-
Now, click on the new resource in Figure 6. Figure 7 will appear providing an Overview of the new resource and its properties.
-
Now, expand the Telephony & SMS node in the left panel of Figure 7, and select the Phone numbers sub-node within. The right panel will change as shown by Figure 8.
Figure 8 : Selecting the Phone numbers option from the left panel
-
Proceed to obtain a new mobile number from which the SMS alerts are to be sent. For that, first click on the Get button in the right panel ofFigure 8. This will bring up Figure 9.
-
From Figure 9, pick a Country or region to which the phone number should pertain and then, indicate the Type of phone number you need. Azure will then list all unused phone numbers that match your specifications.
-
Once you choose the number you need, click on the Add to cart button corresponding to that number to purchase it (see Figure 10).
-
Then, click the Next button in Figure 10 to proceed. Figure 11 will then appear. After reviewing the estimated cost of the chosen number, click on the Buy now button in Figure 11 to buy the number.
Figure 11 : Clicking on the 'Buy now' button to buy the chosen number
-
Once the purchase is complete, Figure 12 will appear indicating that the number needs to be verified before use. To initiate the SMS verification process, you need to submit an application. For that, click on the submit application link in Figure 12.
Figure 12 : Clicking on 'submit application' to initiate the verification process
-
This will invoke Figure 13. In the Application Type tab page of Figure 13, the phone number to be verified will be automatically displayed against Associated phone number(s). Then, pick the geographic target region for the verification from the Country or Region drop-down. The phone number Type you chose in Figure 10 will be displayed by default against Phone number type in Figure 13. Then, select the Application type that best describes the purpose for which you want to use the number. Then, click the Next button in Figure 13 to proceed.
-
The Company Details tab page will then open (see Figure 14). Here, provide the legal and business details of the company that is applying for SMS verification. Then, click the Next button in Figure 14 to move on.
-
This will open Figure 15. In the Program description text box here, provide a clear description of your messaging campaign. Then, from the Program Content-type drop-down, select the primary category that matches your SMS message workflow. Next, from the Opt-in type section, select how users agree to receive text messages from your business by checking the relevant check boxes - via SMS, via web form, etc. Then, against Opt-in description, clearly explain and prove how you capture explicit, compliant end-user consent before sending any text messages. Also, against Additional supporting documentation, submit URLs or other information that can help get your phone number verified. After providing all the above information, click Next in Figure 15 to continue.
-
The Volume tab page will now appear. Here, specify the estimated number of messages that you expect to send per month via this program. Then, click Next.
Figure 16 : Specifying the estimated volume of messages that will be sent per month
-
Figure 17 will then appear. Here, you can define the template for your SMS messages by providing a few samples. Then, click Next.
-
Figure 18 will then appear. Review your application and click Submit to submit it to the aggregators.
-
Once the application is submitted, it will take a minimum of 24-hours for it to be verified and approved. After 24 hours, you can revisit the Phone numbers page (see Figure 12) of the resource you created to check the status of the phone number that was purchased. If the SMS status of the phone number is 'Subscribe to events' (as shown by Figure 19), it is a clear indicator that the phone number has been successfully verified.
Figure 19 : Status indicating that the phone number has been successfully verified
-
Now, click on the Overview option in the left panel of Figure 19. Figure 20 will then appear. In the right panel of Figure 20, the properties of the resource you created will be displayed. Make a note of the Resource group displayed in the right panel. Then, click on the Click here to manage keys link against Manage keys, as indicated by Figure 20.
-
This will invoke Figure 21, where a Keys section becomes visible. Make a note of the Endpoint and Primary Key displayed in this section.
-
Now, login to the eG administrative interface and follow the Alerts -> SMS Gateway Settings menu sequence in the Admin tile menu. When Figure 22 appears, pick Azure Communication Service as the SMS gateway. Then, proceed to configure the following details:
-
Access key: Copy the Private Key displayed in Figure 21 to this text box. This is the Private Key that Azure auto-creates to allow the eG manager access to the special ACS resource that was created for the purpose of the integration.
-
Resource group: This is the group to which the special ACS resource that was created belongs. Copy the Resource group displayed in the right panel of Figure 20 to this text box.
-
End point URL: Copy the Endpoint displayed in the Keys section of Figure 21 to this text box.
-
From mobile number: Enter the phone number that you purchased from Azure (and which has since been verified and approved by aggregators).
Figure 22 : Configuring the eG Manager to send SMS alerts via ACS
-
-
Finally, click the Update button.