Thomas Winter
2008-Jun-24 09:22 UTC
[asterisk-users] Queue with different music for each caller
Hi, is there an possibilty to have for each caller different music when queued. I see there only the global musiconhold = default in queues.conf, what menas same musci for all waiting callers. Any other idea to realize this? best regards Thomas
Martin Schrott - thinking:systems
2008-Jun-24 13:22 UTC
[asterisk-users] Queue with different music for each caller
Hello Thomas you can use different music for each caller if you like. in extensions.conf you can set the music class. exten => s,n,Set(CHANNEL(musicclass)=yourmusicforthiscaller) and if you like different music for each caller you can set a variable with the musicname and then set the musicclass: exten => s,n,Set(mymusicclass=${CALLERID(num)}musicclass) exten => s,n,Set(CHANNEL(musicclass)=${mymusicclass}) so you set the music for each calling number when the caller has the number 1234 the music will be 1234musicclass when the caller has the cid 456 the music will be 456musicclass you see, everything is possible. hope to help, Martin ----- Original Message ----- From: "Thomas Winter" <thowinter at googlemail.com> To: <asterisk-users at lists.digium.com> Sent: Tuesday, June 24, 2008 11:22 AM Subject: [asterisk-users] Queue with different music for each caller Hi, is there an possibilty to have for each caller different music when queued. I see there only the global musiconhold = default in queues.conf, what menas same musci for all waiting callers. Any other idea to realize this? best regards Thomas _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Thomas Winter
2008-Jun-24 15:50 UTC
[asterisk-users] Queue with different music for each caller
On Tuesday 24 June 2008 15:22, Martin Schrott - thinking:systems wrote:> Hello Thomas > > > you can use different music for each caller if you like. > > in extensions.conf you can set the music class. > > exten => s,n,Set(CHANNEL(musicclass)=yourmusicforthiscaller)Hi Martin, thanks for your suggestion, I forgot to notice that Iam still using 1.2.X Jun 24 17:45:31 ERROR[17784]: pbx.c:1437 ast_func_write: Function CHANNEL not registered So, this didnt work for me. best regards Thomas
Martin Schrott - thinking:systems
2008-Jun-25 04:55 UTC
[asterisk-users] Queue with different music for each caller
Hello Thomas, no problem. In asterisk <1.6 use SetMusicOnHold(musiconholdname) then it will work in older Asterisk versions! br, Martin ----- Original Message ----- From: "Thomas Winter" <thowinter at googlemail.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Sent: Tuesday, June 24, 2008 5:50 PM Subject: Re: [asterisk-users] Queue with different music for each caller On Tuesday 24 June 2008 15:22, Martin Schrott - thinking:systems wrote:> Hello Thomas > > > you can use different music for each caller if you like. > > in extensions.conf you can set the music class. > > exten => s,n,Set(CHANNEL(musicclass)=yourmusicforthiscaller)Hi Martin, thanks for your suggestion, I forgot to notice that Iam still using 1.2.X Jun 24 17:45:31 ERROR[17784]: pbx.c:1437 ast_func_write: Function CHANNEL not registered So, this didnt work for me. best regards Thomas _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Thomas Winter
2008-Jun-26 09:36 UTC
[asterisk-users] Queue with different music for each caller
Hi, I tried this before I ask here on the list. In 1.2 SetMusicOnHold did not work. The Moh class defined in queues.conf is overwriting any SetMusicOnHold values of the caller channel. You can see this if you use periodic announce, the Moh call is printed in the CLI and is allways the class defines in queues.conf. I have now the choice to switch to 1.4 or implement for every music an single queue. best regards Thomas On Wednesday 25 June 2008 06:55, Martin Schrott - thinking:systems wrote:> Hello Thomas, > > no problem. > In asterisk <1.6 use > SetMusicOnHold(musiconholdname) > > then it will work in older Asterisk versions! > > br, > Martin > > ----- Original Message ----- > From: "Thomas Winter" <thowinter at googlemail.com> > To: "Asterisk Users Mailing List - Non-Commercial Discussion" > <asterisk-users at lists.digium.com> > Sent: Tuesday, June 24, 2008 5:50 PM > Subject: Re: [asterisk-users] Queue with different music for each caller > > On Tuesday 24 June 2008 15:22, Martin Schrott - thinking:systems wrote: > > Hello Thomas > > > > > > you can use different music for each caller if you like. > > > > in extensions.conf you can set the music class. > > > > exten => s,n,Set(CHANNEL(musicclass)=yourmusicforthiscaller) > > Hi Martin, > > thanks for your suggestion, I forgot to notice that Iam still using 1.2.X > > Jun 24 17:45:31 ERROR[17784]: pbx.c:1437 ast_func_write: Function CHANNEL > not > registered > > So, this didnt work for me. > > best regards > Thomas > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > 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 -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users