예제 #1
0
파일: Ats.cs 프로젝트: tolpawsta/ATSApp
        private void Port_OnDrop(CallInfo callInfo)
        {
            ISubscriber subscriber       = _billingSystem.GetSubscriberBy(callInfo.SourcePhoneNumber);
            ISubscriber targetSubscriber = _billingSystem.GetSubscriberBy(callInfo.TargetPhoneNumber);

            CallController.CallCommit(callInfo, _billingSystem);
            subscriber.Port.CallResponce($"{targetSubscriber.FullName} droped the call...");
        }
예제 #2
0
파일: Ats.cs 프로젝트: tolpawsta/ATSApp
        private void Port_OnReject(CallInfo callInfo)
        {
            ISubscriber subscriber       = _billingSystem.GetSubscriberBy(callInfo.SourcePhoneNumber);
            ISubscriber targetSubscriber = _billingSystem.GetSubscriberBy(callInfo.TargetPhoneNumber);

            subscriber.Port.CallResponce($"{subscriber.FullName}: call rejected with {targetSubscriber.FullName}");
            targetSubscriber.Port.CallResponce($"{targetSubscriber.FullName}: call rejected with {subscriber.FullName}");
            CallController.CallCommit(callInfo, _billingSystem);
        }