public void putDialog(SIPDialog dialog){
  String dialogId=dialog.getDialogId();
  if (dialogTable.containsKey(dialogId)) {
    if (isLoggingEnabled()) {
      stackLogger.logDebug("putDialog: dialog already exists" + dialogId + " in table = "+ dialogTable.get(dialogId));
    }
    return;
  }
  if (isLoggingEnabled()) {
    stackLogger.logDebug("putDialog dialogId=" + dialogId + " dialog = "+ dialog);
  }
  dialog.setStack(this);
  if (isLoggingEnabled())   stackLogger.logStackTrace();
  dialogTable.put(dialogId,dialog);
}

public void putDialog ( SIPDialog dialog ) { String dialogId = dialog . getDialogId ( ) ; if ( dialogTable . containsKey ( dialogId ) ) { if ( isLoggingEnabled ( ) ) { stackLogger . logDebug ( "putDialog: dialog already exists" + dialogId + " in table = " + dialogTable . get ( dialogId ) ) ; } return ; } if ( isLoggingEnabled ( ) ) { stackLogger . logDebug ( "putDialog dialogId=" + dialogId + " dialog = " + dialog ) ; } dialog . setStack ( this ) ; if ( isLoggingEnabled ( ) ) stackLogger . logStackTrace ( ) ; dialogTable . put ( dialogId , dialog ) ; }
put a dialog into the dialog table .
