Reference Turnkey Applications Tutorials Visual Designer
    • REST API
      • Overview
      • API Endpoint
      • Authentication
      • Requests
      • Responses
      • Paging
      • Reason Codes Dictionary
    • Management APIs
      • Accounts
      • Identity Access Management Early Access
        • Identity Access Management Overview
        • Identity Access Management API
          • User Management
            • Create a User
            • Update a User
            • Retrieve a User
            • Delete a User
          • API Keys Management
            • Create an API Key
            • Update an API Key
            • Retrieve an API Key
            • Delete an API Key
      • Applications
      • Clients
        • Create a Client
        • Delete a Client
        • Change Client’s Password
        • Get a List of Available Clients
      • Incoming Phone Numbers
        • IncomingPhoneNumber Instance Resource
        • IncomingPhoneNumbers List Resource
        • Local IncomingPhoneNumber Factory Resource
        • Toll-Free IncomingPhoneNumber Factory Resource
        • Mobile IncomingPhoneNumber Factory Resource
        • Attach a phone number to an application
        • Delete a phone number
        • List of Phone Numbers
        • Incoming Phone Number Regex Support
      • Notifications
      • Usage Records
    • Voice
      • Calls
        • Call List Resource URI
        • Making a Call
        • Modifying Live Calls
        • Examples
        • List Filter
        • Paging Information
      • Conference Management
        • Supported Operations
        • Conference List Resource URI
      • Conference Participants Management
        • Participants List Resource URI
      • Gather DTMF
      • Gather Speech
      • Say
      • Play
      • Hold
      • Recordings
      • Refers
        • Resource Properties
        • Supported Operations
        • Paging Information
      • Resume
      • SIP Refer Support
    • SMS
      • Messages
        • Send SMS
        • Get SMS List
        • Get single SMS Information
        • SMS Attributes
      • Error Codes
    • Email
    • RCML
      • Overview
        • Interacting with Your Application
        • RCML Verbs
      • Dial
        • Client
        • Conference
        • Number
        • SIP
      • Email
      • Gather
      • Say
      • Play
      • SMS
      • Hold
      • Resume
      • Hangup
      • Pause
      • Redirect
      • Record
      • Reject
      • Refer
    • Visual Designer API
      • List Application Templates
      • :List a Specific Application Template
      • Create a Visual Designer Application
      • Get Application Details
      • Save Application Changes
      • Create Application Parameters
      • List Application Parameters
      • Delete Application Parameters
      • Upload Application Media Files
      • List Application Media Files
      • Play Application Media Files
      • Delete Application Media Files
      • Get Application Logs
      • Delete Application Logs
      • Get Application Settings
      • Modify Application Settings
      • Rename an Application
      • Delete an Application
      • Get Visual Designer Configuration
    • Turnkey Apps APIs
      • Smart 2FA
        • Sending One-Time Passwords
        • Verifying One-Time Passwords
        • Cancel One-Time Passwords
        • Session Detail Record (SDR)
        • Get list of One-Time Passwords
        • Get a Single One-Time Password
        • Usage Record One-Time Passwords
        • Common Response Error Code
        • Limit
          • Create Limit
          • Update Limit
          • Delete Limit
          • Get List of Limits
      • Call Queuing
      • Auto Attendant
        • Users
        • Announcement
        • Auto Attendant System
        • Menu
        • Schedule
        • Phone Number
        • Usage Records
        • Third Party Integration
      • Number Masking
        • Application
        • Mask Number Pool
        • Context
        • Participants
        • Interactions
        • Usage Records
      • Task Router
docs 1.0
  • docs
    • 1.0
  • docs
  • Send SMS to a SIP Phone

Send SMS to a SIP Phone

Table of Contents
  • Requirements
  • Creating an SMS application with CPaaS Visual Designer
  • Binding your application to a phone number
  • Configuring the Jitsi SIP phone
  • Testing your SMS to a SIP phone application

In this tutorial, you will learn how to send an SMS from Visual Designer to a Jitsi SIP phone.

Requirements

  • An active CPaaS Cloud account. If you do not have one, you can sign up.

  • Jitsi SIP phone running on your local machine. (Latest version of Jitsi)

Creating an SMS application with CPaaS Visual Designer

  • Log into your CPaaS Cloud account and navigate to Applications

  • Choose to ”Create a Visual Designer Application”

  • Select the ”Blank” template from the list available in the Template Gallery

  • Name your application, set its Type to SMS and click “Create”

Next, create two application new modules called Welcome and Send SMS

  • Remove the default Say verb

  • Drag and drop the Dial Verb into the Welcome module.

  • Drag and drop the Client noun to the space below the noun list and enter the name alice

  • You must create the Send SMS module in order to be able to select it in the Continue to drop down list.

  • The Welcome module should be similar to the screenshot below.

Send SMS to SIP Welcome module

Next, you need to create the Send SMS module

  • Drag and drop the SMS button on the left hand pane into the new module you have just created

  • Type the SMS message you will like to send in the text area of the Say verb.

  • Enter alice in the To field

  • Enter any number in the From field

  • Leave the rest of the field as default

  • The Send SMS module should look like the screen below

  • Save the project by pressing the Save button at the top of the page

Send SMS to SUP send module

Binding your application to a phone number

  • Head back to the CPaaS Console and navigate to “Numbers”

  • Search for available phone number in the region you are interested in

  • Click on “Register number”

  • Select your application from the Voice URI drop down

  • Click “Save”

Bing SMS to SUP app to a number

Configuring the Jitsi SIP phone

In this section, you will configure Jitsi SIP phone to use the CPaaS application you have just created and receive the SMS message you configured.

  • Start two instances of Jitsi from the command line.

  • The first instance can be started by typing jitsi

  • Second instance jitsi - -multiple

Configure instance with alice account

  • Click on the menu "Tools" → "Options"

  • Click on the "Add" button at the bottom of the window

  • In the Network, select "SIP"

  • Set the "SIP id" to alice

  • Set the password to 1234

Registering SIP client Alice

  • Click on the "Advanced" button

In the Account Registration Wizard, go to the Connection tab

  • Enter $DOMAIN as the Registrar IP address and leave the port as default

In the section Proxy Options, check to Configure proxy automatically.

Jitsi Account Advanced Settings

  • At the bottom of the window, press Next, then, Sign in

  • You should now see that alice is registered when you set the account to online.

visual-designer-sms

Next, you will need to configure the second instance with user Bob. The configuration is similar to the one used for Alice.

How to check: In the Jitsi instance on which user Alice is configured,

  • Click on the menu Tools → Options

  • Click on the tab Advanced, on the left pane, select SIP

  • That will show the screen below:

visual-designer-smstest10

Testing your SMS to a SIP phone application

You can now make a call from Bob to Alice. From the Jitsi SIP phone on which Bob is registered. make a call to 7777, the number attached to the SMSTest application.

See screenshot below

visual-designer-smstest11

The Jitsi phone to which Alice is connected will ring.

Answer the call and then hang up. The SMS message you entered in the Send SMS module of the Visual Designer will appear in a pop-up window similar to the one below. Note that the number +5555 appears as the source of the SMS message.

Send SMS to SIP reply

Platform

Programmable Voice

Programmable SMS

Turnkey Applications

Smart 2FA

Call Queue

Auto Attendant

Number Masking

Task Router

Campaign Manager

Learn

Terms And Conditions

About

ABOUT

CONTACT US

© 2020, All rights reserved.