Exemple #1
0
            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);
            }