Configuring the Outgoing SMS Gateway
To send SMS messages for login verification, password resetting, or alarm notifications, configure an outgoing SMS gateway.
Currently, you can select Built-in or Third-party SMS gateways. If you select Third-party, general SMS Gateway and Huawei Cloud SMS gateway are available.
- Built-in: the default SMS gateway in the CBH system is used to send SMS messages.
- Third-party: other SMS gateways. After entering values of URL and API Params, test whether the SMS service is proper.
- If you expect to use a third-party cloud SMS gateway, enable the SMN service in advance. After SMS is enabled, you still need to configure the SMS gateway and test whether it works properly.
This topic describes how to configure an outgoing SMS gateway.
Constraints
- The built-in SMS gateway cannot push CBH system alarm notifications.
- General third-party SMS gateways can push CBH system alarm notifications.
- Third-party cloud SMS gateways cannot push CBH system alarm notifications. If your cloud SMS gateway service becomes invalid, the system gateway automatically takes over the job.
- An SMS template has been configured. The template should be read like this "Your CBH verification code: XXX (valid within XXX minutes). To ensure account security, do not provide this verification code to anyone."
Prerequisites
You have the management permissions for the System module.
Built-in SMS gateway
- Log in to the CBH system.
- Choose System > Sysconfig > Outgoing.
Figure 1 Outgoing
- In the SMS API area, click Edit.
- Select Built-in and enter a mobile number to verify the connectivity of the built-in SMS gateway.
- Click OK. You can then view SMS gateway configuration on the Outgoing tab.
Figure 2 Built-in SMS gateway
General Third-party SMS Gateway
- Log in to the CBH system.
- Choose System > Sysconfig > Outgoing.
Figure 3 Outgoing
- In the SMS API area, click Edit.
- Select Third-party and then select SMS Gateway from the SMS Conf drop-down list.
In the displayed parameter list, specify other parameters as prompted.
- Click OK. You can then view SMS gateway configuration under the Outgoing tab.
Table 1 SMS API parameters Parameter
Description
Method
Request method. The options are POST and GET.
URL
URL of SMS API. You can enter a universal URL or a URL containing parameters.
Do not enter MD5-encrypted URLs.
HTTP Header
HTTP request header. Use colons (:) to separate the name and value of the HTTP request header.
Only HTTP and HTTPS gateways are supported.
API Params
API parameters of the SMS gateway. Replace keywords $MOBILE and $TEXT with the phone number and SMS content.
Encode
Encode method. You can select UTF-8, Big5, or GB18030.
Mobile
Phone number for receiving the SMS messages. Enter an available phone number and verify the SMS message content.
Figure 4 General SMS gateway
Third-party cloud SMS gateway
- Log in to the CBH system.
- Choose System > Sysconfig > Outgoing.
Figure 5 Outgoing configuration
- In the SMS API area, click Edit.
- Select Third-party and then select Huawei Cloud from the SMS Conf drop-down list.
In the displayed parameter list, specify other parameters as prompted.
- Click OK. You can then view SMS gateway configuration under the Outgoing tab.
Table 2 Cloud SMS gateway parameters Parameter
Description
APP_Key
The key of the SMS application.
APP_Secret
The secret of the SMS application.
Application Access URL.
Access URL of the SMS application.
Sender
Channel number before the SMS message. To get this number, apply for your SMS signature first.
Template ID
ID of requested SMS template.
NOTE:The template should be read like this "Your CBH verification code: XXX (valid within XXX minutes). To ensure account security, do not provide this verification code to anyone."
Mobile
Phone number for receiving the SMS messages. Enter an available phone number and verify the SMS message content.
Figure 6 Cloud SMS gateway
Last Article: Configuring the Outgoing Mail Server
Next Article: Configuring the SNMP Agent
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.