The SendSms command is used for sending SMS messages to mobile phones.
To send an SMS you need to connect to an SMS modem or an SMPP server. Find out how you can connect to an SMS modem. After you connect
you need to set up a dial plan.
<SendSms> command example usage:
You can use it to send out SMS based receipts. For example a customer pays through an IVR and gets an SMS receipt.
You can also use it to send out a new password for a client as a response to his IVR based request.
Or if a client orders a product through IVR, he/she could get the payment details in SMS.
Parameters:
Parameter name
Value
Description
Mandatory
ApiExtension
int value, e.g. 9994
Specifies which api extension is added to the command.
Yes
Sender
string value, e.g. +061554669
The phone number the recipient will see as the sender. By default it is the phone number set in the SMS modem installation using Ozeki Phone System XE.
No
Recipient
string value, e.g. +062554670
The destination phone number.
Yes
Message
string value, e.g. Hello! How are you?
The content text of the message. Can be provided between the command nodes.
Yes
DeliveryReportURL
string value, e.g. http://yourdomain.com/ozml_example/delivery_received.php
An SMS is sent to +062554670 with this content: "Hello! How are you?"
<?xml version="1.0"?>
<Response>
<SendSms Recipient="+062554670">Hello! How are you?</SendSms>
</Response>
Detailed example:
1st the speach engine reads: "An SMS will be sent to +062554670." Then an SMS is sent to +062554670 with this content: "Hello! How are you?" Then the speach engine says: "The SMS has been sent."
At the end the call is hanged up.
<?xml version="1.0"?>
<Response>
<Speak>An SMS will be sent to +062554670.</Speak>
<SendSms Recipient="+062554670">Hello! How are you?</SendSms>
<Speak>The SMS has been sent.</Speak>
<Hangup></Hangup>
</Response>