[Opalvoip-svn] SF.net SVN: opalvoip: [18732] opal/branches/csoutheren/devel
Brought to you by:
csoutheren,
rjongbloed
From: <cso...@us...> - 2007-10-22 12:56:41
|
Revision: 18732 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=18732&view=rev Author: csoutheren Date: 2007-10-22 05:56:45 -0700 (Mon, 22 Oct 2007) Log Message: ----------- Applied OpenH323 1800997 - Add support for Asserted Identity headers Thanks to Simon Zwahlen Modified Paths: -------------- opal/branches/csoutheren/devel/include/sip/sippdu.h opal/branches/csoutheren/devel/src/sip/sippdu.cxx Modified: opal/branches/csoutheren/devel/include/sip/sippdu.h =================================================================== --- opal/branches/csoutheren/devel/include/sip/sippdu.h 2007-10-22 12:40:09 UTC (rev 18731) +++ opal/branches/csoutheren/devel/include/sip/sippdu.h 2007-10-22 12:56:45 UTC (rev 18732) @@ -392,6 +392,12 @@ PString GetFrom() const; void SetFrom(const PString & v); + PString GetPAssertedIdentity() const; + void SetPAssertedIdentity(const PString & v); + + PString GetPPreferredIdentity() const; + void SetPPreferredIdentity(const PString & v); + PString GetAccept() const; void SetAccept(const PString & v); Modified: opal/branches/csoutheren/devel/src/sip/sippdu.cxx =================================================================== --- opal/branches/csoutheren/devel/src/sip/sippdu.cxx 2007-10-22 12:40:09 UTC (rev 18731) +++ opal/branches/csoutheren/devel/src/sip/sippdu.cxx 2007-10-22 12:56:45 UTC (rev 18732) @@ -985,7 +985,26 @@ SetAt(compactForm ? "f" : "From", v); } +PString SIPMIMEInfo::GetPAssertedIdentity() const +{ + return (*this)["P-Asserted-Identity"]; +} +void SIPMIMEInfo::SetPAssertedIdentity(const PString & v) +{ + SetAt("P-Asserted-Identity", v); +} + +PString SIPMIMEInfo::GetPPreferredIdentity() const +{ + return (*this)["P-Preferred-Identity"]; +} + +void SIPMIMEInfo::SetPPreferredIdentity(const PString & v) +{ + SetAt("P-Preferred-Identity", v); +} + PString SIPMIMEInfo::GetCallID() const { return GetFullOrCompact("Call-ID", 'i'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |