As usual you are awesome! I'll start testing this and put it on my
documentation to-do list.
-MC
________________________________
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of
Anthony Minessale
Sent: Friday, August 01, 2008 8:06 AM
To: freeswitch-users at 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 <mcollins at fcnetwork.com>
Post by UVhttp://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
Post by UVAnyway, 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
Post by UVanyone can shed some light on this...
-----Original Message-----
From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael
S Collins
Sent: Friday, August 01, 2008 2:17 PM
To: freeswitch-users at 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.
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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Post by UVhttp://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 at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
Post by UVhttp://www.freeswitch.org
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users at 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 at hotmail.com
<mailto:MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
<mailto:PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
<mailto:sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080801/b7d97b89/attachment-0001.html