Example #1
0
 /// <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");
 }
Example #2
0
        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;
        }