VoiceGuide IVR Software Main Page
Jump to content

Save dtmf press tones in incoming call

Recommended Posts

Dear VoiceGuide,

I have a script which says Press 1 for Arabic and Press 2 fro English once the user press the number then i want to save this value in cdrin table.Please do the needful.

Share this post


Link to post

From https://www.voiceguide.com/vghelp/source/html/log_cdrs.htm :

The Result Variables defined during the call can be optionally saved in the lastdata field. To enable saving of $RVS in CDR logs add this to the [Log] section of the VG.INI file:

CDR_LastData_SaveRv=1

 

The above will result in all RVs created during the call being saved.

Alternatively you can set: $RV[CDR_amaflags] or $RV[CDR_user] to hold data of your choice, and these $RVs are then saved in CDR. See below:

 

From https://www.voiceguide.com/vghelp/source/html/log_cdrs.htm :

Contents of $RV[CDR_amaflags] will be placed in the 16th CDR field.

Contents of $RV[CDR_user] will be placed in the 17th CDR field.

Share this post


Link to post

Saving of $RVs created during the call into the $RV[CDR_amaflags] or $RV[CDR_user]   can be done using an Evaluate Expression module, or RvSet API function (amongst others).

When using Evaluate Expression module,  just type in the $RVs and any other text into the "Expression to Evaluate" text box, and then type in CDR_user or  CDR_amaflags (or your own$RV name) into the  "Assign to RV" text box.

 

eg. To save the selections made by callers in modules "GetUser" and "AskForSelection" into $RV[CDR_user] the Evaluate Expression module would be used like this:

image.png.3e7ef6aadbc81116d29c72447b9970eb.png

 

More info on Evaluate Expression module here: https://www.voiceguide.com/vghelp/source/html/modevalexpr.htm

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×