<div dir="ltr">This is not correct.<div><br></div><div style>If you have mod_httapi loaded you can just put http urls in as a playback format, no need to use http_cache</div><div style><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, Apr 23, 2013 at 9:53 AM, Srigo <span dir="ltr">&lt;<a href="mailto:ksrigo@gmail.com" target="_blank">ksrigo@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I want to use http_cache to play a file in httapi dialplan but its not<br>
working. Here is what im getting.<br>
<br>
Here is my httapi xml:<br>
<br>
&lt;document xmlns:xs=&quot;<a href="http://www.w3.org/2001/XMLSchema" target="_blank">http://www.w3.org/2001/XMLSchema</a>&quot;<br>
type=&quot;xml/freeswitch-httapi&quot;&gt;<br>
   &lt;params/&gt;<br>
   &lt;variables&gt;<br>
      &lt;dtmf&gt;null&lt;/dtmf&gt;<br>
   &lt;/variables&gt;<br>
   &lt;work&gt;<br>
      &lt;execute application=&quot;export&quot; data=&quot;app_id=${app_id}&quot;/&gt;<br>
      &lt;execute application=&quot;log&quot;<br>
               data=&quot;DEBUG: Matching calendar: opening_hours, status:open&quot;/&gt;<br>
      &lt;execute application=&quot;flush_dtmf&quot;/&gt;<br>
      &lt;execute application=&quot;log&quot;<br>
               data=&quot;INFO:<br>
application=ivr;value=<a href="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" target="_blank">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</a>&quot;/&gt;<br>

      &lt;execute application=&quot;set&quot;<br>
<br>
data=&quot;${http_prefetch(<a href="http://xxxxxxx.com:8080/tel/media_srv/data/iBrowse/ib_fr_wel.wav)" target="_blank">http://xxxxxxx.com:8080/tel/media_srv/data/iBrowse/ib_fr_wel.wav)</a>}&quot;/&gt;<br>
      &lt;execute application=&quot;set&quot;<br>
<br>
data=&quot;file_cached=${http_get(<a href="http://xxxxxxx.com:8080/tel/media_srv/data/iBrowse/ib_fr_wel.wav)" target="_blank">http://xxxxxxx.com:8080/tel/media_srv/data/iBrowse/ib_fr_wel.wav)</a>}&quot;/&gt;<br>
      &lt;execute application=&quot;set&quot; data=&quot;app_id=593924623&quot;/&gt;<br>
      &lt;execute application=&quot;set&quot; data=&quot;story_id=1&quot;/&gt;<br>
      &lt;playback name=&quot;user_entry&quot;<br>
<br>
file=&quot;${http_get(<a href="http://xxxxxxx.com:8080/tel/media_srv/data/iBrowse/ib_fr_wel.wav)" target="_blank">http://xxxxxxx.com:8080/tel/media_srv/data/iBrowse/ib_fr_wel.wav)</a>}&quot;<br>
                error_file=&quot;&quot;<br>
                digit-timeout=&quot;1500&quot;<br>
                input-timeout=&quot;2000&quot;&gt;<br>
         &lt;bind strip=&quot;#&quot;&gt;~\d+&lt;/bind&gt;<br>
         &lt;bind strip=&quot;#&quot;&gt;~\d+&lt;/bind&gt;<br>
         &lt;bind strip=&quot;#&quot;&gt;~\d+&lt;/bind&gt;<br>
      &lt;/playback&gt;<br>
   &lt;/work&gt;<br>
&lt;/document&gt;<br>
<br>
<br>
Here is what im getting in logs:<br>
<br>
2013-04-23 14:40:59.234148 [INFO] switch_ivr_async.c:194 Digit parser<br>
HTTAPI: Setting realm to &#39;default&#39;<br>
2013-04-23 14:40:59.234148 [DEBUG] switch_ivr_async.c:285 Digit parser<br>
HTTAPI: binding \d+/default/0 callback: 0x7fd528bf0840 data: 0x7fd524046640<br>
2013-04-23 14:40:59.234148 [DEBUG] switch_ivr_async.c:285 Digit parser<br>
HTTAPI: binding \d+/default/0 callback: 0x7fd528bf0840 data: 0x7fd524046680<br>
2013-04-23 14:40:59.234148 [DEBUG] switch_ivr_async.c:285 Digit parser<br>
HTTAPI: binding \d+/default/0 callback: 0x7fd528bf0840 data: 0x7fd5240466c0<br>
2013-04-23 14:40:59.234148 [INFO] switch_ivr_async.c:194 Digit parser<br>
HTTAPI: Setting realm to &#39;default&#39;<br>
2013-04-23 14:40:59.234148 [ERR] switch_core_file.c:112 Unknown file Format<br>
[$]<br>
<br>
Thank you<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/http-cache-with-mod-httapi-tp7590025.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/http-cache-with-mod-httapi-tp7590025.html</a><br>

Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">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><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900
</div>