Asterisk func message

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

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

Created by: zerog, Last modification: Mon 24 of Jun, 2013 (19:25 UTC)
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+