|
reSIProcate/DialogUsageManager
9694
|
#include "resip/stack/SipStack.hxx"#include "resip/dum/DialogUsageManager.hxx"#include "rutil/Data.hxx"
Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 15 of file testDumTimer.cxx.
References h_CallId, resip::SipMessage::header(), resip::DialogUsageManager::process(), and resip::FdSet::selectMilliSeconds().
{
using namespace std;
bool done = false;
SipStack stack;
SipMessage msg;
msg.header(h_CallId).value() = Data("test-call-id-alice%40example.com");
// stackA.addTransport(UDP, 5060);
DialogUsageManager dum(stack);
cout << "Created DUM, schduling timer for testDum Object" << endl;
// Make timer.
while ( (!done) )
{
FdSet fdset;
// Should these be buildFdSet on the DUM?
int err = fdset.selectMilliSeconds(100);
assert ( err != -1 );
dum.process(fdset);
}
// How do I turn these things off? For now, we just blow
// out with all the wheels turning...
}

1.7.5.1