<div dir="ltr"><div>The details provided were helpful in identifying the problem.  According to the documentation (<a href="http://kamailio.org/docs/modules/4.4.x/modules/mohqueue.html#mohqueues.dbase">http://kamailio.org/docs/modules/4.4.x/modules/mohqueue.html#mohqueues.dbase</a>) the file name in the database should be the "the base name of the audio file".  This wording could be misunderstood and should probably be clarified.  It means that if you want to use PCMA/8000 (alaw) audio files and you want to use a base name of "novanet", the mohdir directory needs to contain a file called <font face="monospace,monospace"><em>novanet</em>.8</font> and the database <font face="monospace,monospace">mohfile</font> field would be "novanet".</div><div><br></div><div>I will look into clarifying this wording and providing examples to assist other users.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 25, 2017 at 7:08 AM, santosh gupta <span dir="ltr"><<a href="mailto:santosh.gupta.g@gmail.com" target="_blank">santosh.gupta.g@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div><br></div><div>Thanks for your prompt response.</div><div>Below is the complete working logs and configuration if you can pinpoint the issues.</div><div><br></div><div><div>Server Description</div><div>Server OS Ubuntu 16.04.2 Server</div><div>root@ubuntu-lua:/var/kamailio/<wbr>MOH# uname -a</div><div>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/Linux</div><div><br></div><div><br></div><div><br></div><div>File Path and Permissions</div><div>root@ubuntu-lua:/var/kamailio/<wbr>MOH# ls -l</div><div>-rwxr-xr-x 1 root root       42459 Mar  7 18:47 HeWillCall.alaw</div><div>-rw-r--r-- 1 root root     2103772 Apr 19 14:31 novanet.8.wav</div><div><br></div><div><br></div><div><br></div><div>Mysql description</div><div>Server version: 5.7.17-0ubuntu0.16.04.1 (Ubuntu)</div><div>mysql -u root -p</div><div>mysql> select * from mohqueues;</div><div>+----+-----------+------------<wbr>------------------------------<wbr>-+-------------------+--------<wbr>----+-------+</div><div>| id | name      | uri                                       | mohdir            | mohfile    | debug |</div><div>+----+-----------+------------<wbr>------------------------------<wbr>-+-------------------+--------<wbr>----+-------+</div><div>|  1 | operators | <a href="mailto:sip%3Amain@192.168.2.6" target="_blank">sip:main@192.168.2.6</a>;maddr=<wbr>203.153.53.130 | /var/kamailio/MOH | novanet.8  |     6 |</div><div>|  2 | main      | <a href="mailto:sip%3Amain@192.168.2.6" target="_blank">sip:main@192.168.2.6</a>                      | /var/kamailio/MOH | HeWillCall |     1 |</div><div>+----+-----------+------------<wbr>------------------------------<wbr>-+-------------------+--------<wbr>----+-------+</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Modules Path</div><div>mpath="/usr/local/kamailio-5.<wbr>0.1/lib64/kamailio/modules/"</div><div># ----- queue desc -----</div><div>modparam("mohqueue", "db_url", DBURL)</div><div>modparam("mohqueue", "db_qtable", "mohqueues")</div><div>modparam("mohqueue", "db_ctable", "mohqcalls")</div><div>modparam("mohqueue", "mohdir", "/var/kamailio/MOH")</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Kamailio Process</div><div>root@ubuntu-lua:/usr/local/<wbr>kamailio-5.0.1/sbin# ps aux | grep kamailio</div><div>root       1958  0.1  1.4 175100 14672 ?        S    16:27   0:00 /usr/local/kamailio-5.0.1/<wbr>sbin/kamailio -P /var/run/kamailio.pid -f /usr/local/kamailio-5.0.1/etc/<wbr>kamailio//kamailio.cfg</div><div><br></div><div><br></div><div>Syatem syslog</div><div>Apr 25 16:30:31 ubuntu-lua /usr/local/kamailio-5.0.1/<wbr>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.*<wbr>)!</div><div>Apr 25 16:30:31 ubuntu-lua /usr/local/kamailio-5.0.1/<wbr>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.<wbr>*)!</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, Apr 25, 2017 at 1:35 AM, Robert Boisvert <span dir="ltr"><<a href="mailto:rdboisvert@gmail.com" target="_blank">rdboisvert@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>Santosh,</div><div><br></div><div>Looks like you didn't include the mohdir information (see <a href="http://kamailio.org/docs/modules/4.4.x/modules/mohqueue.html#dir.parms" target="_blank">http://kamailio.org/docs/modul<wbr>es/4.4.x/modules/mohqueue.html<wbr>#dir.parms</a>) or there are no files in that directory.</div><div><br></div><div>BTW, I rarely use this email address so please address your questions to <span class="m_-5992852222706332455m_-5511107848232061235gmail-gI"><span><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a></span></span>.</div><div><br></div><div>Hope this helps,</div><div>Bob</div></div><div class="m_-5992852222706332455HOEnZb"><div class="m_-5992852222706332455h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 11:26 AM, santosh gupta <span dir="ltr"><<a href="mailto:santosh.gupta.g@gmail.com" target="_blank">santosh.gupta.g@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div><div><div><div>HI,<br><br></div>Was working on Kamailio for MohQueue n getting the below error.<br></div>Let me know if you can help me.<br><br></div>I had already checked everything.<br></div><div>1. Files are located in proper directory.<br></div><div>2. Files are having proper permissions.<br></div><div>3. Database is having proper tables.<br></div><div>4. Tried many versions of Kamailio i.e 4.4,5.0 also 5.0.1<br></div><div><div><div><div><div><br>ERROR: mohqueue [mohq_db.c:504]: update_mohq_lst(): Queue,Field (operators,mohdir): Unable to find MOH files<br><br><div class="m_-5992852222706332455m_-5511107848232061235m_-5087592684932592136gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>--------------------</div><div>With Regards <br><span class="m_-5992852222706332455m_-5511107848232061235HOEnZb"><font color="#888888">Santosh Gupta</font></span></div><span class="m_-5992852222706332455m_-5511107848232061235HOEnZb"><font color="#888888"><div>+91 9323043570</div></font></span></div></div></div></div>
</div></div></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div></div></div>-- <br><span><div class="m_-5992852222706332455gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>--------------------</div><div>With Regards <br>Santosh Gupta</div><div>+91 9323043570</div></div></div></div></div>
</span></div>
</blockquote></div><br></div>