Guest mohammedzoheb Report post Posted 07/25/2019 09:44 AM 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
SupportTeam Report post Posted 07/25/2019 09:53 AM 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
SupportTeam Report post Posted 10/24/2019 11:38 PM 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: More info on Evaluate Expression module here: https://www.voiceguide.com/vghelp/source/html/modevalexpr.htm Share this post Link to post