Hi,Thanks for your prompt response.Below is the complete working logs and configuration if you can pinpoint the issues.Server DescriptionServer OS Ubuntu 16.04.2 Serverroot@ubuntu-lua:/var/kamailio/MOH# uname -a Linux ubuntu-lua 4.4.0-64-generic #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64 x86_64 x86_64 GNU/LinuxFile Path and Permissionsroot@ubuntu-lua:/var/kamailio/MOH# ls -l -rwxr-xr-x 1 root root 42459 Mar 7 18:47 HeWillCall.alaw-rw-r--r-- 1 root root 2103772 Apr 19 14:31 novanet.8.wavMysql descriptionServer version: 5.7.17-0ubuntu0.16.04.1 (Ubuntu)mysql -u root -pmysql> select * from mohqueues;+----+-----------+------------------------------------------ -+-------------------+-------- ----+-------+ | id | name | uri | mohdir | mohfile | debug |+----+-----------+------------------------------------------ -+-------------------+-------- ----+-------+ | 1 | operators | sip:main@192.168.2.6;maddr=203.153.53.130 | /var/kamailio/MOH | novanet.8 | 6 | | 2 | main | sip:main@192.168.2.6 | /var/kamailio/MOH | HeWillCall | 1 |+----+-----------+------------------------------------------ -+-------------------+-------- ----+-------+ Modules Pathmpath="/usr/local/kamailio-5.0.1/lib64/kamailio/modules/" # ----- queue desc -----modparam("mohqueue", "db_url", DBURL)modparam("mohqueue", "db_qtable", "mohqueues")modparam("mohqueue", "db_ctable", "mohqcalls")modparam("mohqueue", "mohdir", "/var/kamailio/MOH")Kamailio Processroot@ubuntu-lua:/usr/local/kamailio-5.0.1/sbin# ps aux | grep kamailio root 1958 0.1 1.4 175100 14672 ? S 16:27 0:00 /usr/local/kamailio-5.0.1/sbin/kamailio -P /var/run/kamailio.pid -f /usr/local/kamailio-5.0.1/etc/ kamailio//kamailio.cfg Syatem syslogApr 25 16:30:31 ubuntu-lua /usr/local/kamailio-5.0.1/sbin/kamailio[2274]: ERROR: mohqueue [mohq_db.c:504]: update_mohq_lst(): Queue,Field (operators,mohdir): Unable to find MOH files (/var/kamailio/MOH/novanet.8.* )! Apr 25 16:30:31 ubuntu-lua /usr/local/kamailio-5.0.1/sbin/kamailio[2274]: ERROR: mohqueue [mohq_db.c:504]: update_mohq_lst(): Queue,Field (main,mohdir): Unable to find MOH files (/var/kamailio/MOH/HeWillCall. *)! --On Tue, Apr 25, 2017 at 1:35 AM, Robert Boisvert <rdboisvert@gmail.com> wrote:Santosh,Looks like you didn't include the mohdir information (see http://kamailio.org/docs/modules/4.4.x/modules/mohqueue.html ) or there are no files in that directory.#dir.parms BTW, I rarely use this email address so please address your questions to sr-users@lists.kamailio.org.Hope this helps,BobOn Thu, Apr 20, 2017 at 11:26 AM, santosh gupta <santosh.gupta.g@gmail.com> wrote:I had already checked everything.Let me know if you can help me.HI,Was working on Kamailio for MohQueue n getting the below error.1. Files are located in proper directory.2. Files are having proper permissions.3. Database is having proper tables.4. Tried many versions of Kamailio i.e 4.4,5.0 also 5.0.1
ERROR: mohqueue [mohq_db.c:504]: update_mohq_lst(): Queue,Field (operators,mohdir): Unable to find MOH files--------------------With Regards
Santosh Gupta+91 9323043570--------------------With Regards
Santosh Gupta+91 9323043570