Solved

Is there a way two play sounds at once?

Posted on 2008-10-09
5
412 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
"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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 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

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now