Re: [asterisk-users] Play a file while transfering a call
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-boun...@lists.digium.com [mailto:asterisk-users-boun...@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-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
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-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
Re: [asterisk-users] Play a file while transfering a call
ok, but the classes in "musiconhold.conf" are static and require a reload to be modified. From: asterisk-users-boun...@lists.digium.com on behalf of Philipp Kempgen Sent: Thu 04/06/2009 7: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 -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
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 Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de -- ___ -- 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 ___ -- 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
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 Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de Videos of the AMOOCON VoIP conference 2009 -> http://www.amoocon.de -- ___ -- 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
Re: [asterisk-users] Play a file while transfering a call
Thank you for sharing your solution, However 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. From: asterisk-users-boun...@lists.digium.com on behalf of Marco Sambo Sent: Wed 03/06/2009 6:52 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Play a file while transfering a call Hi, I do this by creating a directory "waitingtransfer" with only 1 file (the audio message, the name isn't important, so you can change it everytime you want) and then add new musiconhold class with specific "waitingtransfer" directory. In your extensions.conf you change the musiconhold class to waitingmessage class, and that's it! For me works great! 2009/6/2 Julien Chavanton Hi, I would like to play a file "please wait while we transfer your call ..." while dialing I could use music on hold (Dial CMD option "m") but, the file can change very frequently and it could be problematic to edit "musiconhold.conf" and reload everytime there is a new file available. Is there a suggestion on how to simply specify one file ? or create one directory with one file only without having to edit musiconhold.conf ? or is there a different alternative ? ___ -- 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 <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
Re: [asterisk-users] Play a file while transfering a call
Hi, I do this by creating a directory "waitingtransfer" with only 1 file (the audio message, the name isn't important, so you can change it everytime you want) and then add new musiconhold class with specific "waitingtransfer" directory. In your extensions.conf you change the musiconhold class to waitingmessage class, and that's it! For me works great! 2009/6/2 Julien Chavanton > Hi, I would like to play a file "please wait while we transfer your call > ..." while dialing > > I could use music on hold (Dial CMD option "m") but, the file can change > very frequently and it could be problematic to edit "musiconhold.conf" and > reload everytime there is a new file available. > > Is there a suggestion on how to simply specify one file ? or create one > directory with one file only without having to edit musiconhold.conf ? > > or is there a different alternative ? > > > > > ___ > -- 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 > ___ -- 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
[asterisk-users] Play a file while transfering a call
Hi, I would like to play a file "please wait while we transfer your call ..." while dialing I could use music on hold (Dial CMD option "m") but, the file can change very frequently and it could be problematic to edit "musiconhold.conf" and reload everytime there is a new file available. Is there a suggestion on how to simply specify one file ? or create one directory with one file only without having to edit musiconhold.conf ? or is there a different alternative ? <>___ -- 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