[asterisk-users] How to determine if AMI MessageSend succeeded?

Wen Li wenli380 at gmail.com
Tue Nov 6 16:47:40 CST 2012


I am using Asterisk 11.0.0 and have a SIP user called 100. The user
registers via SIP but their network connection is cut off.

I then proceed to use AMI to send a message to them.

root at yumyum:~# telnet 127.0.0.1 5038
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Asterisk Call Manager/1.3
Action: Login
Username: admin
Secret: test

Response: Success
Message: Authentication accepted

Event: FullyBooted
Privilege: system,all
Status: Fully Booted

Action: MessageSend
To: sip:100
From: Test <sip:101 at 192.168.88.1>
Body: This is a test.

Response: Success
Message: Message successfully sent

However, clearly the message is not sent since the device lost its network
connection. How can I know that it failed? Even the log does not appear to
show anything unless I turn sip debug on.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20121106/20072376/attachment.htm>


More information about the asterisk-users mailing list