Beispiel #1
0
 /// <summary>
 /// This will be called when the registration state of the phone line has changed.
 /// </summary>
 static void mySoftphone_PhoneLineStateChanged(object sender, RegistrationStateChangedArgs e)
 {
     if (e.State == RegState.RegistrationSucceeded)
     {
         _MainWin.WriteMsg("Registration succeeded - Online!");
     }
     else if (e.State == RegState.NotRegistered)
     {
         _MainWin.WriteMsg("Not registered");
     }
     else if (e.State == RegState.Error)
     {
         _MainWin.WriteMsg("Registration Error!");
     }
 }