In case it helps, here's the CLI output which attempting an AJAM login:

[May 16 16:03:58] DEBUG[16807]: http.c:686 handle_uri: HTTP Request URI is 
/asterisk/rawman?action=login 
[May 16 16:03:58] DEBUG[16807]: http.c:735 handle_uri: match request [rawman] 
with handler [httpstatus] len 9
[May 16 16:03:58] DEBUG[16807]: http.c:735 handle_uri: match request [rawman] 
with handler [phoneprov] len 10
[May 16 16:03:58] DEBUG[16807]: http.c:735 handle_uri: match request [rawman] 
with handler [amanager] len 9
[May 16 16:03:58] DEBUG[16807]: http.c:735 handle_uri: match request [rawman] 
with handler [arawman] len 8
[May 16 16:03:58] DEBUG[16807]: http.c:735 handle_uri: match request [rawman] 
with handler [manager] len 7
[May 16 16:03:58] DEBUG[16807]: http.c:735 handle_uri: match request [rawman] 
with handler [rawman] len 7
[May 16 16:03:58] DEBUG[16807]: manager.c:6436 generic_http_callback: HTTP 
Manager add header action: login
[May 16 16:03:58] DEBUG[16807]: manager.c:5211 process_message: Running action 
'Login'
  == HTTP Connect attempt from '127.0.0.1' unable to authenticate
[May 16 16:03:59] DEBUG[16807]: manager.c:6511 generic_http_callback: Need 
destroy, doing it now!

________________________________________
From: asterisk-users-boun...@lists.digium.com 
<asterisk-users-boun...@lists.digium.com> on behalf of Michelle Dupuis 
<mdup...@ocg.ca>
Sent: Friday, May 16, 2014 3:39 PM
To: Asterisk Users List
Subject: Re: [asterisk-users] Login by AMI ok, by AJAM fails

You're right - but I tried username too and it fails.  I can't understand why 
AMI authenticates and 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 3:25 PM
To: Asterisk Users List
Subject: Re: [asterisk-users] Login by AMI ok, by AJAM fails

----- Original Message -----

> From: "Michelle Dupuis" <mdup...@ocg.ca>
> To: "Asterisk Users List" <asterisk-users@lists.digium.com>
> Sent: Friday, May 16, 2014 2:43:30 PM
> Subject: [asterisk-users] Login by AMI ok, by AJAM fails

> --------------------------
> root@apbx:/tmp# curl
> http://localhost:5039/asterisk/rawman?action=login&user=test&secret=test
> [1] 15548
> [2] 15549
> root@pbx:/tmp# Response: Error
> Message: Authentication failed
> [1]- Done curl http://localhost:5039/asterisk/rawman?action=login
> [2]+ Done user=test

I believe it should be "username" instead of "user" for the query parameter.

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

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