<div dir="ltr">/webapi/ adds an implicit "Content-type: text/html"<br>in the lastest revision i also added<br>/txtapi/ which auto-adds a "Content-type: text/plain"<br>/api/ by itself adds no Content-Type so the api command can set it's own.<br>
<br>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/<br><br>
<br><br><div class="gmail_quote">On Fri, Aug 1, 2008 at 5:05 AM, Michael Collins <span dir="ltr"><<a href="mailto:mcollins@fcnetwork.com" target="_blank">mcollins@fcnetwork.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>> I think you meant this command:<br>
> <a href="http://fs.ip:8080/webapi/sofia?status%20profile%20internal" target="_blank">http://fs.ip:8080/webapi/sofia?status%20profile%20internal</a><br>
<br>
</div>Sorry, and yes. :) The issue also is apparent when doing the "version"<br>
api:<br>
<a href="http://fs.ip:8080/api/version" target="_blank">http://fs.ip:8080/api/version</a> yields nothing<br>
<a href="http://fs.ip:8080/webapi/version" target="_blank">http://fs.ip:8080/webapi/version</a> yields the correct information<br>
<br>
In any case I just want to make sure that this isn't a bug but rather<br>
normal behavior for a specific reason. I don't suspect that it is<br>
terribly important in the grand scheme but if we can get it documented<br>
that might save some n00b's a little trouble when they start using<br>
api/webapi.<br>
<br>
Thanks,<br>
<font color="#888888">MC<br>
</font><div><div></div><div><br>
><br>
> Anyway, I've been digging into the XML-RPC internals and couldn't make<br>
> much<br>
> sense of it either - especially with mod voicemail.<br>
><br>
> It would be great if we had a reference to all xml-rpc links.<br>
><br>
> I'd be happy assisting wikifying it but I got to a dead-end there so<br>
if<br>
> anyone can shed some light on this...<br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a><br>
> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of<br>
> Michael<br>
> S Collins<br>
> Sent: Friday, August 01, 2008 2:17 PM<br>
> To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
> Subject: [Freeswitch-users] FS webapi vs api question<br>
><br>
> Could someone please confirm this behavior and comment on whether it<br>
> is expected or not?<br>
><br>
> Using the api or webapi from mod_xml_rpc, one can fetch CLI commands.<br>
> Some commands seem to work well using either method and others do not.<br>
> Try these two commands and tell me what you see:<br>
> <a href="http://fs.ip:8080/webapi/sofia?profile" target="_blank">http://fs.ip:8080/webapi/sofia?profile</a> internal<br>
> <a href="http://fs.ip:8080/api/sofia?profile" target="_blank">http://fs.ip:8080/api/sofia?profile</a> internal<br>
><br>
> Normally the webapi wraps the return data or adds a content type<br>
> header to make it browser friendly. The api just dumps the data raw.<br>
> However there are cases where api returns partial or no data. Another<br>
> example is the command oz?list. It works fine with webapi but returns<br>
> nothing with api.<br>
><br>
> If you know the scoop on this could you please enlighten me?<br>
><br>
> Thanks!<br>
><br>
> -MC<br>
><br>
> Sent from my iPhone<br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> No virus found in this incoming message.<br>
> Checked by AVG - <a href="http://www.avg.com" target="_blank">http://www.avg.com</a><br>
> Version: 8.0.138 / Virus Database: 270.5.10/1584 - Release Date:<br>
> 31/07/2008<br>
> 12:00<br>
><br>
> No virus found in this outgoing message.<br>
> Checked by AVG - <a href="http://www.avg.com" target="_blank">http://www.avg.com</a><br>
> Version: 8.0.138 / Virus Database: 270.5.10/1584 - Release Date:<br>
> 31/07/2008<br>
> 12:00<br>
><br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>