[asterisk-bugs] [Asterisk 0014281]: [patch] JSON Manager Event Interface

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jan 11 12:51:04 CST 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14281 
====================================================================== 
Reported By:                PLL
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14281
Category:                   Core/ManagerInterface/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-1438 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 169443 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-19 20:02 CST
Last Modified:              2011-01-11 12:51 CST
====================================================================== 
Summary:                    [patch] JSON Manager Event Interface
Description: 
Make it easier to work with pure javascript Asterisk managers. Just adding
another option.
====================================================================== 

---------------------------------------------------------------------- 
 (0130380) ksn (reporter) - 2011-01-11 12:51
 https://issues.asterisk.org/view.php?id=14281#c130380 
---------------------------------------------------------------------- 
Hello all!

Also experience problems when using the interface with Digest
authentication:
/ Amanager => HTML Manager Event Interface w / Digest authentication
/ Arawman => Raw HTTP Manager Event Interface w / Digest authentication
/ Amxml => XML Manager Event Interface w / Digest authentication

For example queries on Asterisk 1.8.1.1:

kremlin:~# curl -u "admin:12345" --digest -v
"http://127.0.0.1:8088/amxml?action=CoreShowChannels"

Get:
* About to connect () to 127.0.0.1 port 8088 (# 0)
* Trying 127.0.0.1 ... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8088 (# 0)
* Server auth using Digest with user 'admin'
> GET / amxml? Action = CoreShowChannels HTTP/1.1
> User-Agent: curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2
OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
> Host: 127.0.0.1:8088
> Accept: * / *
>
<HTTP/1.1 401 Unauthorized
<Server: Asterisk/1.8.1.1
<Date: Tue, 11 Jan 2011 18:40:00 GMT
<Connection: close
<Cache-Control: no-cache, no-store
<Content-Length: 210
<WWW-authenticate: Digest algorithm = MD5, realm = "asterisk", nonce =
"22dab08f", qop = "auth", opaque = "22dab08f"
<Content-type: text / html
<
* Closing connection # 0
* Issue another request to this URL:
'http://127.0.0.1:8088/amxml?action=CoreShowChannels'
* About to connect () to 127.0.0.1 port 8088 (# 0)
* Trying 127.0.0.1 ... connected
* Connected to 127.0.0.1 (127.0.0.1) port 8088 (# 0)
* Server auth using Digest with user 'admin'
> GET / amxml? Action = CoreShowChannels HTTP/1.1
> Authorization: Digest username = "admin", realm = "asterisk", nonce =
"22dab08f", uri = "/ amxml? Action = CoreShowChannels", cnonce =
"NzM0MTY0", nc = 00000001, qop = "auth", response =
"fd58719b68888ff66bc7703ff84e8c4a", opaque = "22dab08f", algorithm = "MD5"
> User-Agent: curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2
OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
> Host: 127.0.0.1:8088
> Accept: * / *
>
<HTTP/1.1 401 Unauthorized
<Server: Asterisk/1.8.1.1
<Date: Tue, 11 Jan 2011 18:40:00 GMT
<Connection: close
<Cache-Control: no-cache, no-store
<Content-Length: 210
* Authentication problem. Ignoring this.
<WWW-authenticate: Digest algorithm = MD5, realm = "asterisk", nonce =
"609c3bd0", qop = "auth", opaque = "609c3bd0"
<Content-type: text / html
<
<! DOCTYPE HTML PUBLIC "- / / IETF / / DTD HTML 2.0 / / EN">
<html> <head>
<title> 401 Unauthorized </ title>
</ Head> <body>
<h1> 401 Unauthorized </ h1>
<p> </ p>
<hr />
<address> Asterisk Server </ address>
</ Body> </ html>
* Closing connection # 0
kremlin:~#

The problem seems to be old. Can anybody explain and help? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-01-11 12:51 ksn            Note Added: 0130380                          
======================================================================




More information about the asterisk-bugs mailing list