reSIProcate/stack  9694
Defines | Functions
CallId.cxx File Reference
#include "resip/stack/CallId.hxx"
#include "resip/stack/UnknownParameter.hxx"
#include "rutil/Data.hxx"
#include "rutil/DnsUtil.hxx"
#include "rutil/Logger.hxx"
#include "rutil/ParseBuffer.hxx"
Include dependency graph for CallId.cxx:

Go to the source code of this file.

Defines

#define RESIPROCATE_SUBSYSTEM   Subsystem::SIP
#define defineParam(_enum, _name, _type, _RFC_ref_ignored)

Functions

 defineParam (fromTag,"from-tag", DataParameter,"RFC 3891 (not in IANA, apparently)")
 defineParam (toTag,"to-tag", DataParameter,"RFC 3891 (not in IANA, apparently)")
 defineParam (earlyOnly,"early-only", ExistsParameter,"RFC 3891 (not in IANA, apparently)")

Define Documentation

#define defineParam (   _enum,
  _name,
  _type,
  _RFC_ref_ignored 
)
Value:
_enum##_Param::DType&                                                                                           \
CallID::param(const _enum##_Param& paramType)                                                           \
{                                                                                                               \
   checkParsed();                                                                                               \
   _enum##_Param::Type* p =                                                                                     \
      static_cast<_enum##_Param::Type*>(getParameterByEnum(paramType.getTypeNum()));                            \
   if (!p)                                                                                                      \
   {                                                                                                            \
      p = new _enum##_Param::Type(paramType.getTypeNum());                                                      \
      mParameters.push_back(p);                                                                                 \
   }                                                                                                            \
   return p->value();                                                                                           \
}                                                                                                               \
                                                                                                                \
const _enum##_Param::DType&                                                                                     \
CallID::param(const _enum##_Param& paramType) const                                                     \
{                                                                                                               \
   checkParsed();                                                                                               \
   _enum##_Param::Type* p =                                                                                     \
      static_cast<_enum##_Param::Type*>(getParameterByEnum(paramType.getTypeNum()));                            \
   if (!p)                                                                                                      \
   {                                                                                                            \
      InfoLog(<< "Missing parameter " _name " " << ParameterTypes::ParameterNames[paramType.getTypeNum()]);     \
      DebugLog(<< *this);                                                                                       \
      throw Exception("Missing parameter " _name, __FILE__, __LINE__);                                          \
   }                                                                                                            \
   return p->value();                                                                                           \
}

Definition at line 134 of file CallId.cxx.

#define RESIPROCATE_SUBSYSTEM   Subsystem::SIP

Definition at line 17 of file CallId.cxx.


Function Documentation

defineParam ( fromTag  ,
"from-tag"  ,
DataParameter  ,
"RFC 3891 (not in IANA, apparently)"   
)
defineParam ( toTag  ,
"to-tag"  ,
DataParameter  ,
"RFC 3891 (not in IANA, apparently)"   
)
defineParam ( earlyOnly  ,
"early-only"  ,
ExistsParameter  ,
"RFC 3891 (not in IANA, apparently)"   
)