Activating SMS to Chat functionality for SIPTrunk.com Users

This article will provide a walkthrough on converting existing SIPTrunk.com trunks to include SMS to Chat functionality.

Updated at July 27th, 2024

Why Build Out A New Trunk?

In order to enable SMS for SIPTrunk.com trunks, they must be built out as a generic SIP Trunk rather than the standard pre-defined build. The instructions below will aid in building a generic trunk for SIPTrunk.com users, but also will have tips for those who have an existing SIPTrunk so that they can swap over to the SMS enabled trunk with minimal issues. 

New Client and New Setup?

If you are are new client and arranging a new setup, only follow the Building out the New SIP Trunk and Activating the SMS Functionality instructions. The Swapping Out the Trunks instructions are for existing bvoip clients who were originally setup with standard SIPTrunk.com setup. 

 

Building out the New SIP Trunk

  1. Login to the bvoip phone system.
  2. Click on the Call Flow drop-down menu.
    siptrunk
  3. Go to the SIP Trunks menu item. 
  4. Click on the Add SIP trunk+ button. The page will refresh with setup details.
    SIPSetup1MTP
  5. In the Country drop-down, select Generic.
    SMSSIP1-15
  6. In the Provider drop-down, select Generic Sip Trunk.
  7. In the Main Trunk Number field, provide the trunk number as found in the SIP Trunk provider's portal.
  8. Click on the +Create button. The page will refresh to reflect more setup options on the General tab.
  9. Scroll down to the Trunk Details section.
    SMSSIP1-10
  10. In the Trunk Name field, input SIPTrunk with SMS for the name.
  11. In the Registrar/Server/Gateway field, input gw.siptrunk.com with the Auto Discovery box checked.
  12. In the Outbound proxy field, input gw1.siptrunk.com.
  13. Scroll down to Authentication section. 
     SMSSIP1-12
  14. In the Authentication ID field, copy and paste Trunk Number from SIP Provider. For those with an existing SIPTrunk, add a capital C at the end of the trunk number in this field. 
  15. In the Authorize Password field, paste the password from SIP Provider.
  16. Go to the Options tab.
    SMSSIP1-14
  17. Scroll down to the Advanced section.
  18. Enable the Alternative Proxy option. When enabled, a textbox will appear. Input gw2.siptrunk.com in the field. This will enable failover to the redundant gateway.
  19. Go to the Inbound Parameters tab.
    SMSSIP1-13
  20. Change the CallerNum caller's number (default: From->user) parameter to Contact: User Part
  21. Change the CallerName caller's name (default: From->display name) parameter to From: Display Name
  22. Change the CalledNum number that has been dialed (default: To->user) parameter to Request-Line URI: User Part.
  23. Click the Save button.

Activating the SMS Functionality

  1. Log into the SIPTrunk.com portal.
     SMSSIP1-1
  2. Click on the My SIP Trunking section.
    SMSSIP1-2
  3. Go to the Messaging tab. 
  4. Click on the Webhooks button. A pop-up window will appear. SMSSIP1-3 
  5. Click on the Create new Webhook button.
    SMSSIP1-7 
  6. In the URL field, enter the copied Webhook URL received from the bvoip support team. Note: Please submit a ticket with bvoip support to obtain this URL. 
    SMSSIP1-8 
  7. In the Description field, enter a description.
  8. Click the Create button. The Webhook is now created and you can close the window
  9. Under the Assign WebHook column, use the drop-down to assign a DID to the Webhook. SMSSIP1-9
  10. Click on the API Keys button. A pop-up window will appear. SMSSIP1-4
  11. Click on the Create new API Key button.
    SMSSIP1-5
  12. In the Description field, enter a description.
    SMSSIP1-6
  13. Click the Create button.  Make sure to save the Secret Key for any future use.
  14. In the confirmation pop-up, copy the 3CX API Token
  15.  Reach out to bvoip support, providing the API Key and Provider URL to be added to your trunk in the back end.

Building Out the Inbound Rules

When the SMS part of SIPTrunk is done being enabled, the numbers will need to be re-added to the new trunk so that they work as intended and the inbound rules will need to be re-done. This is best done with the DID Helper Tool

 

Changing The Number Format

Once the numbers have been added to the SMS enabled new trunk, the numbers that will be SMS enabled will need a format change from the standard setup of *1234567890. The format will need to follow the format of +1234567890 in order for SMS to chat to  correctly function. 

For information on where to make the change to the DIDs, please see our Adding New Phone Numbers article.

 

Swapping Out the Trunks

To swap out the trunks, you will need to disable the non-SMS trunk before enabling the SMS enabled trunk. 

Disabling the Non-SMS Trunk

  1. Click on the Call Flow drop-down menu.
    siptrunk
  2. Go to the SIP Trunks menu item. 
  3. Click on the Edit button beside the non-SMS SIPTrunk.
  4. Go to the Authentication section.
    SMSSIP1-11
  5. In the Authentication ID field, add a capital X to the end of the ID. 
  6. Click the Save button.

Activating the SMS Enabled Trunk

  1. Click on the Call Flow drop-down menu.
    siptrunk
  2. Go to the SIP Trunks menu item. 
  3. Click on the Edit button beside the SMS enabled SIPTrunk.
  4. Go to the Authentication section.
  5. In the Authentication ID field, remove the capital C to the end of the ID. 
  6. Click the Save button. The calls will now filter through this trunk setup and not the disabled one. 

Port-Swap Clean-up Tip

You can also remove the non-SMS trunk once deactivated. 

 

Sending and Receiving SMS Messages 

Once the setup is complete, SMS will appear in the Chat section of the bvoip webclient softphone. For instructions on using this section, please see our Webclient Chat Feature article.

The chat version of SMS use supports incoming and outgoing images whereas Email to Chat does not.