<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC', 'Segoe UI', Tahoma, 'Microsoft Sans Serif', Verdana, sans-serif;font-size:11pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}--></style>
</head>
<body>
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I have setup an Ast 11.6 host and I want to login via AJAM.  I setup manager.conf, http.conf described in the docs.  When I login via the AMI it works fine (see below), but when I login via AJAM the same credentials fail (see further down)<br>
</p>
<p><br>
Can someone tell me how to fix this?<br>
</p>
<p><br>
</p>
<p>-----------<br>
</p>
<div>Connection closed by foreign host.</div>
<div>root@pbx:/tmp# telnet localhost 5038</div>
<div>Trying 127.0.0.1...</div>
<div>Connected to localhost.</div>
<div>Escape character is '^]'.</div>
<div>Asterisk Call Manager/1.3</div>
<div>action: login</div>
<div>username: test</div>
<div>secret: test</div>
<div><br>
</div>
<div>Response: Success</div>
<div>Message: Authentication accepted</div>
<div><br>
</div>
<div>Event: FullyBooted</div>
<div>Privilege: system,all</div>
<div>Status: Fully Booted</div>
<div><br>
</div>
<div>​--------------------------</div>
<div>root@apbx:/tmp# curl  http://localhost:5039/asterisk/rawman?action=login&user=test&secret=test</div>
<div>[1] 15548</div>
<div>[2] 15549</div>
<div>root@pbx:/tmp# Response: Error</div>
<div>Message: Authentication failed</div>
<div>[1]-  Done                    curl http://localhost:5039/asterisk/rawman?action=login</div>
<div>[2]+  Done                    user=test<br>
</div>
<p><br>
</p>
</div>
</body>
</html>