|
reSIProcate/repro
9694
|
#include <ConstantLocationMonkey.hxx>


Public Member Functions | |
| ConstantLocationMonkey () | |
| virtual | ~ConstantLocationMonkey () |
| virtual processor_action_t | process (RequestContext &) |
Definition at line 8 of file ConstantLocationMonkey.hxx.
| ConstantLocationMonkey::ConstantLocationMonkey | ( | ) |
Definition at line 17 of file ConstantLocationMonkey.cxx.
: Processor("ConstantLocationMonkey") {}
| ConstantLocationMonkey::~ConstantLocationMonkey | ( | ) | [virtual] |
Definition at line 21 of file ConstantLocationMonkey.cxx.
{}
| Processor::processor_action_t ConstantLocationMonkey::process | ( | RequestContext & | context | ) | [virtual] |
Implements repro::Processor.
Definition at line 25 of file ConstantLocationMonkey.cxx.
{
DebugLog(<< "Monkey handling request: " << *this
<< "; reqcontext = " << context);
if (context.getOriginalRequest().header(h_RequestLine).uri().user() == "inner")
{
context.getResponseContext().addTarget(NameAddr("<sip:inner@72.29.230.162>"));
}
else if (context.getOriginalRequest().header(h_RequestLine).uri().user() == "outer")
{
context.getResponseContext().addTarget(NameAddr("<sip:101@sipedge.sipit.net>"));
}
return Processor::Continue;
}
1.7.5.1