invoso.com Report post Posted 07/09/2015 09:15 AM Hi, how to connect two simultaneous incoming calls as alternative for transfer call? Share this post Link to post
SupportTeam Report post Posted 07/09/2015 09:34 AM Can you please explain in more detail what you are trying to achieve. Share this post Link to post
invoso.com Report post Posted 07/09/2015 10:12 AM I think i found: http://www.voiceguide.com/vghelp/source/html/com_bridge_connect.htm We need to connect to simultaneous caller together. Target is: caller 1 calling vg scenario we call to target person and play message (call me back) (how to hold call after target disconnecting? - OTHER_LEG DISCONNECTING? or after message is finished) target person calling to vg we detect target is calling back and connecting with first person Share this post Link to post
SupportTeam Report post Posted 07/09/2015 10:57 PM we call to target person and play message (call me back) (how to hold call after target disconnecting? - OTHER_LEG DISCONNECTING? or after message is finished) Best if this is made as a separate outgoing call. It would just be loaded into the Dialer and the dialer would make the call independently, so there would be no 'other_leg_' messages being sent. we detect target is calling back and connecting with first person The Bridge_Connect command would be used to connect these two independent calls. Share this post Link to post
invoso.com Report post Posted 07/22/2015 11:04 AM HI, I think Bridge_Connect is way to solve our problem, question is: how to hold first call to be reachable for a second one? First call should be on hold, then second call recognize first call channel and then go to VBS and bridge two calls. Share this post Link to post
SupportTeam Report post Posted 07/22/2015 12:58 PM The script running on the 'first' line would just need to intercept the OTHER_LEG DISCONNECTING event and have that path lead to a 'play' module that just plays some music to the caller. And when the Bridge_Connect issued, that would reroute the first caller's sound source to be the second caller's sound instead. If you are having any problems with this then please post the script(s) that you are using and the vgEngine trace and we can advise what should be changed in them to make it work. Share this post Link to post
invoso.com Report post Posted 07/22/2015 01:33 PM We call to script. first call choosing option 1 in "GetNumbers 2" module and waiting on Play 1 second call choosing option 2 in "GetNumbers 2" module and typing port number of 1st call 152512.606 7 16 6 state [second_line] Number Input 10152512.606 7 16 6 path {10} not found152512.607 7 16 6 t timer set 6 sec : EV_TIMEOUT_ENTERDATA152512.607 7 16 6 t timer clear (force=False)152512.607 7 16 6 rv add second_line|10152512.607 7 16 6 path {10} not found152512.607 7 16 6 FindNextVgmTitleInPathList: next module title is=[Run VB Script 4]152512.607 7 16 6 rvns add second_line_PathTaken|success152512.607 7 16 6 t timer clear (force=False)152512.607 7 16 6 RunModule start Run VB Script, [Run VB Script 4], iModuleIdx=149, previous: vgm=150, vgs=12:12152512.607 7 16 6 t timer set 30 sec : EV_TIMEOUT_HANGUP152512.607 7 16 6 QueueUserWorkItem modVbs.Run_VBS152512.608 17 16 6 task runscr Run_VBS vgm=149, file=, engine=[ClearScriptV8]152512.608 17 16 6 runscr strIni_moduleRunScript_Engine=ClearScriptV8152512.608 17 16 6 state [Run VB Script 4] RunScript, wait=1, onhold=152512.608 17 16 6 rv replace start------------------------------set vg = CreateObject("vgServices.CommandLink")vg.Bridge_Connect $RV_PORTNUMBER, $RV[second_line]set vg = Nothing------------------------------152512.608 17 16 6 rv replace end [set vg = CreateObject("vgServices.CommandLink")vg.Bridge_Connect 6, 10set vg = Nothing]152512.608 17 16 6 not saving script (strIni_moduleRunScript_SaveToFile is False|0)152512.608 17 16 6 runscr waiting. wait=1152512.609 17 16 6 moh file not specified152512.609 17 16 6 runscr call ClearScript Execute152512.609 17 16 6 runscr new VBScriptEngine call152512.610 17 16 6 runscr .Execute call152512.612 4 rem remoting link constructor activated: vgServices_CommandLink152512.617 4 rem Bridge_Connect 6, 10152512.617 4 Bridge_Connect 6, 10152512.617 4 Bridge_Connect sChDlgcName1= since sDevName1=152512.617 4 Bridge_Connect sChDlgcName2=dtiB1T4 since sDevName2=Dialogic dxxxB1C4152512.618 17 16 6 engineVbs dispose call152512.618 17 16 6 runscr .Execute returned. iRunWait=1152512.618 17 16 6 runscr RunWait_1 script completed152512.618 17 16 6 runscr sModuleClearScriptProcessWasCalledFrom is current module Run VB Script 4, clearing setting152512.618 17 16 6 runscr RunWait_1 taking fail path as script completed and no next module set152512.618 17 16 6 HangupCall (RunModule_Script_AfterScriptStarted_1) crn_in=0, L1=Connected, L2=Running_Normal, lPlayId=0, lRecId=0152512.619 17 16 6 ccrn_connected=2800193, crn_NewCallArriving=0, crn_CurrentMakeCall=0, crn_InProcessOfReleasing=0152512.619 17 16 6 rv add Hangup Source|RunModule_Script_AfterScriptStarted_1152512.619 17 16 6 HangupCall sScriptToRunOnHangup=[]152512.619 17 16 6 after hangup script as supplied: []152512.619 17 16 6 AfterHangup script not set.152512.619 17 16 6 rv add DropCall_Source|Run VB Script 4152512.619 17 16 6 crn 0 set to crn_connected 2800193152512.619 17 16 6 L1_set Disconnect_Pending (iState=LS_RUN_WAITTILLFINISHED)152512.619 17 16 6 state Hanging up... [RunModule_Script_AfterScriptStarted_1] I get $RV[second_line] from $RV_PORTNUMBER of first call we have several options to declare channels: port number OR $RV_LINEID. How VG to recognize what I mean: port or lineid? join2calls.vgs Share this post Link to post
SupportTeam Report post Posted 07/22/2015 07:26 PM Bridge_Connect uses LineID's to specify the two lines to connect, not port numbers. Also, after performing the connection you should put the script that is running on the seconds line into a waiting state (using a Play module that plays nothing and has a long timeout path is fine). Right now the script on second line hangs up immediately after performing the transfer: 152512.618 17 16 6 runscr RunWait_1 taking fail path as script completed and no next module set the "Success" result needs to be explicitly returned by the VBScript in order for the Success path to be taken. Please use the "Run_ResultReturn" command to return the Success result. http://www.voiceguide.com/vghelp/source/html/com_run_resultreturn.htm Share this post Link to post