Message
The Message Element
Use the Message element to send a message during your call flow. For instance, if you want to send out an SMS notification when you receive an incoming call on your Plivo number, you can use the <Message>
element in your application.
To receive a message, you must set a message URL in your Plivo application via the API or in the Plivo console at Messaging > Applications.
Attributes
Here are the attributes the Message element supports. You can modify the default behavior of each attribute by using the allowed values.
Name | Type | Description |
---|---|---|
src | string | Source number — for example, 12025550000 . Must be a purchased, valid number. |
dst | string | Destination number. Must be a valid number. To use bulk numbers, specify them separated by < — for example, 12025551111<12025552222 . |
type | string | Type of the message. Allowed values: sms |
callbackUrl | string | A valid, reachable URL that Plivo notifies when a response is available and to which the response is sent (Delivery reports). |
callbackMethod | string | The method used to notify the callbackUrl .Allowed values: GET , POST Defaults to POST . |