Skip to main content
Version: 5.0

Message brokers

Overview​

Use the Message brokers page to manage SMS gateway providers in PowerManage.

Message brokers let the PowerManage server communicate with external SMS services. The server uses configured brokers to send SMS messages when SMS delivery is required, for example:

  • Wake-up SMS messages for cellular-connected panels.
  • Multi-factor authentication (MFA) codes.
  • SMS notifications sent by the server.

Administrators use this page to:

  • Review the SMS brokers configured on the server.
  • Add a new custom broker through an HTTP Gateway or a serial port.
  • Edit an existing broker.
  • Delete brokers that are no longer used.
  • Configure connection details, authentication values, request templates, and TLS usage.

PowerManage includes several default broker entries, such as AlphaSMS, Cellsynt, Orange, TextAnywhere, and Twilio. You can also create a custom broker when the required SMS provider is not available by default.

Before you begin​

Required permissions​

  • You must have permission for the General category of Server Settings.

Preconditions​

  • You must have the requirements of the SMS provider (SMS broker) API and an example of a working SMS request. If the provider documentation does not include them, request them from the SMS provider. For details, see Configure a custom HTTP Gateway broker.
  • You must have the provider connection details: host, port, login, password (or token or API key), and sender value.
  • You must know whether the provider requires TLS (HTTPS).
  • You must know whether the provider uses an HTTP GET or POST request to send SMS messages.
  • If the broker is used for panel wake-up messages, the target panels must have valid SIM numbers and must support SMS wake-up.
  • If the broker is used for MFA, the users must have a phone number configured to receive the one-time code.

Dependencies​

  • The PowerManage server must be able to reach the SMS provider host over the configured network route.
  • Firewall rules must allow outbound traffic to the configured host and port.
  • DNS resolution must work if the broker host is configured as a domain name.
  • SMS notification and wake-up workflows depend on a working broker configuration or another configured SMS delivery method, such as a GSM modem.

Important limitations​

warning
  • PowerManage validates the broker settings that are entered in the form, but the SMS provider can still reject requests because of account, template, sender, or API restrictions.
  • Do not leave the Sender field empty. If Sender (${ORIGINATOR}) is empty, the broker does not send SMS messages, even if the provider does not require a sender value. Enter a sender value in all cases.
  • Some providers also require Login and Password values. If these fields are empty, the broker may not work as expected.
  • The request template must end with two blank lines. After the last line of the request, press Enter two times. See Request template format.
  • The HTTP Gateway broker type uses variable placeholders. Incorrect placeholder syntax can prevent SMS delivery. See Template variables.
  • Deleting a broker can affect SMS notifications, MFA, and wake-up workflows that depend on that broker.

Page layout​

The Message brokers section contains a list of configured brokers and actions for adding, editing, and deleting broker entries.

Message brokers list​

Message brokers page (light) Message brokers page (dark)
  1. + Create a new MB button icon+ Create a new MB buttonOpens the Add message broker settings dialog. Use to add a new message broker, including a custom HTTP Gateway broker.
  2. Delete iconDelete iconDeletes the selected message broker entry. Use when a broker is no longer needed. Before you delete a broker, confirm that no SMS workflow depends on it.

The broker list shows one row for each configured message broker. Each row includes:

  • Broker name: The display name of the SMS broker.
  • Description: Provider registration information, API reference information, or a custom note.
  • Delete icon: Removes the broker entry.

Select an existing broker row to open the broker settings and modify the configuration.

Add message broker settings dialog​

info

The Add message broker settings dialog is shown as separate screenshots by section. Use the tabs below to view each part of the dialog.

Add message broker settings dialog, Identity section (light)Add message broker settings dialog, Identity section (dark)
  1. NameDefines the display name of the message broker. Use to enter a clear broker name that administrators can recognize in the broker list.
  2. DescriptionStores a free-text description for the broker. Use to document the provider name, account purpose, API reference, or operational notes.
  3. TypeSelects the broker type. Available types: HTTP Gateway and Serial Port.

    Select HTTP Gateway for an SMS provider with an HTTP or HTTPS API. Select Serial Port for a GSM modem connected to the server.

Template variables​

Use the following variables in the Template of GET/POST request to send sms field. PowerManage replaces each variable with the actual value before it sends the request to the SMS provider.

Use the variable names exactly as they are listed: uppercase letters, inside ${ and }.

Variables filled from the broker settings​

These variables take their values from the fields of the Add message broker settings dialog.

  • ${ORIGINATOR} (Sender)Sender ID, originator name, or sender phone number. The recipient sees this value as the SMS sender. The field must not be empty.
    Example: Powermanage or +15551234567.
  • ${USER} (Login)Account login, user name, account ID, or API user provided by the SMS provider.
    Example: my-sms-account.
  • ${PASSWORD} (Password)Password, token, secret, or API key provided by the SMS provider.
    Example: ********.
  • ${HOST} (Host)Host name or IP address of the provider API endpoint, without the protocol and path.
    Example: alphasms.ua.
  • ${PORT} (Port)Port used to connect to the provider. The default value is 80. Use 443 for HTTPS.
    Example: 443.

Variables filled by PowerManage at send time​

PowerManage generates these values for each SMS message, based on the panel, user, and server configuration.

  • ${DESTINATION}Phone number of the SMS recipient. For example, the panel SIM number for wake-up SMS or the user phone number for MFA.
    Example: +15557654321.
  • ${TEXT}Message text, for example the wake-up command or the MFA code. In GET requests, the text is sent URL-encoded.
    Example: Code%3A%20qY3cQS.
  • ${CONTENT_LENGTH}Size of the POST request body. Use it as the value of the Content-Length header in POST requests.
    Example: 112.
  • ${ID}Auto-incremented number. Use it when the provider requires a numeric request or message ID.
    Example: 1024.
  • ${UUID}Auto-generated unique ID. Use it when the provider requires a unique message ID.
    Example: e9424c60-3537-46d4-8983-26219167e118.
tip

You do not have to use every variable. Use only the variables that the provider API requires. If the provider requires a fixed value that is not covered by a variable, for example an API version, enter the value directly in the template.

Request template format​

The Template of GET/POST request to send sms field contains a raw HTTP request. Follow these rules when you create the template:

  1. Request line. The first line contains the HTTP method, the request URL or path, and the protocol version, for example GET https://${HOST}/api/send?to=${DESTINATION} HTTP/1.1.
  2. Headers. Each header is on a separate line. Always include the Host header, for example Host: ${HOST}:${PORT}. Add other headers required by the provider, such as Content-Type or Authorization. The Connection: close header is recommended.
  3. Body (POST only). For a POST request, add one blank line after the headers, and then add the request body in the format required by the provider. Add the Content-Length: ${CONTENT_LENGTH} header.
  4. Two blank lines at the end. After the last line of the request, press Enter two times. The saved template must end with two line breaks (\n\n). If the template does not end this way, the broker does not work as expected.
  5. TLS. If the request uses HTTPS, set Port to the HTTPS port (usually 443) and enable Use TLS.

GET request structure example​

GET template structure
GET https://${HOST}/<api-path>?<parameter>=${USER}&=${PASSWORD}&=${ORIGINATOR}&=${DESTINATION}&=${TEXT} HTTP/1.1
Host: ${HOST}:${PORT}
User-Agent: firefox
Connection: close


POST request structure example​

POST template structure
POST /<api-path> HTTP/1.1
Host: ${HOST}:${PORT}
Content-Type: application/x-www-form-urlencoded
Authorization: Basic
User-Agent: firefox
Accept: */*
Content-Length: ${CONTENT_LENGTH}
Connection: close

<parameter>=${USER}&=${PASSWORD}&=${ORIGINATOR}&=${DESTINATION}&=${TEXT}


note

These templates are examples only. Obtain a working request template from your SMS provider before configuring the broker.
Replace the <api-path> and <parameter> placeholders with the values specified in the provider's API documentation. The required Content-Type value, request body format, and authentication method depend on the provider's API. For example, a provider may require JSON or form data in the request body, or an Authorization header instead of login and password parameters.

Common scenarios​

Create a message broker​

Goal:

  • Add a new SMS broker provider to PowerManage.

Steps:

  1. Open Settings.
  2. Go to Message brokers.
  3. Select + Create a new MB.
  4. In Name, enter a unique broker name.
  5. In Description, enter a short description of the provider or purpose.
  6. In Type, select HTTP Gateway.
  7. In Sender (${ORIGINATOR}), enter the sender value required by the SMS provider. Do not leave this field empty.
  8. In Login (${USER}), enter the provider account login or API user.
  9. In Password (${PASSWORD}), enter the provider password, secret, token, or API key.
  10. In Host (${HOST}), enter the SMS gateway host.
  11. In Port (${PORT}), enter the SMS gateway port.
  12. In Template of GET/POST request to send sms, enter the provider request template. After the last line, press Enter two times.
  13. Enable Use TLS if the provider requires TLS.
  14. Select Save.

Expected result:

  • The dialog closes.
  • The new broker appears in the broker list.
  • PowerManage can use the broker for SMS workflows.
warning

For the HTTP Gateway type, the request template must end with two blank lines and the Sender field must not be empty. If these rules are not followed, the broker does not work as expected.

Configure a custom HTTP Gateway broker​

Goal:

  • Add an SMS provider that is not available as a predefined broker.
tip

Each SMS provider has its own API. PowerManage does not know the request format of a custom provider in advance. The setup always follows the same approach: get the provider requirements and an example request, confirm that the example request works, and then replicate the same request in PowerManage with template variables.

Steps:

  1. Get the requirements and an example request from the SMS provider. Find them in the provider API documentation. If the documentation is not available or not complete, request them from the SMS provider. Confirm the following information:
    • The API endpoint: host, port, and path.
    • HTTP or HTTPS (TLS).
    • The HTTP method: GET or POST.
    • The authentication method: login and password parameters, token, API key, or Authorization header.
    • The names of the parameters for the sender, recipient number, and message text.
    • The required headers and body format for POST requests, for example form data or JSON.
    • Sender rules: alphanumeric sender ID or phone number, and whether the sender ID must be registered with the provider or the local regulator.
    • The required phone number format, for example international format with a country code.
    • An example of a successful request and the response that the provider returns.
  2. Test the example request. Before you configure PowerManage, send the example request with real values, for example with curl or with the test tool recommended by the provider. This confirms that the credentials are valid and the provider account is active.
  3. Replicate the example request in PowerManage. Map each value of the example request to a broker field and a template variable:
    • Sender value → Sender → ${ORIGINATOR}
    • Login or account ID → Login → ${USER}
    • Password, token, or API key → Password → ${PASSWORD}
    • Provider host → Host → ${HOST}
    • Provider port → Port → ${PORT}
    • Recipient number → ${DESTINATION}
    • Message text → ${TEXT}
  4. On the Message brokers page, select + Create a new MB.
  5. In Type, select HTTP Gateway.
  6. Enter the provider host, port, login, password, and sender values. Do not leave Sender empty.
  7. In Template of GET/POST request to send sms, enter the example request. Replace the real values with the variables from step 3. Keep all other parts of the request exactly as in the example.
  8. After the last line of the template, press Enter two times.
  9. Enable Use TLS if the provider requires HTTPS or TLS.
  10. Select Save.
  11. Assign the broker to the SMS workflows that must use it:
    • Wake-up SMS: in the Cellular connected settings, select the broker as the message broker for wake-up.
    • MFA: in the Multi-Factor Authentication settings, select the broker as the MFA message broker.
    • SMS notifications: in the customer notification settings, select the broker for SMS sent by the server.
  12. Trigger a controlled SMS workflow, for example an MFA login or a panel wake-up, to validate delivery.
  13. Confirm that the recipient received the SMS message. If the message is not delivered, check the delivery status and error details in your SMS provider account, and compare the broker settings and template with the provider example request.

Expected result:

  • The custom broker is saved.
  • The SMS provider account shows the message as sent or delivered.
  • The recipient receives the SMS message.
note

The exact request template depends on the SMS provider API. Always build the template from the provider requirements and example request. Do not copy a template from another provider.

Edit a message broker​

Goal:

  • Update the settings for an existing SMS gateway provider.

Steps:

  1. Open Settings.
  2. Go to Message brokers.
  3. Select the broker row that you want to edit.
  4. Update the required fields.
  5. Review the request template. Confirm that it ends with two blank lines.
  6. Confirm that the Sender field is not empty.
  7. Confirm that the Use TLS setting matches the provider requirements.
  8. Select Save.

Expected result:

  • PowerManage saves the updated broker settings.
  • New SMS delivery attempts use the updated configuration.
warning

Changes can affect active notification, MFA, and wake-up workflows. If you change the host, port, credentials, sender, TLS, or template values, validate SMS delivery after you save.

Delete a message broker​

Goal:

  • Remove a broker that is no longer used.

Steps:

  1. Open Settings.
  2. Go to Message brokers.
  3. Find the broker in the list.
  4. Select the delete icon on the broker row.
  5. Confirm the deletion.

Expected result:

  • The broker is removed from the list.
  • PowerManage no longer uses the deleted broker for SMS delivery.
warning

Do not delete a broker until you confirm that no SMS notifications, MFA, wake-up messages, or operational workflows depend on it.

Tips​

tip
  • Use a broker name that identifies the provider and purpose, such as Twilio production or HTTP gateway backup.
  • Keep the description useful for operations teams. Include the provider name, account purpose, or API documentation link.
  • Always fill in the Sender field, even if the provider does not use a sender value.
  • In some countries, the sender ID must be registered with the provider or the regulator. Confirm the sender rules with the SMS provider.
  • Use TLS when the provider supports HTTPS or requires secure transport.
  • Keep a copy of the provider API documentation and the example request with your system configuration records.
  • After you change the credentials, host, port, sender, template, or TLS settings, validate SMS delivery with a controlled test workflow.
  • If multiple brokers exist, document which broker is used for each operational purpose: wake-up, MFA, or notifications.

Troubleshooting​

SMS messages are not delivered​

Possible causes:

  • The Sender field is empty.
  • The broker credentials are incorrect.
  • The host or port is incorrect.
  • The provider account is inactive, blocked, or out of credit.
  • The request template does not match the provider API.
  • The request template does not end with two blank lines.
  • TLS is enabled when the provider does not support TLS, or TLS is disabled when the provider requires TLS.
  • Firewall or routing rules block outbound traffic from the PowerManage server.

What to try:

  1. Confirm that the Sender field is not empty.
  2. Verify the provider account status.
  3. Confirm the host and port with the SMS provider documentation.
  4. Confirm that the login, password, token, or API key is correct.
  5. Compare the request template with the example request from the provider.
  6. Confirm that the request template ends with two blank lines.
  7. Confirm whether Use TLS must be enabled.
  8. Check network connectivity from the PowerManage server to the provider endpoint.
  9. Save the broker and retry a controlled SMS workflow.
  10. Check the delivery status and error details in your SMS provider account.
  11. If the issue persists, contact PowerManage support.

SMS wake-up does not work​

Possible causes:

  • No working SMS broker is configured.
  • The broker configuration is invalid.
  • The panel SIM number is missing or incorrect.
  • The panel SIM cannot receive SMS messages.
  • The panel is already connected. The wake-up SMS is not sent to connected panels.
  • The Cellular connected settings use a different SMS broker.
  • The group-level wake-up settings do not require SMS for the affected panel type.
  • The communicator cannot process the sender format, for example an alphanumeric sender instead of a phone number.

What to try:

  1. Confirm that SMS wake-up is expected for the panel type and workflow.
  2. Verify the panel SIM number.
  3. Confirm that the SIM can receive SMS messages.
  4. Review the broker host, port, credentials, sender, template, and TLS settings.
  5. Confirm that the broker can send a regular SMS message through a controlled workflow.
  6. Review the Cellular connected settings.
  7. Review the relevant group settings for wake-up behavior. Local wake up must be disabled.
  8. If the panel does not process the wake-up SMS, try a phone number as the sender value.

Broker was deleted by mistake​

Possible causes:

  • The delete icon was selected on the wrong broker row.
  • A broker was removed before dependencies were checked.

What to try:

  1. Recreate the broker with the same provider settings.
  2. Re-enter the host, port, credentials, sender, template, and TLS option.
  3. Save the broker.
  4. Assign the broker again to the wake-up, MFA, and notification workflows that used it.
  5. Validate SMS delivery.
Was this page helpful?