<div dir="ltr">hi <div style>i follow your dialplan but the issue still the same ican't stop the speech and go to another context </div><div style><br></div><div style>any other idea please <br></div><div style><br></div>
<div style>best regards .</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/28 A J Stiles <span dir="ltr"><<a href="mailto:asterisk_list@earthshod.co.uk" target="_blank">asterisk_list@earthshod.co.uk</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wednesday 27 November 2013, Salaheddine Elharit wrote:<br>
> hello list<br>
><br>
> i have an IVR menu in asterisk 1.4<br>
><br>
</div>> [stuff deleted]<br>
<div class="im">><br>
> my problem when the customor call the number 600 and press 1 in order to go<br>
> to the project menu he must wait all the speech music1 music2 and music 3<br>
><br>
> if there is any way to go to project menu during the speech<br>
><br>
> thanks and regards<br>
<br>
</div>This is an actual dialplan application that I wrote. It's a "spike" -- a<br>
proof of concept that is all depth and no breadth. It's known to work in<br>
Asterisk 1.8.<br>
<br>
The sound files "ajs_juke01" and "ajs_anykey" you will need to create for<br>
yourself, depending what MP3s you have available (and replace ajs_ with your<br>
own prefix). You can interrupt the announcements or the MP3s by pressing keys<br>
while playing.<br>
<br>
<br>
<br>
;;;;;;;;;;; VERY PRIMITIVE JUKE BOX CONTEXT ;;;;;;;;;;;<br>
[vpjb]<br>
exten => s,1,Background(ajs_juke01)<br>
; "Press 1 for Ocean Colour Scene, 2 for Crowded House"<br>
exten => s,n,WaitExten(1)<br>
exten => s,n,Goto(1)<br>
<br>
exten => i,1,Hangup()<br>
<br>
exten => 1,1,Background(ajs_anykey)<br>
; "Press any key to stop the music and return to the menu"<br>
exten => 1,n,MP3Player(/songs/09_policemen+pirates.mp3)<br>
exten => 1,n,Goto(vpjb,s,1)<br>
<br>
exten => 2,1,Background(ajs_anykey)<br>
; "Press any key to stop the music and return to the menu"<br>
exten => 2,n,MP3Player(/songs/15_distant_sun.mp3)<br>
exten => 2,n,Goto(vpjb,s,1)<br>
<br>
exten => _X,1,Hangup()<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
AJS<br>
<br>
Answers come *after* questions.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br></div>