Method |
Description |
String SipMessage.getHeaderFieldValue("header"); |
Returns the value of a given header. If the
header does not exist in the message, NULL is returned. |
Byte[] SipMessage.getBody(); |
Returns the body or payload of the SIP message, if
one exists. |
SipRequest request = (SipRequest)message;The above example shows the case of sending a 200 response code back to the original sender. Any valid SIP response and response string may be sent.
SipResponse response = request.buildResponse( 200, "OK" );
SipUserAgent.getInstance().postMessage( response );