[Freeswitch-users] http_cache with mod_httapi

Srigo ksrigo at gmail.com
Tue Apr 23 18:53:44 MSD 2013


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.



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list