[asterisk-users] How to determine if AMI MessageSend succeeded?
Wen Li
wenli380 at gmail.com
Wed Nov 7 23:38:57 CST 2012
Thanks for your help! Do you know if there's a way to read the sip
debug messages without opening the log file on the disk, such as
through AMI?
On Tue, Nov 6, 2012 at 3:59 PM, Danny Nicholas <danny at debsinc.com> wrote:
> I would recommend two things. Number one would be to tweak your logger.conf
> to separate out error messages. Number two would be to make your ami call do
> this:
>
> Set sip debug on
>
> Ami action
>
> Set sip debug off
>
>
>
> This lets you get what you need without making a huge log file.
>
>
>
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Wen Li
> Sent: Tuesday, November 06, 2012 4:48 PM
> To: asterisk-users at lists.digium.com
> Subject: [asterisk-users] How to determine if AMI MessageSend succeeded?
>
>
>
> 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.
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list