Solved

Is there a way two play sounds at once?

Posted on 2008-10-09
5
429 Views
Last Modified: 2013-11-12
Hello,

I would like to play two sounds at once thru a ZAP channel.
For example, If the client is listening to the MOH I would like to play an announcement without disrrupting the MOH (Music on Hold)

I browsed for some info and got the following link:
http://www.russellbryant.net/blog/2007/09/05/new-asterisk-api-audiohooks/
It claims to do exactly that but... it also says that Chanspy my question is.. how?

it also says that Chanspy and JACK interfaces for Asterisk can do it...  http://www.russellbryant.net/blog/2008/01/13/jack-interfaces-for-asterisk/

does someone know how?
coul you please post the code for doing this in a perl or agi app or a dialplan?

thank you!

0
Comment
Question by:Xhizors
  • 2
  • 2
5 Comments
 

Author Comment

by:Xhizors
ID: 22683890
It seems that this module will work... but
Does any one knows were can I download this app?
app_externalivr.so
 
 
0
 
LVL 17

Expert Comment

by:mjcoyne
ID: 22693860
That is a Linux shared object.  Is your platform Linux?  See
http://rpmfind.net/linux/rpm2html/search.php?query=app_externalivr.so
0
 

Author Comment

by:Xhizors
ID: 22718433
Thank you very much!,

Do you know how to use it?
I have the command: http://www.voip-info.org/wiki/index.php?page=Asterisk+cmd+ExternalIVR


Here's a link where you can find and example but it isn't there.
http://www.voip-info.org/wiki/index.php?page_id=2845&tk=6f27781c1728a2a85bbb&comments_page=1
www.simplified.org


Do you know how to play two sound files at once using the dialplan or agi/perl?

thank you
0
 
LVL 17

Accepted Solution

by:
mjcoyne earned 500 total points
ID: 22719176
"Do you know how to use it?"

Sorry, I don't.  But, I can tell you a shared object file is very much like a Windows .dll (dynamically linked library) file in that it is not an application, but instead is a file used by an application, and thus is not meant to be run directly.

In general, it doesn't seem to me that it would be technically difficult to play two sounds at once, just have separate instances play separate sounds simultaneously, sort of like having two mp3 players runninng and playing different songs simultaneously.

It might, of course, be simpler to merge your two sound files into one, thus avoiding the difficulty of playing two files at once.  There are many apps that will allow you to do that; if you're files are .wav files, see WAV Joiner (http://www.cfbsoftware.com/wavjoiner/wavjoiner.aspx), for example.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question