invoso.com Report post Posted 01/08/2016 08:26 AM vg.RvSet_RvList $RV_LINEID, "[var_1]{$RV[Conf_LineId_1]}[var_2]{$RV[Conf_LineId_2]}[session_id]{$RV[session_id]}" question is: how it works? vg.RvSet $RV_LINEID, "ThisCallersRating", "medium" or vg.RvSet_RvList $RV_LINEID, "[CallersRating]{medium}[CallersPreference]{blue}" in this case is $RV_LINEID target line to set data? and sReturnValue = vg.RvGet($RV_LINEID, "$RV_CALLLENGTH") is that $RV_LINEID a source line of data? We have call client - Agent 1 how to transfer some data from client Line to Agent 1 line? Share this post Link to post
SupportTeam Report post Posted 01/08/2016 05:06 PM in this case is $RV_LINEID target line to set data? Yes. is that $RV_LINEID a source line of data? Yes. how to transfer some data from client Line to Agent 1 line? Just use the LineID of the 2nd line. eg: vg.RvSet $RV[id_of_2nd_line], "ThisCallersRating", "medium" vg.RvSet_RvList $RV[id_of_2nd_line], "[CallersRating]{medium}[CallersPreference]{blue}" Please also see: http://voiceguide.com/forums/index.php?showtopic=12193 also note that line: sReturnValue = vg.RvGet($RV_LINEID, "$RV_CALLLENGTH") can just be replaced with sReturnValue = "$RV_CALLLENGTH" as the intent is just to retrieve the $RV value for current line anyway, so you can just let that $RV be replaced with current value. or, as $RV_CALLLENGTH is always a numeric value that line can just be: sReturnValue = $RV_CALLLENGTH Also, the line: sReturnValue = vg.RvGet($RV_LINEID, "$RV_CALLLENGTH") would actually set sReturnValue to an empty string as before running the scirpt that line would be changed to something like this: sReturnValue = vg.RvGet($RV_LINEID, "23") (if current call length is 23 seconds) To stop the $RV from being replaced before running the script the $ needs to be omitted. so line would need to be something like this: sReturnValue = vg.RvGet($RV_LINEID, "RV_CALLLENGTH") or probably this: sReturnValue = vg.RvGet($RV[some_other_lineid], "RV_CALLLENGTH") Share this post Link to post
invoso.com Report post Posted 11/25/2016 01:27 PM How to store variable $RV[session_id] from channel $RV[caller_lineid] on channel $RV[agent1_line_id] as $RV[otherLine_session_id] ? 142049.860 5 89 30 rv replace start ------------------------------ set vg = CreateObject("vgServices.CommandLink") sReturnValue = vg.RvGet($RV[caller_lineid], "$RV[session_id]") vg.Run_ResultReturn $RV[agent1_line_id], "[otherLine_session_id]{" & sReturnValue & "}" set vg = Nothing ------------------------------ 142049.860 5 89 30 rv replace end [set vg = CreateObject("vgServices.CommandLink") sReturnValue = vg.RvGet(13, "ID20161125_142007_43_5_68120") vg.Run_ResultReturn 89, "[otherLine_session_id]{" & sReturnValue & "}" set vg = Nothing] 142049.860 5 89 30 not saving script (strIni_moduleRunScript_SaveToFile not set) 142049.860 5 89 30 runscr waiting. wait=1, calling iModuleIdx=944 (setting iRunWait_VgmIdx to 944) 142049.860 5 89 30 moh file not specified 142049.860 5 89 30 runscr call ClearScript Execute 142049.860 5 89 30 runscr new VBScriptEngine call 142049.861 5 89 30 runscr .Execute call 142049.861 41 rem remoting link constructor activated: vgServices_CommandLink 142049.862 41 13 5 rem RvGet ID20161125_142007_43_5_68120 142049.862 41 13 5 rv replace start [$RV[ID20161125_142007_43_5_68120]] 142049.862 41 rv dbg rv_retrieve did not find [ID20161125_142007_43_5_68120] 142049.862 41 13 5 rv replace end [] 142049.862 41 13 5 RvGet eval assuming simple name: sRvInput=$RV[ID20161125_142007_43_5_68120], sRvOutput= 142049.862 41 89 30 rem Run_ResultReturn [[otherLine_session_id]{}] 24 142049.863 41 89 30 q_scr + cmdRun_ResultReturn 0 142049.863 9 89 30 q_scr run cmdRun_ResultReturn sCode=[] iActionID=0, crn=0 [0|0|0|0|0][[otherLine_session_id]{}|||||] 00:00:00 max:4|00:00:00.0460026 142049.863 9 89 30 Run_ResultReturn_InqScr rv return 142049.863 9 89 30 rvns add otherLine_session_id| 142049.863 5 89 30 engineVbs dispose call Share this post Link to post
SupportTeam Report post Posted 11/26/2016 04:10 PM How to store variable $RV[session_id] from channel $RV[caller_lineid] on channel $RV[agent1_line_id] as $RV[otherLine_session_id] ? Please see this script: set vg = CreateObject("vgServices.CommandLink") mySessionId = vg.RvGet($RV[caller_lineid], "RV[session_id]") vg.RvSet $RV[agent1_line_id], "otherLine_session_id", mySessionId vg.Run_ResultReturn $RV_LINEID, "Success" set vg = Nothing Please note that if a line like below is used in the ran VBScript: sReturnValue = vg.RvGet($RV[caller_lineid], "$RV[session_id]") Then the $RV[session_id] will be replaced with its value (from the current line) before the script is ran. In most RvGet() calls the "$" should not be included in the expression of what $RVs should be retrieved. Share this post Link to post