Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated to GIT-16-3746b1e

...

Code Block
titleExample: Send a simple message
linenumberstrue

			 same => n,SendText(Your Text Here)
			

If the channel driver supports enhanced messaging (currently only chan_pjsip), you can set additional variables:

Code Block
titleExample: Alter the From display name
linenumberstrue

			 same => n,Set(SENDTEXT_FROM_DISPLAYNAME=Really From Bob)
			 same => n,SendText(Your Text Here)
			
Code Block
titleExample: Send a JSON String
linenumberstrue

			 same => n,Set(SENDTEXT_CONTENT_TYPE=text/json)
			 same => n,SendText({"foo":a, "bar":23})
			
Code Block
titleExample: Send a JSON String (alternate)
linenumberstrue

			 same => n,Set(SENDTEXT_CONTENT_TYPE=text/json)
			 same => n,Set(SENDTEXT_BODY={"foo":a, "bar":23})
			 same => n,SendText()
			

Syntax

No Format
SendText([text])

...

This documentation was imported from Asterisk Version GIT-16-324a6093746b1e