1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Check out the 6 new Certified Incredible PBX Builds for Asterisk 11 and 13 featuring CentOS 6, Ubuntu 14, Raspberry Pi 2, and Asterisk-NOW.
    Dismiss Notice

Ajax Bug Asterisk 1.8 Manager using mxml

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

  1. jbarrett

    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:
    <response type='object' id='unknown'><generic response='Success' message='Authentication accepted' /></response>

    new server:
    <response type='object' id='unknown'><generic response='Success' message='Authentication accepted' /></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

    wardmundy Nerd Uno

  3. malcolmd

    malcolmd Guru

Share This Page