Ok thanks, I will give it a try.<br><br>-ag<br><br><div class="gmail_quote">On Tue, Jun 3, 2008 at 12:23 PM, Sergey Tamkovich <<a href="mailto:serg@voipsolutions.ru">serg@voipsolutions.ru</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
check how builtin_atxfer() from res_features.c works.<br>
in short:<br>
<br>
ast_autoservice_start(mychan);<br>
ast_indicate(mychan, AST_CONTROL_HOLD);<br>
<br>
/* your code here */<br>
<br>
ast_indicate(mychan, AST_CONTROL_UNHOLD);<br>
ast_autoservice_stop(mychan);<br>
<div><div></div><div class="Wj3C7c"><br>
ast guy wrote:<br>
> Hi,<br>
><br>
> I am building an application and at point caller has to wait for 1-2<br>
> mins. So to avoid user gets bored, I wanted to play MOH sounds using<br>
> ast_moh_start(chan,"default") function call in application. But it<br>
> didn't work as expected. I checked the app_dial.c and it was using the<br>
> same way. I was able to hear sound when executed MusicOnHold() in<br>
> 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<br>
> /mohmp3<br>
><br>
><br>
><br>
> any suggestion what am I missing ? any other function call I need to<br>
> make before calling ast_moh_start() ?<br>
><br>
> -ag<br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
><br>
> asterisk-dev mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
<br>
<br>
_______________________________________________<br>
--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br>
</blockquote></div><br>