[Freeswitch-users] javascript access to conf/directory/default

John Wehle john at feith.com
Fri Nov 14 13:56:42 PST 2008


Okay if I do:

  xml_locate directory domain name 192.251.93.2

at the CLI I get XML.  However, if I run the script:

  var d = apiExecute ("xml_locate", "directory domain name 192.251.93.2");
  console_log ("err", "D " + d + "\n");

it appears that d is empty.  Though:

  var d = apiExecute ("status", "");
  console_log ("err", "D " + d + "\n");

works fine.

What's the proper way to invoke xml_locate from javascript?

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john at feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------





More information about the FreeSWITCH-users mailing list