How To MessageSend To A SIP From AMI Or CLI?

Home » Asterisk Users » How To MessageSend To A SIP From AMI Or CLI?
Asterisk Users 2 Comments

Hello all,

I am running Asterisk 10.10.0 and I can send Message between SIP‘s no problem. However, I would like to be able to send send Message to a SIP from AMI Or CLI. I check the ListCommands On the AMI and it don’t have MessageSend. Therefore, I try the SendText.

AMI:
Action: SendText”
Channel: SIP/600″
Body: This is a test. Message: This is a test. Extension: 600″;

Response: Error Message: No such channel

Any help would be much appreciated.

2 thoughts on - How To MessageSend To A SIP From AMI Or CLI?

  • I haven’t used send text before in the ami but I would expect the channel to be the fully qualified one. When you do core show channels in the cli you get a longer channel name that’s unique. I’m not 100%
    on this as I haven’t used it but when in the ami it says to send channel, it usually means the unique current channel.

    The Asterisk wiki at wiki.asterisk.org is pretty good at showing you what’s required, although their examples could be better,

    Hope this helps,

    Dan Jenkins