Hello, I'm trying to do some simple tests with AJAM on asterisk 1.4.17 and I'm not having much success. Right now the http server just listens on localhost:8088. I've used lynx and elinks for testing. I am able to get an Authentication accepted message using login, and I can view the stored auth cookie which is valid, but any attempt to use any other command immediate after results in an error response and "Authentication Required" message. I am not seeing any other errors in logs. My http.conf: [general] enabled=yes ;enablestatic=yes bindaddr=127.0.0.1 bindport=8088 And manager.conf: [general] enabled = yes webenabled = yes ;httptimeout = 10 port = 5038 ;bindaddr = 127.0.0.1 bindaddr = 0.0.0.0 displayconnects=off [testuser] secret = testpass read = all write = all deny=0.0.0.0/0.0.0.0 permit=127.0.0.1/255.255.255.255 -- Thanks for any help that can be offered! -- Jason Martin Metrix Matrix, Inc. 785 Elmgrove Road, Building 1, Rochester, NY 14624 Office: 888-865-0065 Ext. 202 Mobile: (585) 705-1400
Sylvain Boily
2008-Sep-22 13:58 UTC
[asterisk-users] Problem using AJAM on asterisk 1.4.17
Hello, Try with : [testuser]> secret = testpass > read = all > write = all > deny=0.0.0.0/0.0.0.0 > permit=127.0.0.1/255.255.255.255read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user Le lundi 22 septembre 2008 ? 09:46 -0400, Jason Martin a ?crit :> Hello, > > I'm trying to do some simple tests with AJAM on asterisk 1.4.17 and I'm not > having much success. > > Right now the http server just listens on localhost:8088. I've used lynx and > elinks for testing. I am able to get an Authentication accepted message using > login, and I can view the stored auth cookie which is valid, but any attempt > to use any other command immediate after results in an error response and > "Authentication Required" message. I am not seeing any other errors in logs. > > My http.conf: > [general] > enabled=yes > ;enablestatic=yes > bindaddr=127.0.0.1 > bindport=8088 > > And manager.conf: > [general] > enabled = yes > webenabled = yes > ;httptimeout = 10 > port = 5038 > ;bindaddr = 127.0.0.1 > bindaddr = 0.0.0.0 > displayconnects=off > > [testuser] > secret = testpass > read = all > write = all > deny=0.0.0.0/0.0.0.0 > permit=127.0.0.1/255.255.255.255 > > -- > > Thanks for any help that can be offered! >-- ?Sylvain BOILY Proformatique - 67 rue Voltaire - 92800 Puteaux Tel. : 01 41 38 99 60 - Fax. : 01 41 38 99 70 http://www.proformatique.com
Thanks for the reply. I tried the option below but it did not yield any different results. --- Hello, Try with : [testuser]> secret = testpass > read = all > write = all > deny=0.0.0.0/0.0.0.0 > permit=127.0.0.1/255.255.255.255read = system,call,log,verbose,command,agent,user write = system,call,log,verbose,command,agent,user Le lundi 22 septembre 2008 ? 09:46 -0400, Jason Martin a ?crit :> Hello, > > I'm trying to do some simple tests with AJAM on asterisk 1.4.17 and I'm not > having much success. > > Right now the http server just listens on localhost:8088. I've used lynx and > elinks for testing. I am able to get an Authentication accepted messageusing> login, and I can view the stored auth cookie which is valid, but any attempt > to use any other command immediate after results in an error response and > "Authentication Required" message. I am not seeing any other errors in logs. > > My http.conf: > [general] > enabled=yes > ;enablestatic=yes > bindaddr=127.0.0.1 > bindport=8088 > > And manager.conf: > [general] > enabled = yes > webenabled = yes > ;httptimeout = 10 > port = 5038 > ;bindaddr = 127.0.0.1 > bindaddr = 0.0.0.0 > displayconnects=off > > [testuser] > secret = testpass > read = all > write = all > deny=0.0.0.0/0.0.0.0 > permit=127.0.0.1/255.255.255.255 > > -- > > Thanks for any help that can be offered! >-- ?Sylvain BOILY Proformatique - 67 rue Voltaire - 92800 Puteaux Tel. : 01 41 38 99 60 - Fax. : 01 41 38 99 70 http://www.proformatique.com -- Jason Martin Metrix Matrix, Inc. 785 Elmgrove Road, Building 1, Rochester, NY 14624 Office: 888-865-0065 Ext. 202 Mobile: (585) 705-1400
Sylvain Boily
2008-Sep-22 20:50 UTC
[asterisk-users] Problem using AJAM on asterisk 1.4.17
Le lundi 22 septembre 2008 ? 16:10 -0400, Jason Martin a ?crit :> Thanks for the reply. > > I tried the option below but it did not yield any different results.Have you read this ? http://www.the-asterisk-book.com/unstable/manager-interface-ajam.html Have you reading the log on your CLI when you launch your lynx ? What is the url for lynx ? Sylvain -- Sylvain BOILY Proformatique - 67 rue Voltaire - 92800 Puteaux Tel. : 01 41 38 99 64 - Fax. : 01 41 38 99 70 Email : sboily at proformatique.com - http://proformatique.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080922/e4fa6eee/attachment.pgp