- Joined
- Jun 19, 2015
- Messages
- 4
- Reaction score
- 1
Hi All,
I know its me doing this wrong so hoping someone can give me some pointers.
On my app i'm developing, I can successfully blind transfer a call. However what i need to do is an attended transfer and give options if answered. Looking through the API i can see 3 methods i think i should be using:
So i tried the following:
All it seems to do is put the original caller on hold, call the destination and it hangs up when answered leaving people on hold. Not quite sure where I'm going wrong...
I know its me doing this wrong so hoping someone can give me some pointers.
On my app i'm developing, I can successfully blind transfer a call. However what i need to do is an attended transfer and give options if answered. Looking through the API i can see 3 methods i think i should be using:
Code:
CallStatus BeginTransfer (string callId, string destination)
void CancelTransfer (string callId)
void CompleteTransfer (string callId)
So i tried the following:
Code:
CallStatus AttendedTransfer = callHandler.BeginTransfer( call_id, calldestination );
if( AttendedTransfer.State == CallState.Connected )
{
//Caller Answered Give options here like ComlpeteTransfer or CancelTransfer based on response
}
All it seems to do is put the original caller on hold, call the destination and it hangs up when answered leaving people on hold. Not quite sure where I'm going wrong...