32 #ifndef OPAL_SIP_SIPPDU_H
33 #define OPAL_SIP_SIPPDU_H
43 #include <ptclib/mime.h>
44 #include <ptclib/url.h>
45 #include <ptclib/http.h>
81 ) { PURL::operator=(url);
return *
this; }
87 const char * defaultScheme = NULL
91 ) { Parse(cstr);
return *
this; }
97 const char * defaultScheme = NULL
101 ) { Parse(str);
return *
this; }
113 const PString & name,
115 WORD listenerPort = 0
120 WORD listenerPort = 0
204 const PString & tag = PString::Empty(),
214 const char * defaultScheme
220 const char * defaultScheme
234 bool reversed =
false
281 virtual void PrintOn(ostream & strm)
const;
282 virtual bool InternalAddMIME(
const PString & fieldName,
const PString & fieldValue);
286 PCaselessString
GetContentType(
bool includeParameters =
false)
const;
293 void SetFrom(
const PString & v);
325 void SetTo(
const PString & v);
328 void SetVia(
const PString & v);
347 void SetCSeq(
const PString & v);
350 void SetDate(
const PString & v);
354 unsigned GetExpires(
unsigned dflt = UINT_MAX)
const;
415 void SetAlertInfo(
const PString & info,
int appearance);
425 const PString & fieldName,
426 const PString & paramName,
427 const PString & defaultValue = PString::Empty()
435 const PString & fieldName,
436 const PString & paramName,
437 const PString & newValue
443 const PString & fieldValue,
444 const PString & paramName,
445 const PString & defaultValue = PString::Empty()
453 const PString & fieldValue,
454 const PString & paramName,
455 const PString & newValue
460 void AddTokenSet(
const char * field,
const PString & token);
461 void SetTokenSet(
const char * field,
const PStringSet & tokens);
498 PCLASSINFO(
SIP_PDU, PSafeObject);
615 const PString & callID,
621 const PString & via = PString::Empty(),
664 const PString & localInterface = PString::Empty()
809 const PString & aor = PString::Empty(),
810 const PString & remote = PString::Empty()
814 const PString & defaultUser,
815 const PTimeInterval & defaultExpire
940 #define OPAL_PROXY_PARAM "OPAL-proxy"
941 #define OPAL_LOCAL_ID_PARAM "OPAL-local-id"
942 #define OPAL_INTERFACE_PARAM "OPAL-interface"
1078 const PString & callId,
1131 bool operator==(
const PString & str)
const {
return Compare(str) == EqualTo; }
1133 virtual Comparison
InternalCompare(PINDEX offset, PINDEX length,
const char * cstr)
const;
1159 const char * extra = NULL
1243 const SIPEventPackage & eventPackage,
1244 const PString & state,
1245 const PString & body
1262 const PString & sipIfMatch,
1264 const PString & body
1280 const SIPURL & referred_by,
1343 void Construct(
const Params & params);
1361 :
m_acceptContent(
"application/sdp, application/media_control+xml, application/dtmf, application/dtmf-relay")
1399 Params(
const PString & contentType = PString::Empty(),
1400 const PString & body = PString::Empty())
1449 const PString & rack
1458 #endif // OPAL_SIP_SIPPDU_H