<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank you Anthony for the quick replay<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>So it will download and cache the file&nbsp;? Is there any parmaters somewhere to define like cache duration and destination folder?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thnk you<o:p></o:p></span></p><p class=MsoNormal><a name="_MailEndCompose"><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></a></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Anthony Minessale<br><b>Sent:</b> mardi 23 avril 2013 17:15<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] http_cache with mod_httapi<o:p></o:p></span></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>This is not correct.<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>If you have mod_httapi loaded you can just put http urls in as a playback format, no need to use http_cache<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>On Tue, Apr 23, 2013 at 9:53 AM, Srigo &lt;<a href="mailto:ksrigo@gmail.com" target="_blank">ksrigo@gmail.com</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>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>&nbsp; &nbsp;&lt;params/&gt;<br>&nbsp; &nbsp;&lt;variables&gt;<br>&nbsp; &nbsp; &nbsp; &lt;dtmf&gt;null&lt;/dtmf&gt;<br>&nbsp; &nbsp;&lt;/variables&gt;<br>&nbsp; &nbsp;&lt;work&gt;<br>&nbsp; &nbsp; &nbsp; &lt;execute application=&quot;export&quot; data=&quot;app_id=${app_id}&quot;/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;execute application=&quot;log&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;data=&quot;DEBUG: Matching calendar: opening_hours, status:open&quot;/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;execute application=&quot;flush_dtmf&quot;/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;execute application=&quot;log&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;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>&nbsp; &nbsp; &nbsp; &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>&nbsp; &nbsp; &nbsp; &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>&nbsp; &nbsp; &nbsp; &lt;execute application=&quot;set&quot; data=&quot;app_id=593924623&quot;/&gt;<br>&nbsp; &nbsp; &nbsp; &lt;execute application=&quot;set&quot; data=&quot;story_id=1&quot;/&gt;<br>&nbsp; &nbsp; &nbsp; &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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error_file=&quot;&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; digit-timeout=&quot;1500&quot;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; input-timeout=&quot;2000&quot;&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;bind strip=&quot;#&quot;&gt;~\d+&lt;/bind&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;bind strip=&quot;#&quot;&gt;~\d+&lt;/bind&gt;<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;bind strip=&quot;#&quot;&gt;~\d+&lt;/bind&gt;<br>&nbsp; &nbsp; &nbsp; &lt;/playback&gt;<br>&nbsp; &nbsp;&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 'default'<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 'default'<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><o:p></o:p></p></div><p class=MsoNormal><br><br clear=all><o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><p class=MsoNormal>-- <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 <o:p></o:p></p></div></div></body></html>