first person calling and waiting for an call of second person.
first we hold on play module with MoH until second one call and then we join on second channel with VBS:
set vg = CreateObject("vgServices.CommandLink")
vg.Bridge_Connect $RV_LINEID, $RV[call_me_back_line_no]
vg.Run_ResultReturn $RV_LINEID, "Success"
set vg = Nothing
But problem is, we want to wait up to 120 seconds to second caller, so we set up 10 replays of MoH loop prompt and waiting time to 120 seconds.
I this case after joining two channels VG stop playing MoH prompt but probably still counting playing time and after finish prompt and start next repeat VG playing MoH to first player.
Then first caller hearing again MoH and don't hear second caller, and second caller hear first caller and don't know what happen.
Is possible to do this?
- wait 120 seconds in play module hearing loop MoH file,
- when we join two channels first one not forwarding until we press any button or connection is disconnected
- when no other caller joining to first one after 120 seconds we forwarding to next module (to play "connection unsuccessful") and terminate call.
Maybe in VGScript?
Second question is: how to terminate other leg when one is ending connection (both caller options necessary)?