#include "SIPParserInclude\CSIPErrorInfoParser.h" #include "SIPParserInclude\CSIPInfoParser.h" namespace SIPParserFW { CSIPErrorInfoParser::CSIPErrorInfoParser() { ReleaseCSIPErrorInfoParserData() ; } CSIPErrorInfoParser::CSIPErrorInfoParser( const CSIPErrorInfoParser &SIPErrorInfoParser ) : ASIPParserListParser( SIPErrorInfoParser ) { ReleaseCSIPErrorInfoParserData() ; CopyCSIPErrorInfoParserData( SIPErrorInfoParser ) ; } CSIPErrorInfoParser::~CSIPErrorInfoParser() { ReleaseCSIPErrorInfoParserData() ; } CSIPErrorInfoParser& CSIPErrorInfoParser::operator=( const CSIPErrorInfoParser &SIPErrorInfoParser ) { ReleaseCSIPErrorInfoParserData() ; ASIPParserListParser::operator=( SIPErrorInfoParser ) ; CopyCSIPErrorInfoParserData( SIPErrorInfoParser ) ; return *this ; } void CSIPErrorInfoParser::ReleaseCSIPErrorInfoParserData() { } void CSIPErrorInfoParser::CopyCSIPErrorInfoParserData( const CSIPErrorInfoParser &SIPErrorInfoParser ) { } CSIPErrorInfoParser* CSIPErrorInfoParser::GetAvailable() { CSIPErrorInfoParser *pSIPErrorInfoParser = CPoolObject<CSIPErrorInfoParser>::GetAvailable() ; return pSIPErrorInfoParser ; } void CSIPErrorInfoParser::Release() { ReleaseParameters() ; CPoolObject<CSIPErrorInfoParser>::Release( this ) ; } void CSIPErrorInfoParser::ReleaseParameters() { ReleaseCSIPErrorInfoParserData() ; ASIPParserListParser::ReleaseParameters() ; } ASIPParserListParser* CSIPErrorInfoParser::Copy() { CSIPErrorInfoParser *pSIPErrorInfoParser = CSIPErrorInfoParser::GetAvailable() ; if( pSIPErrorInfoParser == NULL ) return NULL ; *pSIPErrorInfoParser = *this ; return pSIPErrorInfoParser ; } // Grammer //Call-Info = "Call-Info" HCOLON info *(COMMA info) //info = LAQUOT absoluteURI RAQUOT *( SEMI info-param) //info-param = ( "purpose" EQUAL ( "icon" / "info" / "card" / token ) ) / generic-param //Alert-Info = "Alert-Info" HCOLON alert-param *(COMMA alert-param) //alert-param = LAQUOT absoluteURI RAQUOT *( SEMI generic-param ) //Error-Info = "Error-Info" HCOLON error-uri *(COMMA error-uri) //error-uri = LAQUOT absoluteURI RAQUOT *( SEMI generic-param ) // Please see RFC3261, Pages from 164 and 166 and 171 // Please see RFC3261, Pages from 219 to 232 for ABNF forms // Please see file ..\Document\SIPAlertInfo Parsing Logic.txt for parsing algorithm FW_RETURN_TYPE CSIPErrorInfoParser::QueryAvailableParser( ASIPParser **pSIPParser ) { *pSIPParser = NULL ; CSIPInfoParser *pSIPInfoParser = CSIPInfoParser::GetAvailable() ; if( pSIPInfoParser == NULL ) return SIP_PARSE_ERR_SIP_INFO_PARSER_OBJECT_NOT_CREATED ; *pSIPParser = pSIPInfoParser ; return SIP_ERR_SUCCESS ; } std::string CSIPErrorInfoParser::GetHeaderName() const { return GetRuntimeHeaderName( SIP_HEADER_ERROR_INFO ) ; } } // End namespace
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)