[asterisk-dev] ast_moh_start/stop not playing MOH sounds

ast guy astguy at gmail.com
Tue Jun 3 01:47:39 CDT 2008


Hi,

 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,"default") function call in application. But it didn'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.


here is my /etc/asterisk/musiconhold.conf

[default]
mode=files
directory=/var/lib/asterisk/mohmp3



any suggestion what am I missing ? any other function call I need to make
before calling ast_moh_start() ?

-ag
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20080603/443fdaa9/attachment.htm 


More information about the asterisk-dev mailing list