public bool Transfer(string callid, string caller, string destination) { TapiCall call = null; TapiAddress address = GetAddress(caller); bool success = false; if (address != null) { foreach (TapiCall tc in address.Calls) { if (tc.Id.ToString() == callid) { call = tc; break; } } if (call != null) { log.Debug("Transfering call " + callid + " from " + caller + " to " + destination); try { call.BlindTransfer(destination, 0); success = true; } catch (Exception e) { log.Debug("Unable to setup transfer, " + e.Message); } } } return(success); }
private void btnBlindTransfer_Click(object sender, EventArgs e) { GetDialableNumberForm gdf = new GetDialableNumberForm("Transfer"); if (gdf.ShowDialog() == DialogResult.OK) { if (gdf.Number.Length > 0) { _call.BlindTransfer(gdf.Number, 0); } } }