Author Topic: AMI GetConfigJSON  (Read 4079 times)

explinux

  • Jr. Member
  • **
  • Posts: 30
  • Karma: 0
    • View Profile
AMI GetConfigJSON
« on: April 30, 2012, 11:49:31 AM »
Hi,

i would use GetConfigJSON action of the AMI Interfaces in order to get the extensions list. But GetConfigJSON action does not download the equal symbol

"103":["typefriend","secretarca103dia","contextSIP-PHONE-11315064374f3e3337376b5","calleridTest 103 iPhone <103>","hostdynamic","languageen-us","natyes","dtmfmodeauto","qualifyyes","directmediano","busylevel2","disallowall","allowulaw","allowalaw","allowgsm","phone-mac-typeyealink","phone-mac0015652a01c8"],"104":["typefriend","secretarca104dia","contextSIP-PHONE-9746559694f43dd576c956","calleridTest 104 <104>","hostdynamic","languageit-it","natyes","dtmfmodeauto","qualifyyes","directmediano","busylevel2","disallowall","allowg722","phone-mac-typeyealink","phone-mac0015652a01c8"]}

I can't get correct information without the equal symbols in the string "typefriend", for example.


It's a bug of Askozia or Asterisk? It will fixed?
Very thanks

Explinux

Sebastian

  • Askozia Staff
  • Hero Member
  • *
  • Posts: 1139
  • Karma: 43
    • View Profile
Re: AMI GetConfigJSON
« Reply #1 on: May 02, 2012, 09:47:15 AM »
Hi,

that might be an escape problem.

Unfortunately, I don't understand what you mean with 'equal symbol (=)'.  ???

Sebastian


explinux

  • Jr. Member
  • **
  • Posts: 30
  • Karma: 0
    • View Profile
Re: AMI GetConfigJSON
« Reply #2 on: May 02, 2012, 01:22:43 PM »
the string "typefriend" should be "type=friend" not "typefriend", or should be a child element with another child element, the value. So it is impossible to distinguish the key from the value.

Explinux