Is there a way two play sounds at once?

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!

XhizorsAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mjcoyneConnect With a Mentor Commented:
"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
 
XhizorsAuthor Commented:
It seems that this module will work... but
Does any one knows were can I download this app?
app_externalivr.so
 
 
0
 
mjcoyneCommented:
That is a Linux shared object.  Is your platform Linux?  See
http://rpmfind.net/linux/rpm2html/search.php?query=app_externalivr.so
0
 
XhizorsAuthor Commented:
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
All Courses

From novice to tech pro — start learning today.