Re: [Asterisk-Users] default music source for SIP channel
Lance Arbuckle wrote: Thanks Kevin, but boy, do I feel dumb. Maybe someone could update the MusicOnHold wiki page and add SetMusicOnHold to the Also See section. Added to wiki and submitted a patch with new show application musiconhold help text to reflect this. /O ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] default music source for SIP channel
Lance Arbuckle wrote: So, why does zapata.conf accept musiconhold=class yet sip.conf ignores a similar statement ? Can anyone give me an example of how to control the MOH class for a SIP channel ? Because no one added that feature to chan_sip.c For now, use setmusiconhold, then you're welcome to submit a bug report to bugs.digium.com. If you're a programmer, give it a try and create a patch. If you aren't familiar with programming, maybe someone else will find the inspiration to fix this. At least, it will be filed in the repository. Thank you for your help. /O ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] default music source for SIP channel
Olle E. Johansson wrote: Lance Arbuckle wrote: So, why does zapata.conf accept musiconhold=class yet sip.conf ignores a similar statement ? Can anyone give me an example of how to control the MOH class for a SIP channel ? Because no one added that feature to chan_sip.c ah, I thought I was going nuts, yet again :) For now, use setmusiconhold, then you're welcome to submit a bug report to bugs.digium.com. If you're a programmer, give it a try and create a patch. If you aren't familiar with programming, maybe someone else will find the inspiration to fix this. At least, it will be filed in the repository. Thank you for your help. /O I'd be happy to work on this but, alas, I haven't a programming clue. I don't think this is a big deal bug wise, but it sure would be nice from a consistancy standpoint :) Thanks for the reply... -Lance ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] default music source for SIP channel
Hi! Thanks Kevin, but boy, do I feel dumb. Maybe someone could update the MusicOnHold wiki page and add SetMusicOnHold to the Also See section. Just login to the Wiki and do that yourself. That's the idea of a Wiki! Greez, Philipp ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[Asterisk-Users] default music source for SIP channel
The wiki says this about the MusicOnHold command: Plays hold music specified by class. If omitted, the default music source for the channel will be used. http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20MusicOnHold How do I set the default music on hold class for the SIP channel ? I tried adding musiconhold=test to my sip.conf. musiconhold.conf looks like this: [classes] default = quietmp3:/var/lib/asterisk/mohmp3 loud = mp3:/var/lib/asterisk/mohmp3 random = quietmp3:/var/lib/asterisk/mohmp3,-z test = quietmp3:/var/lib/asterisk/mohmp3,-z in extensions.conf I did: exten = 6000,1,Answer exten = 6000,2,MusicOnHold When I dial 6000 from a SIP phone ( xlite), musiconhold starts to play, but from the 'default' class. What am I screwing up ? -Lance ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
RE: [Asterisk-Users] default music source for SIP channel
The wiki says this about the MusicOnHold command: Plays hold music specified by class. If omitted, the default music source for the channel will be used. http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20MusicOnHold How do I set the default music on hold class for the SIP channel ? I tried adding musiconhold=test to my sip.conf. musiconhold.conf looks like this: [classes] default = quietmp3:/var/lib/asterisk/mohmp3 loud = mp3:/var/lib/asterisk/mohmp3 random = quietmp3:/var/lib/asterisk/mohmp3,-z test = quietmp3:/var/lib/asterisk/mohmp3,-z in extensions.conf I did: exten = 6000,1,Answer exten = 6000,2,MusicOnHold When I dial 6000 from a SIP phone ( xlite), musiconhold starts to play, but from the 'default' class. What am I screwing up ? -Lance -= Info about application 'SetMusicOnHold' =- [Synopsis]: Set default Music On Hold class [Description]: SetMusicOnHold(class): Sets the default class for music on hold for a given channel. When music on hold is activated, this class will be used to select which music is played. Kevin ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] default music source for SIP channel
[EMAIL PROTECTED] wrote: The wiki says this about the MusicOnHold command: Plays hold music specified by class. If omitted, the default music source for the channel will be used. http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20MusicOnHold How do I set the default music on hold class for the SIP channel ? I tried adding musiconhold=test to my sip.conf. musiconhold.conf looks like this: [classes] default = quietmp3:/var/lib/asterisk/mohmp3 loud = mp3:/var/lib/asterisk/mohmp3 random = quietmp3:/var/lib/asterisk/mohmp3,-z test = quietmp3:/var/lib/asterisk/mohmp3,-z in extensions.conf I did: exten = 6000,1,Answer exten = 6000,2,MusicOnHold When I dial 6000 from a SIP phone ( xlite), musiconhold starts to play, but from the 'default' class. What am I screwing up ? -Lance -= Info about application 'SetMusicOnHold' =- [Synopsis]: Set default Music On Hold class [Description]: SetMusicOnHold(class): Sets the default class for music on hold for a given channel. When music on hold is activated, this class will be used to select which music is played. Kevin Thanks Kevin, but boy, do I feel dumb. Maybe someone could update the MusicOnHold wiki page and add SetMusicOnHold to the Also See section. -Lance ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [Asterisk-Users] default music source for SIP channel
Lance Arbuckle wrote: [EMAIL PROTECTED] wrote: The wiki says this about the MusicOnHold command: Plays hold music specified by class. If omitted, the default music source for the channel will be used. http://www.voip-info.org/tiki-index.php?page=Asterisk%20cmd%20MusicOnHold ok, I read the above statement from the wiki to mean a channel type like ZAP or SIP or whatever. Is this correct ? Now, over here in the wiki http://www.voip-info.org/wiki-Asterisk+config+musiconhold.conf it says: Editing your files to enable MusicOnHold In /etc/asterisk/zapata.conf, add the line musiconhold=default under [channels] context To me this means that the default MusicOnHold (MOH) class can be set for all Zap channels. And this seams to work. I can do musiconhold=random and all calls from zap channels get MOH class random. If I change musiconhold=random to musiconhold=test all Zap calls get the new class test. For calls initiated from a SIP client, the SIP client always gets the MOH class default. I even reworked my sip.conf to send all sip calls to [from-sip] in extensions.conf [from-sip] exten = s,1,setmusiconhold(test) include = from-internal So, why does zapata.conf accept musiconhold=class yet sip.conf ignores a similar statement ? Can anyone give me an example of how to control the MOH class for a SIP channel ? Thanks ___ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users