reSIProcate/DialogUsageManager  9694
Public Member Functions | Private Attributes
OverrideContact Class Reference
Inheritance diagram for OverrideContact:
Inheritance graph
[legend]
Collaboration diagram for OverrideContact:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 OverrideContact (const Uri &contact, DialogUsageManager &dum, TargetCommand::Target &target)
virtual ProcessingResult process (Message *msg)

Private Attributes

Uri mContact

Detailed Description

Definition at line 59 of file treg.cxx.


Constructor & Destructor Documentation

OverrideContact::OverrideContact ( const Uri contact,
DialogUsageManager dum,
TargetCommand::Target target 
) [inline]

Definition at line 62 of file treg.cxx.

                                                   : 
         DumFeature(dum, target),
         mContact(contact)
      {
      }

Member Function Documentation

virtual ProcessingResult OverrideContact::process ( Message msg) [inline, virtual]

Implements resip::DumFeature.

Definition at line 70 of file treg.cxx.

References resip::DumFeature::FeatureDone, and resip::OutgoingEvent::message().

      {
         OutgoingEvent* og = dynamic_cast<OutgoingEvent*>(msg);
         if (og)
         {
            SharedPtr<SipMessage> sip = og->message();
            if (sip->isRequest() && 
                sip->exists(h_Contacts) && 
                sip->header(h_Contacts).size() == 1)
            {
               sip->header(h_Contacts).front().uri().host() = mContact.host();
               sip->header(h_Contacts).front().uri().port() = mContact.port();
            }
         }
         
         return DumFeature::FeatureDone;
      }

Here is the call graph for this function:


Member Data Documentation

Definition at line 89 of file treg.cxx.


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