Hello Users, I've been searching for a couple of hours now but I can't find the answers to my questions, so here they go: 1) Is it possible to stream audio files from a webserver during a call by configuring this in the dialplan? Something like Playback(http://myserver.companynetwork/welcome.alaw)? 2) After recording is finished using the Record application, is the recorded file(the audio stream) accessible to send off to an http handler using HTTP POST? I hope someone could help me out. Thanks, Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130108/7f77dad7/attachment.htm>
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Grant Bagdasarian Sent: Tuesday, January 08, 2013 9:24 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Streaming/Recording audio Hello Users, I've been searching for a couple of hours now but I can't find the answers to my questions, so here they go: 1) Is it possible to stream audio files from a webserver during a call by configuring this in the dialplan? Something like Playback(http://myserver.companynetwork/welcome.alaw)? 2) After recording is finished using the Record application, is the recorded file(the audio stream) accessible to send off to an http handler using HTTP POST? I hope someone could help me out. Thanks, Grant 1 . AFAIK, playback is just for local files, not web files. There are options like mpg123 to play streaming audio files - see http://nerdvittles.com/?p=92 2. As long as you save the audio stream in a normal format, this shouldn't be a problem. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130108/c06b9102/attachment.htm>
Hello, For some reason I did not receive any replies related to my question by mail, but I found the topic back on the online mailing archives. I hope by supplying the same subject this email will be logged in my previously created topic instead of a new one. If it does not, I apologize. Regarding my second question, is the recorded stream also available in the dialplan after the recording has finished? Regards, Grant -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130109/6d14bb02/attachment.htm>
On Wed, Jan 9, 2013 at 2:54 AM, Grant Bagdasarian <GB at cm.nl> wrote:> Hello, > > > > For some reason I did not receive any replies related to my question by > mail, but I found the topic back on the online mailing archives. I hope by > supplying the same subject this email will be logged in my previously > created topic instead of a new one. If it does not, I apologize. > > > > Regarding my second question, is the recorded stream also available in the > dialplan after the recording has finished? > > > > Regards, > > > > Grant > >I am not sure what you are asking. What do you mean "available in the dialplan"? What are you trying to do? Did you figure out your streaming question? Not sure if it is deprecated, but app_ices was how I did streaming many moons ago. Thanks, Steve T
On Wed, Jan 9, 2013 at 4:16 AM, Steve Totaro <stotaro at totarotechnologies.com> wrote:> On Wed, Jan 9, 2013 at 2:54 AM, Grant Bagdasarian <GB at cm.nl> wrote: >> Hello, >> >> >> >> For some reason I did not receive any replies related to my question by >> mail, but I found the topic back on the online mailing archives. I hope by >> supplying the same subject this email will be logged in my previously >> created topic instead of a new one. If it does not, I apologize. >> >> >> >> Regarding my second question, is the recorded stream also available in the >> dialplan after the recording has finished? >> >> >> >> Regards, >> >> >> >> Grant >> >> > > I am not sure what you are asking. What do you mean "available in the > dialplan"? What are you trying to do? > > Did you figure out your streaming question? Not sure if it is > deprecated, but app_ices was how I did streaming many moons ago. > > Thanks, > Steve Thttp://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+Ices
Still not receiving emails, but I'll do it like this. Steve, I made an IVR menu where the user has the option to record a message. I've done this using the Record application. Once the recording is finished the user gets the option to save the recorded message. When the user selects this option the recorded message/stream should be sent off to an HTTP handler which capture this and processes the stream and converts it to a valid audio format for playback later. According to the description of the Record application the filename is available in the dialplan once the recording is finished. This is stored in ${RECORDED_FILE}. I was wondering if I could just use CURL and use some variable where the actual the audio stream is stored in and send if off to my HTTP handler. I'm assuming when I just use the ${RECORDED_FILE} variable only the filename will be sent. Should I use the whole path of the recorded file and use it as a parameter in the CURL application? About the streaming, no I haven't figured it out yet. I'll take a look at app_ices. I hope it's not deprecated. Thanks! On Wed, Jan 9, 2013 at 2:54 AM, Grant Bagdasarian <GB at cm.nl<http://lists.digium.com/mailman/listinfo/asterisk-users>> wrote:> Hello,>>>> For some reason I did not receive any replies related to my question by> mail, but I found the topic back on the online mailing archives. I hope by> supplying the same subject this email will be logged in my previously> created topic instead of a new one. If it does not, I apologize.>>>> Regarding my second question, is the recorded stream also available in the> dialplan after the recording has finished?>>>> Regards,>>>> Grant>>I am not sure what you are asking. What do you mean "available in the dialplan"? What are you trying to do? Did you figure out your streaming question? Not sure if it is deprecated, but app_ices was how I did streaming many moons ago. Thanks, Steve T -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130109/e072da7e/attachment.htm>
Regarding the streaming of audio. I thought of another approach, but I'm not sure if Asterisk will allow it. When playing a file they're read from /var/lib/asterisk/sounds/en/. Is it possible to change this directory to a network directory hosted on a windows environment? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130109/594db9cb/attachment-0001.htm>
Hello everyone. The share is working and I'm now able to play audio files from a windows share. Thanks everyone for the help! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130110/ddf44d83/attachment.htm>