Re: [asterisk-users] realtime music on hold
Hello list ?! Is there anyone that can point me to the documentation please ? I have added a new table like on http://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf With the following values : `musiconhold` (`name`, `directory`, `application`, `mode`, `digit`, `sort`, `format`) VALUES ('testmoh', '/var/lib/asterisk/moh/123456', '', 'files', '', '', ''); Asterisk does not see the new MusicOnHold : asterisk*CLI module reload extconfig [Jul 16 17:11:09] == Parsing '/etc/asterisk/extconfig.conf': [Jul 16 17:11:09] Found [Jul 16 17:11:09] == Binding voicemail to mysql/asterisk/voicemail_users [Jul 16 17:11:09] == Binding sipusers to mysql/asterisk/sip_buddies [Jul 16 17:11:09] == Binding sippeers to mysql/asterisk/sip_buddies [Jul 16 17:11:09] == Binding queues to mysql/asterisk/queues [Jul 16 17:11:09] == Binding queue_members to mysql/asterisk/queue_members [Jul 16 17:11:09] == Binding meetme to mysql/asterisk/conference *[Jul 16 17:11:09] == Binding musiconhold to mysql/asterisk/musiconhold* asterisk*CLI moh reload [Jul 16 17:12:53] == Parsing '/etc/asterisk/musiconhold.conf': [Jul 16 17:12:53] Found asterisk*CLI moh show classes Class: default Mode: files Directory: /var/lib/asterisk/moh My SIPuser test2 has a value testmoh for the field 'musiconhold', but when I put a caller on hold, the musiconhold class stays default. [Jul 16 17:17:27] -- Called test6 [Jul 16 17:17:27] -- SIP/test6-000e is ringing [Jul 16 17:17:30] -- SIP/test6-000e answered SIP/test2-000d *[Jul 16 17:17:33] -- Started music on hold, class 'default', on SIP/test6-000e* Kind regards, Jonas. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] realtime music on hold
It looks like theres no much information out there about using realtime moh Have you tried making an extension that goes to MusicOnHold(testmoh) On Fri, Jul 16, 2010 at 8:21 AM, Jonas Kellens jonas.kell...@telenet.be wrote: Hello list ?! Is there anyone that can point me to the documentation please ? I have added a new table like on http://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf With the following values : `musiconhold` (`name`, `directory`, `application`, `mode`, `digit`, `sort`, `format`) VALUES ('testmoh', '/var/lib/asterisk/moh/123456', '', 'files', '', '', ''); Asterisk does not see the new MusicOnHold : asterisk*CLI module reload extconfig [Jul 16 17:11:09] == Parsing '/etc/asterisk/extconfig.conf': [Jul 16 17:11:09] Found [Jul 16 17:11:09] == Binding voicemail to mysql/asterisk/voicemail_users [Jul 16 17:11:09] == Binding sipusers to mysql/asterisk/sip_buddies [Jul 16 17:11:09] == Binding sippeers to mysql/asterisk/sip_buddies [Jul 16 17:11:09] == Binding queues to mysql/asterisk/queues [Jul 16 17:11:09] == Binding queue_members to mysql/asterisk/queue_members [Jul 16 17:11:09] == Binding meetme to mysql/asterisk/conference [Jul 16 17:11:09] == Binding musiconhold to mysql/asterisk/musiconhold asterisk*CLI moh reload [Jul 16 17:12:53] == Parsing '/etc/asterisk/musiconhold.conf': [Jul 16 17:12:53] Found asterisk*CLI moh show classes Class: default Mode: files Directory: /var/lib/asterisk/moh My SIPuser test2 has a value testmoh for the field 'musiconhold', but when I put a caller on hold, the musiconhold class stays default. [Jul 16 17:17:27] -- Called test6 [Jul 16 17:17:27] -- SIP/test6-000e is ringing [Jul 16 17:17:30] -- SIP/test6-000e answered SIP/test2-000d [Jul 16 17:17:33] -- Started music on hold, class 'default', on SIP/test6-000e Kind regards, Jonas. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello 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 -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] realtime music on hold
On Fri, 2010-07-16 at 09:35 -0700, Kyle Kienapfel wrote: It looks like theres no much information out there about using realtime moh Have you tried making an extension that goes to MusicOnHold(testmoh) On Fri, Jul 16, 2010 at 8:21 AM, Jonas Kellens jonas.kell...@telenet.be wrote: Hello list ?! Is there anyone that can point me to the documentation please ? I have added a new table like on http://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf With the following values : `musiconhold` (`name`, `directory`, `application`, `mode`, `digit`, `sort`, `format`) VALUES ('testmoh', '/var/lib/asterisk/moh/123456', '', 'files', '', '', ''); Asterisk does not see the new MusicOnHold : asterisk*CLI module reload extconfig [Jul 16 17:11:09] == Parsing '/etc/asterisk/extconfig.conf': [Jul 16 17:11:09] Found [Jul 16 17:11:09] == Binding voicemail to mysql/asterisk/voicemail_users [Jul 16 17:11:09] == Binding sipusers to mysql/asterisk/sip_buddies [Jul 16 17:11:09] == Binding sippeers to mysql/asterisk/sip_buddies [Jul 16 17:11:09] == Binding queues to mysql/asterisk/queues [Jul 16 17:11:09] == Binding queue_members to mysql/asterisk/queue_members [Jul 16 17:11:09] == Binding meetme to mysql/asterisk/conference [Jul 16 17:11:09] == Binding musiconhold to mysql/asterisk/musiconhold asterisk*CLI moh reload [Jul 16 17:12:53] == Parsing '/etc/asterisk/musiconhold.conf': [Jul 16 17:12:53] Found asterisk*CLI moh show classes Class: default Mode: files Directory: /var/lib/asterisk/moh My SIPuser test2 has a value testmoh for the field 'musiconhold', but when I put a caller on hold, the musiconhold class stays default. [Jul 16 17:17:27] -- Called test6 [Jul 16 17:17:27] -- SIP/test6-000e is ringing [Jul 16 17:17:30] -- SIP/test6-000e answered SIP/test2-000d [Jul 16 17:17:33] -- Started music on hold, class 'default', on SIP/test6-000e Here is what I use: CREATE TABLE `musiconhold` ( `name` varchar(80) collate utf8_unicode_ci NOT NULL, `directory` varchar(255) collate utf8_unicode_ci NOT NULL default '', `application` varchar(255) collate utf8_unicode_ci NOT NULL default '', `mode` varchar(80) collate utf8_unicode_ci NOT NULL default '', `digit` char(1) collate utf8_unicode_ci NOT NULL default '', `sort` varchar(16) collate utf8_unicode_ci NOT NULL default '', `format` varchar(16) collate utf8_unicode_ci NOT NULL default '', PRIMARY KEY (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; SET character_set_client = @saved_cs_client; INSERT INTO `musiconhold` VALUES ('default','/var/lib/asterisk/moh','','files','','random',''),('anuncios','/var/lib/asterisk/moh/anuncios','','files','','alpha',''); It works but it will not show anything with moh show classes or moh show files. This is the case with most realtime modules unless there is a solution like rtcachefriends=yes in sip.conf. There is also a comment somewhere that you need to have at least one definition in musiconhold.conf for realtime to work. I usually leave the file as is and realtime works. -- Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez Prats Director de Tecnología +52-55-91169161 ext 2001 signature.asc Description: This is a digitally signed message part -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] realtime music on hold
Thank you for your input. It seemed like a good approach, but it confirms that Asterisk does not see the new MusicOnHold-class : The dialplan : exten = 60,1,NoOp() exten = 60,n,MusicOnHold(testmoh) The CLI : [Jul 16 19:40:45] -- Executing [...@from-test:2] MusicOnHold(SIP/test2-000f, testmoh) in new stack [Jul 16 19:40:45] WARNING[30772]: res_musiconhold.c:666 get_mohbyname: Music on Hold class 'testmoh' not found [Jul 16 19:40:45] -- Started music on hold, class 'default', on SIP/test2-000f Kind regards, Jonas. On 07/16/2010 06:35 PM, Kyle Kienapfel wrote: It looks like theres no much information out there about using realtime moh Have you tried making an extension that goes to MusicOnHold(testmoh) On Fri, Jul 16, 2010 at 8:21 AM, Jonas Kellensjonas.kell...@telenet.be wrote: -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] realtime music on hold
On 07/16/2010 07:43 PM, Carlos Chavez wrote: Here is what I use: CREATE TABLE `musiconhold` ( `name` varchar(80) collate utf8_unicode_ci NOT NULL, `directory` varchar(255) collate utf8_unicode_ci NOT NULL default '', `application` varchar(255) collate utf8_unicode_ci NOT NULL default '', `mode` varchar(80) collate utf8_unicode_ci NOT NULL default '', `digit` char(1) collate utf8_unicode_ci NOT NULL default '', `sort` varchar(16) collate utf8_unicode_ci NOT NULL default '', `format` varchar(16) collate utf8_unicode_ci NOT NULL default '', PRIMARY KEY (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; SET character_set_client = @saved_cs_client; INSERT INTO `musiconhold` VALUES ('default','/var/lib/asterisk/moh','','files','','random',''),('anuncios','/var/lib/asterisk/moh/anuncios','','files','','alpha',''); It works but it will not show anything with moh show classes or moh show files. This is the case with most realtime modules unless there is a solution like rtcachefriends=yes in sip.conf. There is also a comment somewhere that you need to have at least one definition in musiconhold.conf for realtime to work. I usually leave the file as is and realtime works. I found the following : /musiconhold.conf has a general section now. It has one option: cachertclasses. If set to yes, then moh classes found in realtime will be added to the in-memory list. This has the advantage of not requiring database lookups each time moh is started, but it has the disadvantage of not truly being realtime./ But when setting the following in musiconhold.conf : [general] cachertclasses=yes [default] mode=files directory=/var/lib/asterisk/moh random=yes This is what the Asterisk CLI shows : asterisk*CLI moh reload [Jul 16 20:01:13] == Parsing '/etc/asterisk/musiconhold.conf': [Jul 16 20:01:13] Found [Jul 16 20:01:13] WARNING[30819]: res_musiconhold.c:1205 load_moh_classes: A directory must be specified for class 'general'! Using asterisk 1.4.30 by the way... Kind regards, Jonas. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] realtime music on hold
On Fri, 2010-07-16 at 20:06 +0200, Jonas Kellens wrote: On 07/16/2010 07:43 PM, Carlos Chavez wrote: Here is what I use: CREATE TABLE `musiconhold` ( `name` varchar(80) collate utf8_unicode_ci NOT NULL, `directory` varchar(255) collate utf8_unicode_ci NOT NULL default '', `application` varchar(255) collate utf8_unicode_ci NOT NULL default '', `mode` varchar(80) collate utf8_unicode_ci NOT NULL default '', `digit` char(1) collate utf8_unicode_ci NOT NULL default '', `sort` varchar(16) collate utf8_unicode_ci NOT NULL default '', `format` varchar(16) collate utf8_unicode_ci NOT NULL default '', PRIMARY KEY (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; SET character_set_client = @saved_cs_client; INSERT INTO `musiconhold` VALUES ('default','/var/lib/asterisk/moh','','files','','random',''),('anuncios','/var/lib/asterisk/moh/anuncios','','files','','alpha',''); It works but it will not show anything with moh show classes or moh show files. This is the case with most realtime modules unless there is a solution like rtcachefriends=yes in sip.conf. There is also a comment somewhere that you need to have at least one definition in musiconhold.conf for realtime to work. I usually leave the file as is and realtime works. I found the following : musiconhold.conf has a general section now. It has one option: cachertclasses. If set to yes, then moh classes found in realtime will be added to the in-memory list. This has the advantage of not requiring database lookups each time moh is started, but it has the disadvantage of not truly being realtime. But when setting the following in musiconhold.conf : [general] cachertclasses=yes [default] mode=files directory=/var/lib/asterisk/moh random=yes This is what the Asterisk CLI shows : asterisk*CLI moh reload [Jul 16 20:01:13] == Parsing '/etc/asterisk/musiconhold.conf': [Jul 16 20:01:13] Found [Jul 16 20:01:13] WARNING[30819]: res_musiconhold.c:1205 load_moh_classes: A directory must be specified for class 'general'! Using asterisk 1.4.30 by the way... It works as advertised in 1.6.2.X, except for the cachertclasses=yes which still does not show information in the CLI. -- Telecomunicaciones Abiertas de México S.A. de C.V. Carlos Chávez Prats Director de Tecnología +52-55-91169161 ext 2001 signature.asc Description: This is a digitally signed message part -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] realtime music on hold
Your solution does not work for me. I've just also added the 'default' class to my realtime DB. [Jul 16 20:27:02] -- Called test6 [Jul 16 20:27:02] -- SIP/test6-0014 is ringing [Jul 16 20:27:04] -- SIP/test6-0014 answered SIP/test2-0013 [Jul 16 20:27:06] -- Started music on hold, class 'default', on SIP/test6-0014 No moh class 'mohtest'... Reloading, restarting Asterisk does not help... Would it only work for asterisk 1.6 ? Kind regards, Jonas. On 07/16/2010 08:16 PM, Carlos Chavez wrote: On Fri, 2010-07-16 at 20:06 +0200, Jonas Kellens wrote: On 07/16/2010 07:43 PM, Carlos Chavez wrote: Here is what I use: CREATE TABLE `musiconhold` ( `name` varchar(80) collate utf8_unicode_ci NOT NULL, `directory` varchar(255) collate utf8_unicode_ci NOT NULL default '', `application` varchar(255) collate utf8_unicode_ci NOT NULL default '', `mode` varchar(80) collate utf8_unicode_ci NOT NULL default '', `digit` char(1) collate utf8_unicode_ci NOT NULL default '', `sort` varchar(16) collate utf8_unicode_ci NOT NULL default '', `format` varchar(16) collate utf8_unicode_ci NOT NULL default '', PRIMARY KEY (`name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; SET character_set_client = @saved_cs_client; INSERT INTO `musiconhold` VALUES ('default','/var/lib/asterisk/moh','','files','','random',''),('anuncios','/var/lib/asterisk/moh/anuncios','','files','','alpha',''); It works but it will not show anything with moh show classes or moh show files. This is the case with most realtime modules unless there is a solution like rtcachefriends=yes in sip.conf. There is also a comment somewhere that you need to have at least one definition in musiconhold.conf for realtime to work. I usually leave the file as is and realtime works. I found the following : musiconhold.conf has a general section now. It has one option: cachertclasses. If set to yes, then moh classes found in realtime will be added to the in-memory list. This has the advantage of not requiring database lookups each time moh is started, but it has the disadvantage of not truly being realtime. But when setting the following in musiconhold.conf : [general] cachertclasses=yes [default] mode=files directory=/var/lib/asterisk/moh random=yes This is what the Asterisk CLI shows : asterisk*CLI moh reload [Jul 16 20:01:13] == Parsing '/etc/asterisk/musiconhold.conf': [Jul 16 20:01:13] Found [Jul 16 20:01:13] WARNING[30819]: res_musiconhold.c:1205 load_moh_classes: A directory must be specified for class 'general'! Using asterisk 1.4.30 by the way... It works as advertised in 1.6.2.X, except for the cachertclasses=yes which still does not show information in the CLI. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] realtime music on hold
Hello, has anybody an idea or experience with this realtime moh ? Jonas. On 07/14/2010 08:53 PM, Jonas Kellens wrote: Hello list, using asterisk 1.4.30. When setting up the MySQL table 'musiconhold' as described in http://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf , what is the meaning of the fields : `*digit*` char(1) NOT NULL default '', `*sort*` varchar(16) NOT NULL default '', and what are there default values ?! What is the default value of : `*format*` varchar(16) NOT NULL default '', Kind regards, Jonas. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] realtime music on hold
Hello list, using asterisk 1.4.30. When setting up the MySQL table 'musiconhold' as described in http://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf , what is the meaning of the fields : `*digit*` char(1) NOT NULL default '', `*sort*` varchar(16) NOT NULL default '', and what are there default values ?! What is the default value of : `*format*` varchar(16) NOT NULL default '', Kind regards, Jonas. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users