invoso.com Report post Posted 11/24/2016 02:30 PM Can You help me to create procedure we use in pbx script: vg.Bridge_Disconnect $RV[caller_lineid], $RV[agent1_line_id] to disconnect caller and agent after some steps we want to reconnect agent $RV[agent1_line_id] - active path - to client but we need to be sure that client is still connected we need to compare $RV[session_id] on both lines using e.g. sReturnValue = vg.RvGet($RV[SecondLineId], "$RV[session_id]") IF caller_lineid $RV[session_id] = agent1_line_id $RV[agent1_line_id] THEN ( vg.Bridge_Disconnect $RV[caller_lineid], $RV[agent1_line_id] vg.Script_Goto $RV[agent1_line_id], "path" ELSE vg.Script_Goto $RV[agent1_line_id], "path" END IF Share this post Link to post
SupportTeam Report post Posted 11/26/2016 04:18 PM Please see below. Please let us know if you have any questions: set vg = CreateObject("vgServices.CommandLink") sSessionCaller = vg.RvGet($RV[caller_lineid], "RV[session_id]") sSessionAgent = vg.RvGet($RV[agent1_line_id], "RV[session_id]") If sSessionCaller = sSessionAgent Then vg.Bridge_Connect $RV[caller_lineid], $RV[agent1_line_id] vg.Script_Goto $RV[agent1_line_id], "path" Else vg.Script_Goto $RV[agent1_line_id], "path" End If set vg = Nothing Share this post Link to post