Hi all, I have created a menu from which the caller can select several options such as being transfered to our phones and my mobile phone, meetme, etc. If the caller press an invalid option i have set it to play a message like invalid choice please try again. If the caller make three invalid choices i want the call to be disconnected. what is the best way of doing that? And finally i have set up an extention to which it is possible to record a message but i then want to be able to specify what number the message should be plaied for after recording is finished. Many thanks for all your help, Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070501/c99bb982/attachment.htm
Hi Christian, Increase a variable in the menu loop, or exactly in the "t" and "i" extensions like this : exten => s,1,Wait(3) exten => s,n,Answer() exten => s,n,Set(LoopStep=1) exten => s,n,Set(TIMEOUT(digit)=3) exten => s,n,Set(TIMEOUT(response)=10) exten => s,n,Wait(1) exten => s,n(menurestart),Background(your_announce) exten => s,n,WaitExten(5) exten => 1,1,GoTo(your_menu_context,1,1) exten => 2,1,GoTo(your_menu_context,2,1) exten => 3,1,GoTo(your_menu_context,3,1) exten => t,1,Playback(im-sorry) exten => t,n,Set(LoopStep=$[${LoopStep} + 1]) exten => t,n,GoToIf($[${LoopStep} > 3]?disconnect) exten => t,n,GoTo(s,menurestart) exten => t,n(disconnect),Hangup() exten => i,1,Playback(im-sorry) exten => t,n,Set(LoopStep=$[${LoopStep} + 1]) exten => t,n,GoToIf($[${LoopStep} > 3]?disconnect) exten => t,n,GoTo(s,menurestart) exten => t,n(disconnect),Hangup() exten => h,1,NoOp(the caller has hung up) I hope that can help and to have not introduced mistakes ;-) Best Regards, Francois BERGERET, France. -----Message d'origine----- De : asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] De la part de Christian Envoy? : mardi 1 mai 2007 18:18 ? : asterisk-users@lists.digium.com Objet : [asterisk-users] How do I do this in Asterisk? Hi all, I have created a menu from which the caller can select several options such as being transfered to our phones and my mobile phone, meetme, etc. If the caller press an invalid option i have set it to play a message like invalid choice please try again. If the caller make three invalid choices i want the call to be disconnected. what is the best way of doing that? And finally i have set up an extention to which it is possible to record a message but i then want to be able to specify what number the message should be plaied for after recording is finished. Many thanks for all your help, Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070501/66905601/attachment.htm
Brandon Comouche
2007-May-02 12:12 UTC
[asterisk-users] Answer A Ringing Queue By Dialing An Extension
Hello I am sure someone has done this and I know I have read about answering extensions before. I just can't find where I read it. What I would like to do is simple in theory. If one of my queues is ringing I would like to be able to dial an extension which immediately connects me to the next person in line - essentially answering the queue. We have a large lobby, but only a couple of the phones are logged in to the queue. We can hear them ring and would like an easy way to answer it without logging in to the queue. If anyone has any ideas or places I can look that would be great. Let me know if you need more info. -- Thanks, Brandon Comouche -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070502/218e630d/attachment.htm
Chris Bagnall
2007-May-03 06:54 UTC
[asterisk-users] Answer A Ringing Queue By Dialing An Extension
Stick the lobby phones into a call group and put your other phones in that pickup group. Then you can hit *8 to pick up those calls (or, if you have speed dial/BLF/softkeys, program one of those as *8 for an immediately accessible button). In sip.conf for the lobby phones: callgroup=1 in sip.conf for the other phones: pickupgroup=1 Regards, Chris -- C.M. Bagnall, Director, Minotaur I.T. Limited For full contact details visit http://www.minotaur.it/chris.html This email is made from 100% recycled electrons