SIP_RES_T
Operates SIP Response.
This topic lists the expressions that are provided by this class.
BODY (uint i)
Operate as Text on the SIP response body. The length of the body is equal to the number in the argument. If there aren't enough characters in the body then the entire body is selected.
Parameters``:
i- Body length
Returns: text_t
-
CALLIDReturns the content of the "Callid" header
Returns: text_t
-
CONTENT_LENGTHReturns the length of the SIP response as a number.
Returns: sip_content_length_t
-
CSEQReturns the SIP Cseq number
Returns: num_t
-
FROMReturns the content of the "From" header
Returns: sip_from_header_t
-
FULL_HEADERReturns the entire response header (including the terminating \\r\\n\\r\\n)
Returns: text_t
HEADER (text_t header_name)
Returns the contents of the SIP header specified by the String argument. The header name cannot be longer than 32 characters.
Parameters (expressions not allowed):
header_name- Header Name
Returns: sip_header_t
-
IS_GLOBAL_FAILUREReturns True if response code is 6xx.
Returns: bool_at
-
IS_PROVISIONALReturns True if response code is 1xx.
Returns: bool_at
-
IS_REDIRECTReturns True if response code is 3xx
Returns: bool_at
-
IS_REQUEST_FAILUREReturns True if response code is 4xx.
Returns: bool_at
-
IS_SERVER_FAILUREReturns True if response code is a 5xx.
Returns: bool_at
-
IS_SUCCESSFULReturns True if response code is 2xx.
Returns: bool_at
-
IS_VALIDReturns TRUE if the SIP response is properly formed.
Returns: bool_at
-
METHODReturns the SIP method. this is extracted from the Cseq header in the response.
Returns: sip_method_t
-
STATUSReturns the SIP response status code.
Returns: num_t
-
STATUS_MSGReturns the SIP response status message.
Returns: text_t
-
TOReturns the content of the "To" header
Returns: sip_to_header_t
-
VERSIONReturns the SIP version.
Returns: sip_version_t
-
VIAReturns the content of the "Via" header
Returns: sip_via_header_t