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.