I am using a PBX in a Flash 1.4 with Asterisk 1.4 and trying to configure my server’s AMI so that it can work with an iPhone app for call back, the app’s description can be found at: neotiq.com/astcallback/
but I can’t get the app to work, obviously, that’s why I am here.
I find something wired about the AMI, and hope you guys can help me out here:
I can access the AMI through telnet from other machine, when I point to port 5038. but initially, I can’t login, after some trail and error, I find the AMI has to follow a strange format. There must be a space after the “:” symbol. or it won’t work. e.g., it must look like this to login:
any other format won’t work. is this a designed way? or a bug?
since I find the connection doesn’t work for iPhone app, I tried to test the connection through HTTP. I find the article in voip-info.org/wiki/view/Aync … %28AJAM%29 about how to do that. I followed the procedures, but when I put the link in the browser, which is: “http://my-host-ip:5038/asterisk/manager?action=login&username=test&secret=test”, but it doesn’t work. if will keep going until time out, then the asterisk cli will tell me: Connect attempt from ‘XXX.XXX.XXX.XXX(my ip)’ unable to authenticate. I find it wired since I can’t telnet,how come I can’t access from browser? Or my command is wrong?
To add up a bit more info, while the page is loading the url I put above, I restart the asterisk, I will be prompt with an error msg,
Message: Missing action in request"
which means the AMI through HTTP is enabled and working. however, the parameter of the username and secret can’t pass in.
can anyone help me out or give me some hint? thx in advance!