Solved

Is there a way two play sounds at once?

Posted on 2008-10-09
5
458 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

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…
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…
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…
Six Sigma Control Plans

615 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