ANNA Suite  2020b
Multipurpose development suite for Telco applications
Static Public Member Functions | List of all members
anna::diameter::helpers::dcca::functions Struct Reference

#include <functions.hpp>

Static Public Member Functions

static std::string getSubscriptionIdData (const anna::DataBlock &db, int subscriptionIdType=AVPVALUES__Subscription_Id_Type::END_USER_E164) noexcept(false)
 
static std::string getServiceContextId (const anna::DataBlock &db, ChargingContext::_v &chargingContext) noexcept(false)
 
static std::string getServiceContextId (const anna::DataBlock &db) noexcept(false)
 

Member Function Documentation

◆ getServiceContextId() [1/2]

static std::string anna::diameter::helpers::dcca::functions::getServiceContextId ( const anna::DataBlock db,
ChargingContext::_v chargingContext 
)
staticnoexcept

Service-Context-Id from datablock provided.

Parameters
dbProvided Message DataBlock
chargingContextDetected charging context
Returns
Service-Context-Id

◆ getServiceContextId() [2/2]

static std::string anna::diameter::helpers::dcca::functions::getServiceContextId ( const anna::DataBlock db)
inlinestaticnoexcept

Service-Context-Id from datablock provided.

Parameters
dbProvided Message DataBlock
Returns
Service-Context-Id
96  {
97  ChargingContext::_v dummy;
98  return getServiceContextId(db, dummy);
99  }
static std::string getServiceContextId(const anna::DataBlock &db, ChargingContext::_v &chargingContext) noexcept(false)

◆ getSubscriptionIdData()

static std::string anna::diameter::helpers::dcca::functions::getSubscriptionIdData ( const anna::DataBlock db,
int  subscriptionIdType = AVPVALUES__Subscription_Id_Type::END_USER_E164 
)
staticnoexcept

Subscription-Id-Data for provided Subscription-Id-Type within a command.

Parameters
dbProvided Message DataBlock
Subscription-Id-Typevalue to filter the search. END_USER_E164 by default.
Returns
Subscription-Id-Data for type provided. Empty string when not found.

The documentation for this struct was generated from the following file: