<div dir="ltr"><div><div><span style="white-space:pre">Hi all,</span></div><div><span style="white-space:pre"><br></span></div><div><span style="white-space:pre">Thank you to all contributing to FreeSWITCH !</span></div><div><span style="white-space:pre"><br></span></div><div><span style="white-space:pre">I&#39;m working on a IVR project where logic is implemented on a HTTP server.</span></div><div><span style="white-space:pre">We are leaving Twilio because we now need to record and live stream the session to the HTTP server in WAV format (chunked transfer encoding).</span></div><div><span style="white-space:pre"><br></span></div><div><span style="white-space:pre"><b>mod_httapi</b> looks great (HT TAPI very similar to Twilio&#39;s) but it seems that the records are first saved to disk before there are sent to the server as chunked data. </span></div><div><span style="white-space:pre">We need the transfer to start as soon as the recording starts.</span></div><div><span style="white-space:pre"><br></span></div><div><span style="white-space:pre"><b>mod_shout</b> does start the request almost as the records starts but it does not support WAV file and shout:// is not exactly a HTTP request (SOURCE method instead of PUT).</span></div><div><span style="white-space:pre"><br></span></div><div><span style="white-space:pre">Is there a way to use these modules to achieve our goal ?</span></div><div><span style="white-space:pre"><br></span></div><div><span style="white-space:pre">If not, we are willing to author a specific module or rather contribute to the existing ones.</span></div><div><span style="white-space:pre"><br></span></div><div><span style="white-space:pre">We&#39;ve identified two approaches:</span></div><div><ol><li><span style="white-space:pre">From <b>mod_httapi</b>
</span>Modify mod_httapi to directly stream the record instead of completely saving it to disk before the HTTP chunked transfer starts.<br>This seems the most logical but with more than 3000 lines, mod_httapi does not seem to be the easiest module to build upon for newcomers!<br><span style="white-space:pre"><br></span></li><li>From <b>mod_shout</b></li><ol><li>Modify libshoot to replace the custom SOURCE method with standard HTTP PUT method</li><li>Modify mod_shout to support wav files</li><li>Implement our IVR in script (javascript/lua)</li></ol></ol></div><div><span style="white-space:pre">What do you think ?</span></div><div><span style="white-space:pre"><br></span></div><div><span style="white-space:pre">Thank you for your help.</span></div><div><span style="white-space:pre"><br></span></div><div><span style="white-space:pre">Cheers,</span></div><div><span style="white-space:pre">Vincent</span></div></div>
</div>