1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Ajax Bug Asterisk 1.8 Manager using mxml

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

  1. jbarrett

    jbarrett
    Expand Collapse
    New Member

    Joined:
    Jul 22, 2011
    Messages:
    1
    Likes Received:
    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?
     
  2. wardmundy

    wardmundy
    Expand Collapse
    Nerd Uno

    Joined:
    Oct 12, 2007
    Messages:
    12,484
    Likes Received:
    1,818
  3. malcolmd

    malcolmd
    Expand Collapse
    Guru

    Joined:
    Aug 12, 2010
    Messages:
    101
    Likes Received:
    7

Share This Page