Hi,<br><br>&nbsp;I am building an application and at point caller has to
wait for 1-2 mins. So to avoid user gets bored, I wanted to play MOH
sounds using ast_moh_start(chan,&quot;default&quot;) function call in
application. But it didn&#39;t work as expected. I checked the app_dial.c
and it was using the same way. I was able to hear sound when executed
MusicOnHold() in dialplan but not in application.<br>
<br><br>here is my /etc/asterisk/musiconhold.conf<br><br>[default]<br>mode=files<br>directory=/var/lib/asterisk<div id="1fh4" class="ArwC7c ckChnd">/mohmp3<br><br><br><br>any suggestion what am I missing ? any other function call I need to make before calling ast_moh_start() ?<br>
<font color="#888888">
<br>-ag</font></div>