Howdy, Is there a way to apply a music on hold class to different context user groups? I have multiple clients on my asterisk server and they each want different music on hold. Company A Company B Any help much appreciated.. Thanks, Taff...
Hi, i think you can define it like this: [moh-company-a] mode=files directory=/var/lib/asterisk/moh/companya [moh-company-b] mode=files directory=/var/lib/asterisk/moh/companyb regards, nhadie carl Lougher wrote:> Howdy, > Is there a way to apply a music on hold class to different context user groups? > > I have multiple clients on my asterisk server and they each want different music on hold. > > Company A > Company B > > Any help much appreciated.. > > Thanks, > Taff... > > > > > _______________________________________________ > -- 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 >
Hi, I tried this but it still uses the default moh. Is there some way to define it based on a context in the sip.conf or extensions.conf??? Taff... --- On Fri, 26/9/08, Nhadie <nhadie at gmail.com> wrote:> From: Nhadie <nhadie at gmail.com> > Subject: Re: [asterisk-users] Music on hold for sub tenants > To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> > Date: Friday, 26 September, 2008, 4:10 AM > Hi, > > i think you can define it like this: > > [moh-company-a] > mode=files > directory=/var/lib/asterisk/moh/companya > > [moh-company-b] > mode=files > directory=/var/lib/asterisk/moh/companyb > > regards, > nhadie > > > carl Lougher wrote: > > Howdy, > > Is there a way to apply a music on hold class to > different context user groups? > > > > I have multiple clients on my asterisk server and they > each want different music on hold. > > > > Company A > > Company B > > > > Any help much appreciated.. > > > > Thanks, > > Taff... > > > > > > > > > > _______________________________________________ > > -- 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
...since everyone else top posted. Take a look at the application setmusiconhold. CLI> core show application SetMusicOnHold You can use this in a dialplan as follows: [tenant1incoming] exten => s,1,Wait(1) exten => s,n,Answer() exten => s,n,Background(tenant1sounds/welcome) exten => s,n,SetMusicOnHold(tenant1) [tenant2incoming] exten => s,1,Wait(1) exten => s,n,Answer() exten => s,n,Background(tentant2sounds/welcome) exten => s,n,SetMusicOnHold(tenant2) Use that with the previously supplied info. Darrick carl Lougher wrote:> Hi, > I tried this but it still uses the default moh. Is there some way to define it based on a context in the sip.conf or extensions.conf??? > > Taff... > > > --- On Fri, 26/9/08, Nhadie <nhadie at gmail.com> wrote: > >> From: Nhadie <nhadie at gmail.com> >> Subject: Re: [asterisk-users] Music on hold for sub tenants >> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> >> Date: Friday, 26 September, 2008, 4:10 AM >> Hi, >> >> i think you can define it like this: >> >> [moh-company-a] >> mode=files >> directory=/var/lib/asterisk/moh/companya >> >> [moh-company-b] >> mode=files >> directory=/var/lib/asterisk/moh/companyb >> >> regards, >> nhadie >> >> >> carl Lougher wrote: >>> Howdy, >>> Is there a way to apply a music on hold class to >> different context user groups? >>> I have multiple clients on my asterisk server and they >> each want different music on hold. >>> Company A >>> Company B
This seems to be related to inbound calls. So would this work for music on transfers within that context as well as hitting the hold key on calls? --- On Fri, 26/9/08, Darrick Hartman <dhartman at djhsolutions.com> wrote:> From: Darrick Hartman <dhartman at djhsolutions.com> > Subject: Re: [asterisk-users] Music on hold for sub tenants > To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> > Date: Friday, 26 September, 2008, 4:52 AM > ...since everyone else top posted. > > Take a look at the application setmusiconhold. > > CLI> core show application SetMusicOnHold > > You can use this in a dialplan as follows: > > [tenant1incoming] > exten => s,1,Wait(1) > exten => s,n,Answer() > exten => s,n,Background(tenant1sounds/welcome) > exten => s,n,SetMusicOnHold(tenant1) > > [tenant2incoming] > exten => s,1,Wait(1) > exten => s,n,Answer() > exten => s,n,Background(tentant2sounds/welcome) > exten => s,n,SetMusicOnHold(tenant2) > > Use that with the previously supplied info. > > Darrick > > carl Lougher wrote: > > Hi, > > I tried this but it still uses the default moh. Is > there some way to define it based on a context in the > sip.conf or extensions.conf??? > > > > Taff... > > > > > > --- On Fri, 26/9/08, Nhadie <nhadie at gmail.com> > wrote: > > > >> From: Nhadie <nhadie at gmail.com> > >> Subject: Re: [asterisk-users] Music on hold for > sub tenants > >> To: "Asterisk Users Mailing List - > Non-Commercial Discussion" > <asterisk-users at lists.digium.com> > >> Date: Friday, 26 September, 2008, 4:10 AM > >> Hi, > >> > >> i think you can define it like this: > >> > >> [moh-company-a] > >> mode=files > >> directory=/var/lib/asterisk/moh/companya > >> > >> [moh-company-b] > >> mode=files > >> directory=/var/lib/asterisk/moh/companyb > >> > >> regards, > >> nhadie > >> > >> > >> carl Lougher wrote: > >>> Howdy, > >>> Is there a way to apply a music on hold class > to > >> different context user groups? > >>> I have multiple clients on my asterisk server > and they > >> each want different music on hold. > >>> Company A > >>> Company B > > _______________________________________________ > -- 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
Yes, you can set moh in sip.conf or zapata.conf. The options are mohinterpret= & mohsuggest=. I think last time I used them (1.2.x) they were just moh=.... but it seems mohsuggest=<class> will do what you want it to. On Sat, Oct 4, 2008 at 2:57 PM, carl Lougher <c_lougher at yahoo.co.uk> wrote:> This seems to be related to inbound calls. So would this work for music on transfers within that context as well as hitting the hold key on calls? > >