[asterisk-users] How do I do this in Asterisk?

Christian christian8000 at gmail.com
Wed May 2 05:09:01 MST 2007


Hi Francoies,
Many thanks for your reply will give it a try.
Best regards and thanks,
Christian

On Tue, 2007-05-01 at 20:09 +0200, f6hqz-m at hamwlan.net wrote:
> 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  
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list