|
reSIProcate/DialogUsageManager
9694
|


Public Member Functions | |
| OverrideContact (const Uri &contact, DialogUsageManager &dum, TargetCommand::Target &target) | |
| virtual ProcessingResult | process (Message *msg) |
Private Attributes | |
| Uri | mContact |
| OverrideContact::OverrideContact | ( | const Uri & | contact, |
| DialogUsageManager & | dum, | ||
| TargetCommand::Target & | target | ||
| ) | [inline] |
Definition at line 62 of file treg.cxx.
:
DumFeature(dum, target),
mContact(contact)
{
}
| 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;
}

Uri OverrideContact::mContact [private] |
1.7.5.1