<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>As usual you are awesome! I’ll
start testing this and put it on my documentation to-do list.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>-MC<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Anthony Minessale<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, August 01, 2008 8:06
AM<br>
<b><span style='font-weight:bold'>To:</span></b>
freeswitch-users@lists.freeswitch.org<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Freeswitch-users] FS
webapi vs api question</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>/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>
<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Fri, Aug 1, 2008 at 5:05 AM, Michael Collins <<a
href="mailto:mcollins@fcnetwork.com" target="_blank">mcollins@fcnetwork.com</a>>
wrote:<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>> 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><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>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"><span style='color:#888888'>MC</span></font><o:p></o:p></span></font></p>
<div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><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><o:p></o:p></span></font></p>
</div>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><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<o:p></o:p></span></font></p>
</div>
</div>
</div>
</body>
</html>