Quantcast
Channel: VOIP-info.org Wiki Changes
Viewing all articles
Browse latest Browse all 5767

Asterisk func message

$
0
0

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


Viewing all articles
Browse latest Browse all 5767

Trending Articles