Call Transfer with CT ADE

Jan 18, 2005 0 Replies

I'm writing an IVR program using CT ADE and flowchart (Dialogic Board). I'm having a problem with Call Transfer where the board doesn't recognize that somebody has picked up a receiver until they start talking and that causes 2 seconds delay before recognizing the connection. Can anybody help me with that.



Here is the code that I wrote for call transfer


func CallTransfer(TransferNumber)



# Enable Call Progress for R4DxMediaDial MediaSetBool(285, 1);


# Start - Set the number of seconds to wait for a non answare. VIP_TransferSeconds = VIP_TransferSeconds * 100; MediaSetInt(275, VIP_TransferSeconds); # End - Set the number of seconds to wait for a non answare. 1000 = 10 seconds


MediaSetInt(229,1); MediaSetInt(273,2); MediaSetInt(245,8);



# Dial



MediaSetString(284, "&"&TransferNumber);



# Find the CPA result. If the call was connected, transfer # the call. If not, return to the original caller with # a second flash-hook. CPAResult = MediaGetInt(203); if (CPAResult eq 10) dhbConnected = 1; #-Connected TrunkDisconnect(); restart; else dhbConnected = 2; #-Not ConnectedS MediaSetBool(285, 0); MediaSetString(284, "&");


endif



endfunc


Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required