As usual you are awesome! I'll start testing this and put it on my documentation to-do list.
-MC ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anthony Minessale Sent: Friday, August 01, 2008 8:06 AM To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] FS webapi vs api question /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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] 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 > http://www.freeswitch.org _______________________________________________ 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:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> GTALK/JABBER/PAYPAL:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> iax:[EMAIL PROTECTED]/888 googletalk:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> pstn:213-799-1400
_______________________________________________ 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