Ajax Bug Asterisk 1.8 Manager using mxml

jbarrett

New Member
Joined
Jul 22, 2011
Messages
1
Reaction score
0
I just upgraded my voip server. My old voip server was running Asterisk 1.4 and the new server was built using PBX in a Flash with Asterisk 1.8. When using the Asterisk Manager on the old voip server, I was able to figure out that the url for an http connection was slightly different:
old server = http://IPaddress:PORT/asterisk/mxml?action=login&username=USERNAME&secret=PASSWORD
new server = http://IPaddress:PORT/mxml?action=login&username=USERNAME&secret=PASSWORD

The problem is, on the new voip server running Asterisk 1.8, the mxml doesn't work. It looks like it's missing the final ">". for example, here are the two responses for the old version versus the new:

old server:
<ajax-response>
<response type='object' id='unknown'><generic response='Success' message='Authentication accepted' /></response>
</ajax-response>

new server:
<ajax-response>
<response type='object' id='unknown'><generic response='Success' message='Authentication accepted' /></response>
</ajax-response

Notice the missing ">" at the end. This is causing my software to fail with a error saying "The following elements are not closed: ajax-response"

Can anyone help me with this? I assume this is a bug in the newer version of Asterisk?
 

Members online

Forum statistics

Threads
25,809
Messages
167,748
Members
19,238
Latest member
dbradford
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top