invoso.com Report post Posted 07/07/2011 12:57 PM Hi, I connected call with Dialout and Conference - monitored transfer module. next is play module (waiting for a maximum duration time in prepaid solution) I need to terminate connection with target number (outside) and back to next element in my script. Share this post Link to post
SupportTeam Report post Posted 07/07/2011 10:49 PM If maximum conversation time is known at connection time then you can just use a Timeout path in the Play module. (You can use a Result Variable for the timeout seconds value). Otherwise you can have an external program call a Bridge_Disconnect and Line_Hangup API functions. http://www.voiceguide.com/vghelp/source/html/com_bridge_disconnect.htm http://www.voiceguide.com/vghelp/source/html/com_line_hangup.htm and have the 'other_line_disconnect" path in the play module, which is taken when the other side of conference call hangs up. Share this post Link to post
invoso.com Report post Posted 07/09/2011 10:27 AM How to identify second line id? Share this post Link to post
SupportTeam Report post Posted 07/09/2011 09:48 PM Result Variables ($RVs) are created on the fist channel which advise you of the ID/Port of the second line used. The vgEngine trace shows the $RVs created. Share this post Link to post
invoso.com Report post Posted 07/11/2011 10:03 AM I attached log file. Can You help me find RV with line id? 0711_1126_vgEngine_mac.zip Share this post Link to post
invoso.com Report post Posted 07/12/2011 06:12 AM Hi, I found var: $RV[Conf_LineId_2] but doesen't work this command set vg = CreateObject("vgServices.CommandLink") vg.Bridge_Disconnect $RV[Conf_LineId_2] set vg = Nothing Bridge_Disconnect require both of line to disconnect set vg = CreateObject("vgServices.CommandLink") vg.Bridge_Disconnect $RV_LINEID, $RV[Conf_LineId_2] set vg = Nothing How to disconnect only $RV[Conf_LineId_2]? Share this post Link to post
SupportTeam Report post Posted 07/12/2011 06:15 AM The API command Line_Hangup can be used. See: http://www.voiceguide.com/vghelp/source/html/com_line_hangup.htm Share this post Link to post
SupportTeam Report post Posted 07/12/2011 06:42 AM Note that if you want to hangup just the outgoing leg of the tromboned connection then you need to handle some of the OTHER_LEG_ events that are sent to the original leg of call. These OTHER_LEG events usually result in the original line being hung up as well, unless there is a path in the current module that handles that event. Just have a path like this in your "just wait" Play module: on {OTHER_LEG_Disconnected} goto [2nd leg hung up] (you will need a module titled "2nd leg hung up" in order fro this path to work). 112754.056 6 16 6 qScr add evScriptEvent 0 OTHER_LEG_Disconnected ... 112754.056 6 16 6 qScr run evScriptEvent sCode=[OTHER_LEG_Disconnected] iActionID=0, crn=0[16384|0|64|0|0][|||||] ... 112754.056 6 16 6 path {OTHER_LEG_Disconnected} not found 112754.056 6 16 6 hanging up 1st leg of call (other leg cause) Share this post Link to post