<div dir="ltr">/webapi/ adds an implicit &quot;Content-type: text/html&quot;<br>in the lastest revision i also added<br>/txtapi/ which auto-adds a &quot;Content-type: text/plain&quot;<br>/api/ by itself adds no Content-Type so the api command can set it&#39;s own.<br>
<br>Some of the smarter commands like &quot;show&quot; and &quot;status&quot; 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">&lt;<a href="mailto:mcollins@fcnetwork.com" target="_blank">mcollins@fcnetwork.com</a>&gt;</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>&gt; I think you meant this command:<br>
&gt; <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. :) &nbsp;The issue also is apparent when doing the &quot;version&quot;<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&#39;t a bug but rather<br>
normal behavior for a specific reason. &nbsp;I don&#39;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&#39;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>
&gt;<br>
&gt; Anyway, I&#39;ve been digging into the XML-RPC internals and couldn&#39;t make<br>
&gt; much<br>
&gt; sense of it either - especially with mod voicemail.<br>
&gt;<br>
&gt; It would be great if we had a reference to all xml-rpc links.<br>
&gt;<br>
&gt; I&#39;d be happy assisting wikifying it but I got to a dead-end there so<br>
if<br>
&gt; anyone can shed some light on this...<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a><br>
&gt; [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] On Behalf Of<br>
&gt; Michael<br>
&gt; S Collins<br>
&gt; Sent: Friday, August 01, 2008 2:17 PM<br>
&gt; To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
&gt; Subject: [Freeswitch-users] FS webapi vs api question<br>
&gt;<br>
&gt; Could someone please confirm this behavior and comment on whether it<br>
&gt; is expected or not?<br>
&gt;<br>
&gt; Using the api or webapi from mod_xml_rpc, one can fetch CLI commands.<br>
&gt; Some commands seem to work well using either method and others do not.<br>
&gt; Try these two commands and tell me what you see:<br>
&gt; <a href="http://fs.ip:8080/webapi/sofia?profile" target="_blank">http://fs.ip:8080/webapi/sofia?profile</a> internal<br>
&gt; <a href="http://fs.ip:8080/api/sofia?profile" target="_blank">http://fs.ip:8080/api/sofia?profile</a> internal<br>
&gt;<br>
&gt; Normally the webapi wraps the return data or adds a content type<br>
&gt; header to make it browser friendly. The api just dumps the data raw.<br>
&gt; However there are cases where api returns partial or no data. Another<br>
&gt; example is the command oz?list. It works fine with webapi but returns<br>
&gt; nothing with api.<br>
&gt;<br>
&gt; If you know the scoop on this could you please enlighten me?<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt; -MC<br>
&gt;<br>
&gt; Sent from my iPhone<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;<br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; No virus found in this incoming message.<br>
&gt; Checked by AVG - <a href="http://www.avg.com" target="_blank">http://www.avg.com</a><br>
&gt; Version: 8.0.138 / Virus Database: 270.5.10/1584 - Release Date:<br>
&gt; 31/07/2008<br>
&gt; 12:00<br>
&gt;<br>
&gt; No virus found in this outgoing message.<br>
&gt; Checked by AVG - <a href="http://www.avg.com" target="_blank">http://www.avg.com</a><br>
&gt; Version: 8.0.138 / Virus Database: 270.5.10/1584 - Release Date:<br>
&gt; 31/07/2008<br>
&gt; 12:00<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Freeswitch-users mailing list<br>
&gt; <a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;<br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <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>