public CallHandler(Softphone softphone, IPhoneCall Call, PhoneCallAudioSender mediaSender) { _softphone = softphone; _Call = Call; _mediaSender = new PhoneCallAudioSender(); _connector = new MediaConnector(); _mediaSender = mediaSender; }
/// <summary> /// Initializes the softphone logic and subscribes to its events to get notifications from it. /// (eg. the registration state of the phone line has changed or an incoming call received) /// </summary> private static void InitSoftphone() { _mySoftphone = new Softphone(); _mySoftphone.PhoneLineStateChanged += mySoftphone_PhoneLineStateChanged; _mySoftphone.CallStateChanged += mySoftphone_CallStateChanged; _numberToTransfer = string.Empty; _numberToCall = string.Empty; _exampleSteps = string.Empty; }