/** * Get the way of the message is send by the user of the application * * @return true if message is sent by the user of the application */ public boolean isOutgoing() { if (SipMessage.SELF.equalsIgnoreCase(from)) { return true; } else { return false; } }
/** * Get the number of the remote party. * * @return The remote party number */ public String getRemoteNumber() { if (SipMessage.SELF.equalsIgnoreCase(from)) { return to; } else { return from; } }