-
#6001 |
Dose anyone knows how do I create a block after “say” press 1 if this is correct and send it to next step , press 2 if not and return it to the last option ,
My aim is to repeat credit card number which user entered and say it again and get confirmation with press 1 and connect it to expire date and month. and option 2 return it back to the menu to re-enter credit card number again.
Thanks,
#6002 |You should use Say and Read block for this purposes. First, use Say block to repeat the cc number that user entered, then use Read block to collect user input (option 1 or option 2). The sound file for Read block should be something like this:” If this cc number is correct please press one otherwise please press two…Then use GotoIf block to validate user input and to branch the call flow.
Bernard
#6003 |Thank you for your answer but we do not have any option in read block to chose if one go to this block and if 2 go to another block, what will be happen if user select 3 or 4 and etc ?
Thanks
Amir.
#6004 |You need to handle those scenarios. If caller pick for example option 3 or 4, the call flow will exit on the red (failed) port of the GotoIf component and return back to the Read component.
Raman
#6005 |I Do not how to Do that could you help me with that how to add option one to continue 2 or any other go to red.
would you help to know what options should I select in Goif.
Thanks
#6006 |Amir,
Here is the link where you may find educational movies about Visual Dialplan for Asterisk: http://www.apstel.com/forums/topic/educational-movies-about-visual-dialplan-for-asterisk/
I think you would be especially interested in “How to use conditional branching” movie. This short movie explains how to use GotoIf block and how to branch the callflow based on the GotoIf expression result.
Also, there is an article on this subject:
http://www.apstel.com/while-loop/how-to-model-elseif-in-asterisk-dial-plan/
that you may find useful.Raman
You must be logged in to reply to this topic.