<div class="gmail_quote">On Mon, Jun 20, 2011 at 12:17 PM, salaheddine elharit <span dir="ltr">&lt;<a href="mailto:salah.elharit200@gmail.com">salah.elharit200@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">[home] <br><div>exten =&gt; s,1,SetGlobalVar(sounds_path=/var/lib/asterisk/sounds/)<br>exten =&gt; s,2,Background(${sounds_path}welcome)<br>exten =&gt; #,1,Goto(menu,s,1)<br>exten =&gt; i,1,Playback(${sounds_path}error-key)<br>

exten =&gt; t,1,Goto(home,s,1)</div><br clear="all"></div></blockquote></div><br>You need to add the following to the [home] context:<br><br>exten =&gt; s,3,WaitExten(10)<br><br>which will cause the call to wait 10 seconds for input, otherwise it will timeout and go to the &#39;t&#39; extension.  The way you currently have it, the call will end after the Background() app finishes playing because it has no additional steps and nothing that will tell it to go to the &#39;t&#39; extension.<br>
<br>Also, consider switching your dialplan priorities away from &quot;1,2,3...&quot; and go to &quot;1,n,n,n...&quot; as this reduces headaches in the longrun.<br><br>-- <br>Thanks,<br>--Warren Selby, dCAP<br><a href="http://www.selbytech.com" target="_blank">http://www.SelbyTech.com</a><br>
<br>