/// <summary> /// This is invoked when call is initiated. It will never be invoked for callee /// </summary> /// <param name="sender"></param> /// <param name="args"></param> void phone_Originated(object sender, OriginatedEventArgs args) { Trace.WriteLine("Originated Event Received - Not allowed for Callee", "Warning"); }
void phone_Originated(object sender, OriginatedEventArgs args) { /** * conn must be set to originated connection here so that if the callee does not answer the call, * that condition can be detected with the current implementation of connection cleared. */ conn = args.OriginatedConnection; // Enable call timer and re-initialize its timeout value callDurationTimer.Interval = maxCallDuration * 1000; callDurationTimer.Enabled = true; }