Call Control API drop call and transfer ?

Discussion in '3CX Phone System - General' started by mswinton, Jun 5, 2012.

Thread Status:
Not open for further replies.
  1. mswinton

    Joined:
    Dec 9, 2011
    Messages:
    4
    Likes Received:
    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
     
  2. SWSDEV

    SWSDEV Member

    Joined:
    Feb 23, 2008
    Messages:
    256
    Likes Received:
    0
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mswinton

    Joined:
    Dec 9, 2011
    Messages:
    4
    Likes Received:
    0
    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
     
Thread Status:
Not open for further replies.