Solved

Is there a way two play sounds at once?

Posted on 2008-10-09
5
440 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Ever wanted to query Cisco Call Manager CDR records from MS SQL Server? Here's how! CUCM can be configured to upload a CDR file to a given FTP server every minute. This article will show you how to set this up, schedule the import of this data an…
How To Create Custom / Distinctive Ring Tones on Polycom Phones Purpose and Overview When creating a custom ring tone, you have simple aspirations: to make your phone cooler than everyone else's. Perhaps you need a louder ringer. Perhaps you w…
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…

685 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