[asterisk-users] Play a file while transfering a call

Danny Nicholas danny at debsinc.com
Fri Jun 26 13:03:25 CDT 2009


Yes, MOH requires a static configuration, but there is virtually no limit to
the number of classes you can define.  You can also have single or multiple
files in each class.  You could set up a database assigning a class to
extensions or groups of extensions and set the class before dialing based on
that.  For example:

 

-          exten => s,1,set(ONHOLD=$DB(HoldClass/${EXTEN})

-          exten => s,2,SetMusicOnHold(${ONHOLD})

-          exten => s,3,Dial


 

This would read the Asterisk database to see which class the exten had
recorded, set the class to it and activate when needed.

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Julien
Chavanton
Sent: Friday, June 26, 2009 11:07 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion; Asterisk Users
Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Play a file while transfering a call

 

Optaining the name of the file to play dynamicaly is not a problem, the
limition is that musiconhold require a static configuration in a config
file. I was looking for a way to specify/select the file to play from the
Dialplan.

 

  _____  

From: asterisk-users-bounces at lists.digium.com on behalf of Danny Nicholas
Sent: Thu 04/06/2009 2:26 PM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: Re: [asterisk-users] Play a file while transfering a call

You could call an AGI to read a database based on the caller/extension and
play any number of MOH files.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Philipp
Kempgen
Sent: Thursday, June 04, 2009 1:54 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Play a file while transfering a call

Julien Chavanton schrieb:

> I need to be able to play different files when calling different numbers
dynamicaly from the dial-plan, this solution will still require the creation
of multiple static entry in  "musiconhold.conf"
> 
> For example, if it was possible to specify one file from the "Dial CMD" in
the dial plan, it would be easy to acheive.

How about multiple music classes in musiconhold.conf and
Set(CHANNEL(musicclass)=foobar) in the dialplan then?


    Philipp Kempgen
--
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
<http://www.amooma.de/> 
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com <http://the-asterisk-book.com/>  -
http://das-asterisk-buch.de <http://das-asterisk-buch.de/> 
Videos of the AMOOCON VoIP conference 2009 ->  http://www.amoocon.de
<http://www.amoocon.de/> 
--

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com
<http://www.api-digital.com/>  --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com
<http://www.api-digital.com/>  --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090626/064c78e6/attachment.htm 


More information about the asterisk-users mailing list