1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you had a PIAF Forum account in the vBulletin days, log in with your old credentials. Otherwise, sign up again and we'll get you back in business as soon as we can.
  3. A serious FreePBX vulnerability has been reported. Update your Framework Module immediately. Click here for details.
  4. Critical FreePBX vulnerability! Update your server immediately. Details here.

Ajax Bug Asterisk 1.8 Manager using mxml

Discussion in 'Bug Reporting and Fixes' started by jbarrett, Jul 25, 2011.

  1. jbarrett New Member

    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?
  2. wardmundy Nerd Uno

  3. malcolmd Guru

Share This Page