In ICM call flow after Queue to Skill Group I am doing 'Run External Script' to call a M,prompt microapp with Config Prams as 1,,y,,... to give an option to the caller to press 1 for VM or continue to hold.
I do not know how to capture and trap 1 DTMF from a CVP Microapp in an ICM script and then take action on it accordingly from a ICM script.
Kindly assist please.
The CED node is what you need.
If you are playing a prompt that says: "press 1 for voice mail, or just stay on the line to continue to wait for an agent", I find this easier to do with a Get Digit microapp.
Make sure you set "user.microapp.input_type" = "D" before the "Run External Script" node.
Set the length to be 1 and the number of no-entry tries to be 1.
Add a CED node. "1" will be for the option to go to voice mail.
If you want "no entry" to be acceptable then you need to come out the "X" port of the GD "Run External Script" node and check the ECC variable user.microapp.error_code - a value of 17 = reached max no entry tries. Send this back to your "queue to skill group" node.
In order to prevent the caller from hearing the default system message "please make a selection" you need to set the over-ride flag in your microapp configuration and copy one of the system wav files (something like silence_.5.wav) into your app directory and give it a special name.
The name is _no_entry_error.wav. See page 541 of the 7.0(2) CVP Config Guide.
I've done this many times. The log file from the CVP call server will help you if you make an error.