[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    Re: [SR-Users] Kamailio Issues
From:       santosh gupta <santosh.gupta.g () gmail ! com>
Date:       2017-04-25 16:11:22
Message-ID: CA+Y9iY89Wtb4x+kb_q-Zi6D21N6XbXhSRC4KrwKVdvMTWFi8rg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Robert,

Many thanks for pinpointing.
Have sorted the issue, m going to explore more now.

Hoping to get your support.
Thanks again.....

On Tue, Apr 25, 2017 at 7:06 PM, Robert Boisvert <rdboisvert@gmail.com>
wrote:

> The details provided were helpful in identifying the problem.  According
> to the documentation (http://kamailio.org/docs/modules/4.4.x/modules/
> mohqueue.html#mohqueues.dbase) 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 *novanet*.8 and the
> database mohfile field would be "novanet".
>
> I will look into clarifying this wording and providing examples to assist
> other users.
>
> On Tue, Apr 25, 2017 at 7:08 AM, santosh gupta <santosh.gupta.g@gmail.com>
> wrote:
>
>> Hi,
>>
>>
>> Thanks for your prompt response.
>> Below is the complete working logs and configuration if you can pinpoint
>> the issues.
>>
>> Server Description
>> Server OS Ubuntu 16.04.2 Server
>> root@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/Linux
>>
>>
>>
>> File Path and Permissions
>> root@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.wav
>>
>>
>>
>> Mysql description
>> Server version: 5.7.17-0ubuntu0.16.04.1 (Ubuntu)
>> mysql -u root -p
>> mysql> 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 Path
>> mpath="/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 Process
>> root@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 syslog
>> 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
>> (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#dir.parms)
>>> or there are no files in that directory.
>>>
>>> BTW, I rarely use this email address so please address your questions to
>>> sr-users@lists.kamailio.org.
>>>
>>> Hope this helps,
>>> Bob
>>>
>>> On Thu, Apr 20, 2017 at 11:26 AM, santosh gupta <
>>> santosh.gupta.g@gmail.com> wrote:
>>>
>>>> HI,
>>>>
>>>> Was working on Kamailio for MohQueue n getting the below error.
>>>> Let me know if you can help me.
>>>>
>>>> I had already checked everything.
>>>> 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
>>
>
>


-- 
--------------------
With Regards
Santosh Gupta
+91 9323043570

[Attachment #5 (text/html)]

<div dir="ltr">Robert,<div><br></div><div>Many thanks for pinpointing.</div><div>Have \
sorted the issue, m going to explore more now.</div><div><br></div><div>Hoping to get \
your support.</div><div>Thanks again.....</div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 25, 2017 at 7:06 PM, \
Robert Boisvert <span dir="ltr">&lt;<a href="mailto:rdboisvert@gmail.com" \
target="_blank">rdboisvert@gmail.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><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" \
target="_blank">http://kamailio.org/docs/<wbr>modules/4.4.x/modules/<wbr>mohqueue.html#mohqueues.dbase</a>) \
the file name in the database should be the &quot;the base name of the audio \
file&quot;.   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 &quot;novanet&quot;, 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 \
&quot;novanet&quot;.</div><div><br></div><div>I will look into clarifying this \
wording and providing examples to assist other users.</div></div><div \
class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div \
class="gmail_quote">On Tue, Apr 25, 2017 at 7:08 AM, santosh gupta <span \
dir="ltr">&lt;<a href="mailto:santosh.gupta.g@gmail.com" \
target="_blank">santosh.gupta.g@gmail.com</a>&gt;</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&gt; 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=203<wbr>.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=&quot;/usr/local/kamailio-5.0<wbr>.1/lib64/kamailio/modules/&quot;</div><div># \
----- queue desc -----</div><div>modparam(&quot;mohqueue&quot;, &quot;db_url&quot;, \
DBURL)</div><div>modparam(&quot;mohqueue&quot;, &quot;db_qtable&quot;, \
&quot;mohqueues&quot;)</div><div>modparam(&quot;mohqueue&quot;, \
&quot;db_ctable&quot;, \
&quot;mohqcalls&quot;)</div><div>modparam(&quot;mohqueue&quot;, &quot;mohdir&quot;, \
&quot;/var/kamailio/MOH&quot;)</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Kamailio \
Process</div><div>root@ubuntu-lua:/usr/local/kam<wbr>ailio-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/sbin<wbr>/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/sbin<wbr>/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/sbin<wbr>/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="m_-1091501713520982986h5"><br><div \
class="gmail_quote">On Tue, Apr 25, 2017 at 1:35 AM, Robert Boisvert <span \
dir="ltr">&lt;<a href="mailto:rdboisvert@gmail.com" \
target="_blank">rdboisvert@gmail.com</a>&gt;</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&#39;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_-1091501713520982986m_-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_-1091501713520982986m_-5992852222706332455HOEnZb"><div \
class="m_-1091501713520982986m_-5992852222706332455h5"><div \
class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 20, 2017 at 11:26 AM, \
santosh gupta <span dir="ltr">&lt;<a href="mailto:santosh.gupta.g@gmail.com" \
target="_blank">santosh.gupta.g@gmail.com</a>&gt;</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_-1091501713520982986m_-5992852222706332455m_-5511107848232061235m_-5087592684932592136gmail_signature"><div \
dir="ltr"><div><div dir="ltr"><div>--------------------</div><div>With Regards \
<br><span class="m_-1091501713520982986m_-5992852222706332455m_-5511107848232061235HOEnZb"><font \
color="#888888">Santosh Gupta</font></span></div><span \
class="m_-1091501713520982986m_-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_-1091501713520982986m_-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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div \
class="gmail_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> </div>


[Attachment #6 (text/plain)]

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic