DIAMETER_RES_T

Retrieves header information and AVPs from Diameter responses.

AVPs can be retrieved by:

General usage: DIAMETER.RES.

Direct expressions

ACCOUNTING_SUB_SESSION_ID

Returns the Accounting-Sub-Session-Id AVP (code 287) from the response.

Returns: avp_t

ACCT_APPLICATION_ID

Returns the Acct-Application-Id AVP (code 259) from the response. Note: expression can be used to retrieve the value as Unsigned32

Returns: avp_unum_t

ACCT_MULTI_SESSION_ID

Returns the Acct-Multi-Session-Id AVP (code 50) from the response.

Returns: avp_t

ACCT_SESSION_ID

Returns the Acct-Session-ID AVP (code 44) from the response.

Returns: avp_t

APPLICATION_ID

Returns the Application-ID from the response.

Returns: unsigned_long_at

AUTH_APPLICATION_ID

Returns the Auth_Application-Id AVP (code 258) from the response. Note: expression can be used to retrieve the value as Unsigned32

Returns: avp_unum_t

AVP (uint avpcode)

Returns the specified AVP from the response.

For example, to get the AVP with code 263, use the expression: DIAMETER.RES.AVP(263).

Note: To get AVP 263 that is nested inside a grouped AVP, use the AVP method from the avp_t class.

Parameters (expressions not allowed):

            avpcode- AVP code

Returns: avp_t

COMMAND_CODE

Returns the Command Code from the response.

Returns: num_at

END_TO_END_ID

Returns the End-to-End Identifier from the response.

Returns: unsigned_long_at

HOP_BY_HOP_ID

Returns the Hop-by-Hop Identifier from the response.

Returns: unsigned_long_at

IS_ERROR

Returns true if the E (error) command flag is set for the response.

Returns: bool_at

IS_PROXIABLE

Returns true if the P (proxiable) command flag is set for the response.

Returns: bool_at

LENGTH

Returns the Message Length from the response.

Returns: num_at

ORIGIN_HOST

Returns the Origin-Host AVP (code 264) from the response.

Returns: avp_t

ORIGIN_REALM

Returns the Origin-Realm AVP (code 296) from the response.

Returns: avp_t

PRODUCT_NAME

Returns the Product-Name AVP (code 269) from the response.

Returns: avp_t

REDIRECT_HOST

Returns the Redirect-Host AVP (code 292) from the response.

Returns: avp_t

RESULT_CODE

Returns the Result-Code AVP (code 268) from the response.

Returns: avp_t

SESSION_ID

Returns the Session-ID AVP (code 263) from the response.

Returns: avp_t

SUPPORTED_VENDOR_ID

Returns the Supported-Vendor-Id AVP (code 265) from the response.

Returns: avp_t

USER_NAME

Returns the User-Name AVP (code 1) from the response.

Returns: avp_t

VENDOR_ID

Returns the Vendor-Id AVP (code 266) from the response.

Returns: avp_t

VENDOR_SPECIFIC_APPLICATION_ID

Returns the Vendor-Specific-Application-Id AVP (code 260) from the response.

Returns: vendor_spec_appid_avp_t

VERSION

Returns the version of the Diameter protocol. Currently, Diameter supports only version 1.

Returns: num_at