Re: [asterisk-users] Music on hold for sub tenants

2008-10-05 Thread Andrew Joakimsen
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 [EMAIL PROTECTED] 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?



___
-- 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


Re: [asterisk-users] Music on hold for sub tenants

2008-10-04 Thread carl Lougher
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 [EMAIL PROTECTED] wrote:

 From: Darrick Hartman [EMAIL PROTECTED]
 Subject: Re: [asterisk-users] Music on hold for sub tenants
 To: Asterisk Users Mailing List - Non-Commercial Discussion 
 asterisk-users@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 [EMAIL PROTECTED]
 wrote:
  
  From: Nhadie [EMAIL PROTECTED]
  Subject: Re: [asterisk-users] Music on hold for
 sub tenants
  To: Asterisk Users Mailing List -
 Non-Commercial Discussion
 asterisk-users@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


  

___
-- 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


[asterisk-users] Music on hold for sub tenants

2008-09-25 Thread carl Lougher
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


Re: [asterisk-users] Music on hold for sub tenants

2008-09-25 Thread Nhadie
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


Re: [asterisk-users] Music on hold for sub tenants

2008-09-25 Thread carl Lougher
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 [EMAIL PROTECTED] wrote:

 From: Nhadie [EMAIL PROTECTED]
 Subject: Re: [asterisk-users] Music on hold for sub tenants
 To: Asterisk Users Mailing List - Non-Commercial Discussion 
 asterisk-users@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


  

___
-- 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


Re: [asterisk-users] Music on hold for sub tenants

2008-09-25 Thread Darrick Hartman
...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 [EMAIL PROTECTED] wrote:
 
 From: Nhadie [EMAIL PROTECTED]
 Subject: Re: [asterisk-users] Music on hold for sub tenants
 To: Asterisk Users Mailing List - Non-Commercial Discussion 
 asterisk-users@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