[asterisk-users] How do I do this in Asterisk?
f6hqz-m at hamwlan.net
f6hqz-m at hamwlan.net
Tue May 1 11:09:55 MST 2007
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 at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] De la part de Christian
Envoyé : mardi 1 mai 2007 18:18
À : asterisk-users at 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
More information about the asterisk-users
mailing list