コード例 #1
0
 /**
  * Handle a Re-Register Request. This method will only have effect if the user has successfully
  * registered beforeat least once before.
  */
 public void handleReRegisterRequest() {
   if (this.password != null && !this.username.equals("")) {
     try {
       sipManager.startRegisterProcess(username, authUserName, password);
     } catch (CommunicationsException exc) {
       Log.error("handleRegisterRequest", exc);
     }
   }
 }
コード例 #2
0
  /**
   * Handle an RegisterRequest
   *
   * @param username username
   * @param authUserName Authorization username
   * @param password password
   */
  public void handleRegisterRequest(String username, String authUserName, String password) {

    this.authUserName = authUserName;
    this.username = username;
    this.password = password;

    try {
      sipManager.startRegisterProcess(username, authUserName, password);
    } catch (CommunicationsException exc) {
      Log.error("handleRegisterRequest", exc);
    }
  }