Hello all,<br><br>I&#39;m planning to create a simple Auto-Attendant (IVR Menu) for my home PBX yet all callers from incoming (trunk) calls must only press the extension numbers from the [analog-ext] else will play the &quot;pbx-invalid&quot;. How do you do that using the GotoIf() (or probably using the other applications) but will check if the numbers entered belongs to a specific context?<br>
<br>Also, how do you implement a condition in your AA context when you want that the 3rd time a caller presses an invalid extension number,&nbsp; it will play a &quot;vm-goodbye&quot; and hangup?<br>&nbsp;<br>Below is a snippet of my dialplan:<br>
<br>- - - &lt; s n i p &gt; - - -<br><br>[aa_menu]<br><br>exten =&gt; 0,1,Answer()<br>exten =&gt; 0,2,Background(greetings)<br>exten =&gt; 0,n,WaitExten()<br><br>exten =&gt; i,1,Playback(pbx-invalid)<br>exten =&gt; i,2,Goto(aa_menu,0,2)<br>
exten =&gt; i,n,Hangup(3)<br><br>exten =&gt; t,1,Goto(analog-ext,11,1)<br>exten =&gt; t,n,Hangup(3)<br><br>
[incoming]<br>
...<br>
...<br>[analog-ext]<br>...<br>...<br>[sip-ext]<br>...<br>...<br>[other-ext]<br>...<br>...<br><br>- - - &lt; s n i p &gt; - - -<br><br>Please advice.<br><br>Thank you in advance.<br><br>Regards,<br><br>GNUbie<br>