• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

Call Control API drop call and transfer ?

Status
Not open for further replies.

mswinton

Joined
Dec 9, 2011
Messages
4
Reaction score
0
Hello all,

I am having trouble with two commands....I have no problem with makecall however the next two are giving me difficulties:

private void btnDone_Click(object sender, EventArgs e)
{
try
{
string strValue = string.Empty;

strValue = "9478945723";


TCX.PBXAPI.PBXConnection pbx = CreatePbxConn();
pbx.DropCall(System.Convert.ToInt32(strValue), "301");
}
catch (Exception ex)
{
System.Console.WriteLine(ex.ToString());
}


}

private void button1_Click(object sender, EventArgs e)
{
try
{


TCX.PBXAPI.PBXConnection pbx = CreatePbxConn();
pbx.TransferCall(System.Convert.ToInt32("19478945723"), "400", "301");
}
catch (Exception ex)
{
System.Console.WriteLine(ex.ToString());
}
}

Call anyone help
 
Why are you using "19478945723" as the call id?

This value has to be the 3cx generated call id of the call that is in progress.
 
Thanks!

That worked! Have you worked with web services and asp.net & C# to create clients?

Would love to chat about help>

Michael
847-894-5723
 
Status
Not open for further replies.
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.