Synopsis:
MESSAGE(argument)new in Asterisk 10
Description:
MESSAGE(argument)- argument can be:
- to - Read-only. The destination of the message
- from - Read-only. The source of the message. If you want sent message from Asterisk and need change from, use Asterisk cmd MessageSend
- body - Read/Write. The text of message.
Example
Send message from Asterisk.
exten => 123,1,Set(MESSAGE(from)=sip:11111) ; no affect, no error, from is read only
exten => 123,n,Set(MESSAGE(body)=test message) ; don't use "
exten => 123,n,MessageSend(sip:22222,sip:11111)
See also
- Asterisk cmd MessageSend
- Asterisk func MESSAGE_DATA
- Asterisk cmd SendText
- Asterisk cmd SMS