kyle.king at quentustech.com
Sun Apr 22 22:32:32 MSD 2012
mod_httapi works by querying a url to obtain the xml code
to run. An example of such code is
<execute application="set" data="Kyle_test=Rock_on"></execute>
<execute application="transfer" data="9888"></execute>
Where FreeSWITCH would fist run 'info' then (if permissions are set) set
a new variable of 'Kyle_test' to the value of 'Rock_on'. FreeSWITCH
would then run 'info' again and transfer to 9888. Just replace the
execute with the action you want and confirm it is in the proper syntax
according to http://wiki.freeswitch.org/wiki/Mod_httapi
If I misunderstood stood your question and you were in fact asking how to
call this from the dial plan, then use <action application="httapi"
data="http://192.168.100.197/cgi-bin/test.cgi"/> where the url in data
is the url that will provide the xml file.
Kyle A. King
Quentus Technologies, INC
Email: kyle.king at quentustech.com
On 04/22/2012 10:51 AM, Tom Parrott wrote:
> Thanks Michael, yes will certainly help keep the page updated if any
> more info comes to light.
> Thanks Avi, when you say "future httpapi requests" do you think that is
> when the httapi application is executed again, or is it a type of
> 'callback' so that when that step in the dialplan is finished the HTTP
> API being called can instruct Freeswitch to perform another step in the
> On 22/04/12 17:46, Tom Parrott wrote:
>> Does anyone have a short guide or blog post on using the mod_httapi.
>> The wiki page is a bit sparse on details of how to actually use this
>> new module, and have not been able to make much progress with it.
>> One of my main questions is what is the "action" property of the work
>> element for.
>> The wiki says it "Change the new target url."
>> But what does that mean?
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users