<div dir="ltr">Hi Maryam,<div><br></div><div>Does the music file payload match the RTP payload that the far end supports?  <a href="https://kamailio.org/docs/modules/stable/modules/mohqueue.html#audiofiles" target="_blank">https://kamailio.org/docs/modules/stable/modules/mohqueue.html#audiofiles</a> shows that a filename ending in .8 should be A-Law encoded.</div><div><br></div><div>Perhaps you can check the SDP and RTP in your capture and verify that A-Law is what's negotiated and that it's what's playing.  Perhaps also check using your audio encoding program of choice whether A-Law is what's been encoded in the file itself,</div><div><br></div><div>Jeff</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 19, 2019 at 2:11 AM Maryam Baghdadi <<a href="mailto:maryam.baghdadi@gmail.com" target="_blank">maryam.baghdadi@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">I use kamailio-5.2.3 .</div><div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">there isn't any error , I traced log files. call established and after matching RURI with URI in mohqueue table on hold state, mohq_process() function returns true but no sounds plays or I can't hear anything .</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 19, 2019 at 12:46 AM Henning Westerholt <<a href="mailto:hw@skalatan.de" target="_blank">hw@skalatan.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div bgcolor="#FFFFFF">
<p>Hello Maryam,</p>
<p>i quickly checked, the mohqueue module had some changes in git master recently. Just to get some more details:</p>
<p>- which version of Kamailio are you using?<br>
</p>
<p>- do you get any error message in the log related to this module?</p>
<p>- have you tried to debug the problem, e.g. with a SIP trace and observe what is happening on the network level?<br>
</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<p><br>
</p>
<div class="gmail-m_-7167175695545361473gmail-m_-8876004879076882794gmail-m_5879362530718459126moz-cite-prefix">Am 17.08.19 um 08:20 schrieb Maryam Baghdadi:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">
Hello everyone,<br>
</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">
<br>
</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">
I need to setup Music on hold feature and I did all modifications in configuration file and did all steps for setup:</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">
1- load MOH and all requirement modules .</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">
2- rtpproxy setups and works correctly</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">
3- mohqueue and mohqcalls tables created.</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">
4-  audio file with type index (<span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif">novanet</span>.8) exists</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">
5- parameters of MOH module setup and mohq_process() function called in request_route()‌.</div>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">
6- table mohqueue initiated like this‌: </div>
+----+------+----------------------------+-------------------+---------+-------+<br>
| id | name | uri                        | mohdir            | mohfile | debug |<br>
+----+------+----------------------------+-------------------+---------+-------+<br>
|  1 | main | sip:main at 19<span class="gmail_default">1</span>.38.245.2 | /var/kamailio/MOH | novanet |     1 |<br>
+----+------+----------------------------+-------------------+---------+-------+
<div><br>
</div>
<div>
<div class="gmail_default">
Kamailio starts successfully and no error appears , call setup but on hold doesn't work and no audio file plays.</div>
<div class="gmail_default">
I review all previous mailing lists responses but no one answers completely and before me others had this problem.</div>
<div class="gmail_default">
<br>
</div>
<div class="gmail_default">
<br>
</div>
<br>
<div class="gmail_default" style="font-family:"trebuchet ms",sans-serif;color:rgb(32,18,77)">
  </div>
</div>
</div>
<br>
<fieldset class="gmail-m_-7167175695545361473gmail-m_-8876004879076882794gmail-m_5879362530718459126mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_-7167175695545361473gmail-m_-8876004879076882794gmail-m_5879362530718459126moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_-7167175695545361473gmail-m_-8876004879076882794gmail-m_5879362530718459126moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="gmail-m_-7167175695545361473gmail-m_-8876004879076882794gmail-m_5879362530718459126moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="gmail-m_-7167175695545361473gmail-m_-8876004879076882794gmail-m_5879362530718459126moz-signature" cols="72">-- 
Henning Westerholt - <a class="gmail-m_-7167175695545361473gmail-m_-8876004879076882794gmail-m_5879362530718459126moz-txt-link-freetext" href="https://skalatan.de/blog/" target="_blank">https://skalatan.de/blog/</a>
Kamailio services - <a class="gmail-m_-7167175695545361473gmail-m_-8876004879076882794gmail-m_5879362530718459126moz-txt-link-freetext" href="https://skalatan.de/services" target="_blank">https://skalatan.de/services</a></pre>
</div>

</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-7167175695545361473gmail_signature">Jeff</div>