DIAMETER_MESSAGE_T
Define common operations for Diameter.Req or Diameter.Res.
This topic lists the expressions that are provided by this class.
-
ACCOUNTING_SUB_SESSION_IDReturns the Accounting-Sub-Session-Id AVP (code 287) from the message.
Returns: avp_t
-
ACCT_APPLICATION_IDReturns the Acct-Application-Id AVP (code 259) from the message.Note:expression can be used to retrieve the value as Unsigned32
Returns: avp_unum_t
-
ACCT_MULTI_SESSION_IDReturns the Acct-Multi-Session-Id AVP (code 50) from the message.
Returns: avp_t
-
ACCT_SESSION_IDReturns the Acct-Session-ID AVP (code 44) from the message.
Returns: avp_t
-
APPLICATION_IDReturns the Application-ID from the message.
Returns: unum_text_t
-
AUTH_APPLICATION_IDReturns the Auth-Application-Id AVP (code 258) from the message.Note:expression can be used to retrieve the value as Unsigned32
Returns: avp_unum_t
-
AVP_ENDReturns the location at the end of Diameter message (or in other words end of all AVPs) in Diameter message.
Returns: text_t
-
AVP_LISTReturns the AVP region in Diameter message (or in other words returns location at start of AVPs and length equal to Diameter message length excluding header).
Returns: text_t
AVP (uint avpcode)
Returns the specified AVP from the message.
For example, to get the AVP with code 263 from a Request, use the expression: DIAMETER.REQ.AVP(263).
Note: To get AVP 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
AVP (uint avpcode, uint vendorid)
Returns the specified AVP in given vendor-id namespace from the message.
For example, to get the AVP with code 1001 and VendorId 10415 from a Request, use the expression: DIAMETER.REQ.AVP(1001, 10415).
Note: To get AVP that is nested inside a grouped AVP, use the AVP method from the avp_t class.
Parameters (expressions not allowed):
avpcode- AVP code
vendorid- Vendor Id
Returns: avp_t
-
AVP_STARTReturns the location at the start of AVPs (or in other words end of diameter header) in Diameter message.
Returns: text_t
-
COMMAND_CODEReturns the Command Code from the message.
Returns: unum_text_t
-
END_TO_END_IDReturns the End-to-End Identifier from the message.
Returns: unsigned_long_at
-
FLAGSReturns the value of Diameter Header flags in Diameter message.
Returns: diameter_flag_t
-
HOP_BY_HOP_IDReturns the Hop-by-Hop Identifier from the message.
Returns: unsigned_long_at
-
IS_PROXIABLEReturns true if the P (proxiable) command flag is set for the message.
Returns: bool_at
-
LENGTHReturns the Message Length from the message.
Returns: num_at
-
ORIGIN_HOSTReturns the Origin-Host AVP (code 264) from the message.
Returns: avp_t
-
ORIGIN_REALMReturns the Origin-Realm AVP (code 296) from the message.
Returns: avp_t
-
PRODUCT_NAMEReturns the Product-Name AVP (code 269) from the message.
Returns: avp_t
-
SESSION_IDReturns the Session-ID AVP (code 263) from the message.
Returns: avp_t
-
SUPPORTED_VENDOR_IDReturns the Supported-Vendor-Id AVP (code 265) from the message.
Returns: avp_t
-
USER_NAMEReturns the User-Name AVP (code 1) from the message.
Returns: avp_t
-
VENDOR_IDReturns the Vendor-Id AVP (code 266) from the message.
Returns: avp_t
-
VENDOR_SPECIFIC_APPLICATION_IDReturns the Vendor-Specific-Application-Id AVP (code 260) from the message.
Returns: vendor_spec_appid_avp_t
-
VERSIONReturns the version of the Diameter protocol. Currently, Diameter supports only version 1.
Returns: unum_text_t