Product Documentation

SUBSCRIBER_T

Jun 13, 2016

Retrieves AVPs and other subscriber attributes from a subscriber session.

This topic lists the expressions that are provided by this class.

AVP (uint avpcode)

Returns the AVP with the given AVP code from the subscriber session.

Parameters (expressions not allowed):

avpcode - AVP code

Returns: avp_t

AVP (uint avpcode, uint vendorid)

Returns the AVP with the given code and within given Vendor ID namespace from this subscriber session.

Parameters (expressions not allowed):

avpcode - AVP code

vendorid - Vendor ID

Returns: avp_t

RULE_ACTIVE (text_t rulename)

Returns true if given rulename is active for this subscriber session.

  • Expression RULE_ACTIVE searches the current policies of subscriber and returns TRUE if it is present, otherwise returns FALSE.

Parameters (expressions not allowed):

rulename - Polname

Returns: bool_at

SERVICEPATH

Returns the SERVICEPATH name as a string.

  • Expression SERVICEPATH fetches the value in servicepathAVP for dynamic subscribers, or configured servicepath for static subscribers.
  • It returns NULL if servicepathAVP is not present or servicepath is not configured.

Returns: servicepath_t