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-boun...@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-boun...@lists.digium.com [mailto:asterisk-users-boun...@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
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users