<HTML dir=ltr><HEAD><TITLE>Re: [asterisk-users] Play a file while transfering a call</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText6751 dir=ltr>
<DIV dir=ltr><FONT face=Verdana color=#000000 size=2>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.</FONT></DIV></DIV>
<DIV dir=ltr>
<DIV dir=ltr><BR></DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> asterisk-users-bounces@lists.digium.com on behalf of Danny Nicholas<BR><B>Sent:</B> Thu 04/06/2009 2:26 PM<BR><B>To:</B> 'Asterisk Users Mailing List - Non-Commercial Discussion'<BR><B>Subject:</B> Re: [asterisk-users] Play a file while transfering a call<BR></FONT><BR></DIV></DIV>
<DIV>
<P><FONT size=2>You could call an AGI to read a database based on the caller/extension and<BR>play any number of MOH files.<BR><BR>-----Original Message-----<BR>From: asterisk-users-bounces@lists.digium.com<BR>[<A href="mailto:asterisk-users-bounces@lists.digium.com">mailto:asterisk-users-bounces@lists.digium.com</A>] On Behalf Of Philipp<BR>Kempgen<BR>Sent: Thursday, June 04, 2009 1:54 AM<BR>To: Asterisk Users Mailing List - Non-Commercial Discussion<BR>Subject: Re: [asterisk-users] Play a file while transfering a call<BR><BR>Julien Chavanton schrieb:<BR><BR>> I need to be able to play different files when calling different numbers<BR>dynamicaly from the dial-plan, this solution will still require the creation<BR>of multiple static entry in "musiconhold.conf"<BR>> <BR>> For example, if it was possible to specify one file from the "Dial CMD" in<BR>the dial plan, it would be easy to acheive.<BR><BR>How about multiple music classes in musiconhold.conf and<BR>Set(CHANNEL(musicclass)=foobar) in the dialplan then?<BR><BR><BR> Philipp Kempgen<BR>--<BR>AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> <A href="http://www.amooma.de/">http://www.amooma.de</A><BR>Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998<BR>Asterisk: <A href="http://the-asterisk-book.com/">http://the-asterisk-book.com</A> - <A href="http://das-asterisk-buch.de/">http://das-asterisk-buch.de</A><BR>Videos of the AMOOCON VoIP conference 2009 -> <A href="http://www.amoocon.de/">http://www.amoocon.de</A><BR>--<BR><BR>_______________________________________________<BR>-- Bandwidth and Colocation Provided by <A href="http://www.api-digital.com/">http://www.api-digital.com</A> --<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options visit:<BR> <A href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A><BR><BR><BR>_______________________________________________<BR>-- Bandwidth and Colocation Provided by <A href="http://www.api-digital.com/">http://www.api-digital.com</A> --<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options visit:<BR> <A href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</A><BR></FONT></P></DIV></BODY></HTML>