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 &lt;<a href="mailto:serg@voipsolutions.ru">serg@voipsolutions.ru</a>&gt; 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 &nbsp;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>
&gt; Hi,<br>
&gt;<br>
&gt; &nbsp;I am building an application and at point caller has to wait for 1-2<br>
&gt; mins. So to avoid user gets bored, I wanted to play MOH sounds using<br>
&gt; ast_moh_start(chan,&quot;default&quot;) function call in application. But it<br>
&gt; didn&#39;t work as expected. I checked the app_dial.c and it was using the<br>
&gt; same way. I was able to hear sound when executed MusicOnHold() in<br>
&gt; dialplan but not in application.<br>
&gt;<br>
&gt;<br>
&gt; here is my /etc/asterisk/musiconhold.conf<br>
&gt;<br>
&gt; [default]<br>
&gt; mode=files<br>
&gt; directory=/var/lib/asterisk<br>
&gt; /mohmp3<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; any suggestion what am I missing ? any other function call I need to<br>
&gt; make before calling ast_moh_start() ?<br>
&gt;<br>
&gt; -ag<br>
</div></div>&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--" target="_blank">http://www.api-digital.com--</a><br>
&gt;<br>
&gt; asterisk-dev mailing list<br>
&gt; To UNSUBSCRIBE or update options visit:<br>
&gt; &nbsp; &nbsp;<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>
 &nbsp; <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>