----- Original Message -----
> From: "Michelle Dupuis" <mdup...@ocg.ca>
> To: "Asterisk Users List" <asterisk-users@lists.digium.com>
> Sent: Friday, May 16, 2014 4:29:05 PM
> Subject: Re: [asterisk-users] Login by AMI ok, by AJAM fails
> 
> From: asterisk-users-boun...@lists.digium.com
> <asterisk-users-boun...@lists.digium.com> on behalf of Michael L.
> Young <myo...@acsacc.com>
> Sent: Friday, May 16, 2014 4:16 PM
> To: Asterisk Users List
> Subject: Re: [asterisk-users] Login by AMI ok, by AJAM fails
> 
> Have you taken a look at the Wiki yet?
> 
> https://wiki.asterisk.org/wiki/display/AST/Allow+Manager+Access+via+HTTP
> 
> In looking at that, I see some mistakes in what you are trying to do.
>  Please take a look at that and give it a try.

Well, you need to login first.  Since you are using cURL, you need to turn the 
cookie engine on so that it will store and send cookies.

Also, you need to send the login request to 
"http://localhost:5039/asterisk/manager?action=login&user=test&secret=test"; and 
not "rawman".  Once you are logged in, then you can get raw manager output.

I hope that helps.

Michael

-- 
_____________________________________________________________________
-- 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

Reply via email to