public void ConnectCall(String fromNumber, String toNumber) { Call inCall = Infra.Call(fromNumber); /*if (!inCall.Answered()) * { * Infra.Dispose(inCall); * return; * }*/ Call outCall = Infra.Call(toNumber); if (outCall.Answered()) { Infra.Connect(inCall, outCall); } else if (NoAns != null) { NoAns.NoAns(inCall, Infra); } Infra.Dispose2(inCall, outCall); Bill.Bill(inCall, outCall); }
public void Main(Agent agent1, Agent agent2) { infra.Call(sched.Pick(agent1, agent2).Number); }