/webapi/ adds an implicit "Content-type: text/html" in the lastest revision i also added /txtapi/ which auto-adds a "Content-type: text/plain" /api/ by itself adds no Content-Type so the api command can set it's own. Some of the smarter commands like "show" and "status" can tell they are being accessed over the web and act accordingly with /api /txtapi/ and /webapi/ On Fri, Aug 1, 2008 at 5:05 AM, Michael Collins <mcollins@fcnetwork.com>wrote:
I think you meant this command: http://fs.ip:8080/webapi/sofia?status%20profile%20internal
Sorry, and yes. :) The issue also is apparent when doing the "version" api: http://fs.ip:8080/api/version yields nothing http://fs.ip:8080/webapi/version yields the correct information
In any case I just want to make sure that this isn't a bug but rather normal behavior for a specific reason. I don't suspect that it is terribly important in the grand scheme but if we can get it documented that might save some n00b's a little trouble when they start using api/webapi.
Thanks, MC
Anyway, I've been digging into the XML-RPC internals and couldn't make much sense of it either - especially with mod voicemail.
It would be great if we had a reference to all xml-rpc links.
I'd be happy assisting wikifying it but I got to a dead-end there so
if
anyone can shed some light on this...
-----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael S Collins Sent: Friday, August 01, 2008 2:17 PM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] FS webapi vs api question
Could someone please confirm this behavior and comment on whether it is expected or not?
Using the api or webapi from mod_xml_rpc, one can fetch CLI commands. Some commands seem to work well using either method and others do not. Try these two commands and tell me what you see: http://fs.ip:8080/webapi/sofia?profile internal http://fs.ip:8080/api/sofia?profile internal
Normally the webapi wraps the return data or adds a content type header to make it browser friendly. The api just dumps the data raw. However there are cases where api returns partial or no data. Another example is the command oz?list. It works fine with webapi but returns nothing with api.
If you know the scoop on this could you please enlighten me?
Thanks!
-MC
Sent from my iPhone
_______________________________________________ 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.10/1584 - Release Date: 31/07/2008 12:00
No virus found in this outgoing message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.5.10/1584 - Release Date: 31/07/2008 12:00
_______________________________________________ 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
_______________________________________________ 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