reSIProcate/DialogUsageManager  9694
Public Member Functions
resip::SdpMessageDecorator Class Reference
Inheritance diagram for resip::SdpMessageDecorator:
Inheritance graph
[legend]
Collaboration diagram for resip::SdpMessageDecorator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~SdpMessageDecorator ()
virtual void decorateMessage (SipMessage &msg, const Tuple &source, const Tuple &destination, const Data &sigcompId)
virtual void rollbackMessage (SipMessage &msg)
virtual MessageDecoratorclone () const

Detailed Description

Definition at line 72 of file basicClientUserAgent.cxx.


Constructor & Destructor Documentation

virtual resip::SdpMessageDecorator::~SdpMessageDecorator ( ) [inline, virtual]

Definition at line 75 of file basicClientUserAgent.cxx.

{}

Member Function Documentation

virtual MessageDecorator* resip::SdpMessageDecorator::clone ( ) const [inline, virtual]

Implements resip::MessageDecorator.

Definition at line 91 of file basicClientUserAgent.cxx.

{ return new SdpMessageDecorator; }
virtual void resip::SdpMessageDecorator::decorateMessage ( SipMessage msg,
const Tuple source,
const Tuple destination,
const Data sigcompId 
) [inline, virtual]

Implements resip::MessageDecorator.

Definition at line 76 of file basicClientUserAgent.cxx.

References resip::Message::brief(), resip::SipMessage::getContents(), resip::Tuple::inet_ntop(), InfoLog, resip::SdpContents::IP4, resip::SdpContents::IP6, resip::Tuple::ipVersion(), resip::SdpContents::session(), and resip::V6.

   {
      SdpContents* sdp = dynamic_cast<SdpContents*>(msg.getContents());
      if(sdp)  
      {
         // Fill in IP and Port from source
         sdp->session().connection().setAddress(Tuple::inet_ntop(source), source.ipVersion() == V6 ? SdpContents::IP6 : SdpContents::IP4);
         sdp->session().origin().setAddress(Tuple::inet_ntop(source), source.ipVersion() == V6 ? SdpContents::IP6 : SdpContents::IP4);
         InfoLog( << "SdpMessageDecorator: src=" << source << ", dest=" << destination << ", msg=" << endl << msg.brief());
      }
   }

Here is the call graph for this function:

virtual void resip::SdpMessageDecorator::rollbackMessage ( SipMessage msg) [inline, virtual]

Implements resip::MessageDecorator.

Definition at line 90 of file basicClientUserAgent.cxx.

{}  // Nothing to do

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