code: public Address getLocalParty() {
  		if(sessionCreatingDialog != null) {
  			return new AddressImpl(sessionCreatingDialog.getLocalParty(), null, ModifiableRule.NotModifiable);
  		} else if (sessionCreatingTransactionRequest != null){
  			if(isSessionCreatingTransactionServer) {
  				ToHeader toHeader = (ToHeader) sessionCreatingTransactionRequest.getMessage().getHeader(ToHeader.NAME);
  				return new AddressImpl(toHeader.getAddress(), AddressImpl.getParameters((Parameters)toHeader),  ModifiableRule.NotModifiable);
  			} else {
  				FromHeader fromHeader = (FromHeader)sessionCreatingTransactionRequest.getMessage().getHeader(FromHeader.NAME);
  				return new AddressImpl(fromHeader.getAddress(), AddressImpl.getParameters((Parameters)fromHeader),  ModifiableRule.NotModifiable);
  			}
  		} else {
  			return localParty;
  		}
  	}
docs: /*
  (non-Javadoc)
  @see javax.servlet.sip.SipSession#getLocalParty()