[Freeswitch-users] http_cache with mod_httapi
Anthony Minessale
anthony.minessale at gmail.com
Tue Apr 23 19:14:43 MSD 2013
This is not correct.
If you have mod_httapi loaded you can just put http urls in as a playback
format, no need to use http_cache
On Tue, Apr 23, 2013 at 9:53 AM, Srigo <ksrigo at gmail.com> wrote:
> Hi,
>
> I want to use http_cache to play a file in httapi dialplan but its not
> working. Here is what im getting.
>
> Here is my httapi xml:
>
> <document xmlns:xs="http://www.w3.org/2001/XMLSchema"
> type="xml/freeswitch-httapi">
> <params/>
> <variables>
> <dtmf>null</dtmf>
> </variables>
> <work>
> <execute application="export" data="app_id=${app_id}"/>
> <execute application="log"
> data="DEBUG: Matching calendar: opening_hours,
> status:open"/>
> <execute application="flush_dtmf"/>
> <execute application="log"
> data="INFO:
> application=ivr;value=
> http://xxxxxxx.com:8080/tel/media_srv/ib_fr_wel.wav;user_entry=null;max_failure=0;loop=0;app_id=593924623;story_id=1;status=start
> "/>
> <execute application="set"
>
> data="${http_prefetch(
> http://xxxxxxx.com:8080/tel/media_srv/data/iBrowse/ib_fr_wel.wav)}"/>
> <execute application="set"
>
> data="file_cached=${http_get(
> http://xxxxxxx.com:8080/tel/media_srv/data/iBrowse/ib_fr_wel.wav)}"/>
> <execute application="set" data="app_id=593924623"/>
> <execute application="set" data="story_id=1"/>
> <playback name="user_entry"
>
> file="${http_get(
> http://xxxxxxx.com:8080/tel/media_srv/data/iBrowse/ib_fr_wel.wav)}"
> error_file=""
> digit-timeout="1500"
> input-timeout="2000">
> <bind strip="#">~\d+</bind>
> <bind strip="#">~\d+</bind>
> <bind strip="#">~\d+</bind>
> </playback>
> </work>
> </document>
>
>
> Here is what im getting in logs:
>
> 2013-04-23 14:40:59.234148 [INFO] switch_ivr_async.c:194 Digit parser
> HTTAPI: Setting realm to 'default'
> 2013-04-23 14:40:59.234148 [DEBUG] switch_ivr_async.c:285 Digit parser
> HTTAPI: binding \d+/default/0 callback: 0x7fd528bf0840 data: 0x7fd524046640
> 2013-04-23 14:40:59.234148 [DEBUG] switch_ivr_async.c:285 Digit parser
> HTTAPI: binding \d+/default/0 callback: 0x7fd528bf0840 data: 0x7fd524046680
> 2013-04-23 14:40:59.234148 [DEBUG] switch_ivr_async.c:285 Digit parser
> HTTAPI: binding \d+/default/0 callback: 0x7fd528bf0840 data: 0x7fd5240466c0
> 2013-04-23 14:40:59.234148 [INFO] switch_ivr_async.c:194 Digit parser
> HTTAPI: Setting realm to 'default'
> 2013-04-23 14:40:59.234148 [ERR] switch_core_file.c:112 Unknown file Format
> [$]
>
> Thank you
>
>
>
>
> --
> View this message in context:
> http://freeswitch-users.2379917.n2.nabble.com/http-cache-with-mod-httapi-tp7590025.html
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/
Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130423/993b8b67/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list