Jump to content


< Back to Forum


 

How To Connect Two Simultaneous Calls?


  • Please log in to reply

#1 Maciej 09 July 2015 - 07:15 PM

Hi,

 

how to connect two simultaneous incoming calls as alternative for transfer call?



#2 SupportTeam 09 July 2015 - 07:34 PM

Can you please explain in more detail what you are trying to achieve.



#3 Maciej 09 July 2015 - 08:12 PM

I think i found:

http://www.voiceguid...dge_connect.htm

 

 

 

 

We need to connect to simultaneous caller together.

 

Target is: 

  1. caller 1 calling vg scenario
  2. 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)
  3. target person calling to vg
  4. we detect target is calling back and connecting with first person


#4 SupportTeam 10 July 2015 - 08:57 AM

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.



#5 Maciej 22 July 2015 - 09:04 PM

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.



#6 SupportTeam 22 July 2015 - 10: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.



#7 Maciej 22 July 2015 - 11: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 10
152512.606   7  16   6       path {10} not found
152512.607   7  16   6 t     timer set   6 sec : EV_TIMEOUT_ENTERDATA
152512.607   7  16   6 t     timer clear (force=False)
152512.607   7  16   6       rv    add   second_line|10
152512.607   7  16   6       path {10} not found
152512.607   7  16   6       FindNextVgmTitleInPathList: next module title is=[Run VB Script 4]
152512.607   7  16   6       rvns  add   second_line_PathTaken|success
152512.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:12
152512.607   7  16   6 t     timer set   30 sec : EV_TIMEOUT_HANGUP
152512.607   7  16   6       QueueUserWorkItem modVbs.Run_VBS
152512.608  17  16   6 task  runscr Run_VBS vgm=149, file=, engine=[ClearScriptV8]
152512.608  17  16   6       runscr strIni_moduleRunScript_Engine=ClearScriptV8
152512.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, 10
set vg = Nothing]
152512.608  17  16   6       not saving script (strIni_moduleRunScript_SaveToFile is False|0)
152512.608  17  16   6       runscr waiting. wait=1
152512.609  17  16   6       moh file not specified
152512.609  17  16   6       runscr call ClearScript Execute
152512.609  17  16   6       runscr new VBScriptEngine call
152512.610  17  16   6       runscr .Execute call
152512.612   4         rem   remoting link constructor activated: vgServices_CommandLink
152512.617   4         rem   Bridge_Connect 6, 10
152512.617   4               Bridge_Connect 6, 10
152512.617   4               Bridge_Connect sChDlgcName1= since sDevName1=
152512.617   4               Bridge_Connect sChDlgcName2=dtiB1T4 since sDevName2=Dialogic dxxxB1C4
152512.618  17  16   6       engineVbs dispose call
152512.618  17  16   6       runscr .Execute returned. iRunWait=1
152512.618  17  16   6       runscr RunWait_1 script completed
152512.618  17  16   6       runscr sModuleClearScriptProcessWasCalledFrom is current module Run VB Script 4, clearing setting
152512.618  17  16   6       runscr RunWait_1 taking fail path as script completed and no next module set
152512.618  17  16   6       HangupCall (RunModule_Script_AfterScriptStarted_1) crn_in=0, L1=Connected, L2=Running_Normal, lPlayId=0, lRecId=0
152512.619  17  16   6       ccrn_connected=2800193, crn_NewCallArriving=0, crn_CurrentMakeCall=0, crn_InProcessOfReleasing=0
152512.619  17  16   6       rv    add   Hangup Source|RunModule_Script_AfterScriptStarted_1
152512.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 4
152512.619  17  16   6       crn 0 set to crn_connected 2800193
152512.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?

 

 

 



#8 SupportTeam 23 July 2015 - 05:26 AM

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.voiceguid...esultreturn.htm