VoiceGuide IVR Software Main Page
Jump to content

Disconnect Transfered Call

Recommended Posts

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

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

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×