javascript access to conf/directory/default
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@feith.com | | John Wehle | Fax: 1-215-540-5495 | | -------------------------------------------------------------------------
that's correct. It was a bug. Fixed in tree. On Fri, Nov 14, 2008 at 3:56 PM, John Wehle <john@feith.com> wrote:
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@feith.com | | John Wehle | Fax: 1-215-540-5495 | | -------------------------------------------------------------------------
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (2)
-
Anthony Minessale
-
John Wehle