/[resiprocate]/main/resip/dum/test/unreg.cxx
ViewVC logotype

Contents of /main/resip/dum/test/unreg.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8381 - (show annotations) (download)
Wed Jan 7 15:01:08 2009 UTC (10 years, 10 months ago) by sgodin
File MIME type: text/plain
File size: 889 byte(s)
-fixed some missing svn-eol-style=native
-reduced priority of speex-5 (5kbs) in recon SDP, since its quality is poor
-fixed typo in testua_readme.txt
1 #include "rutil/Logger.hxx"
2 #include "resip/dum/ClientRegistration.hxx"
3 #include "CommandLineParser.hxx"
4 #include "UserAgent.hxx"
5
6
7 using namespace resip;
8
9 #define RESIPROCATE_SUBSYSTEM Subsystem::TEST
10
11
12 class TestUserAgent : public UserAgent
13 {
14 public:
15 TestUserAgent(int argc, char** argv) : UserAgent(argc, argv)
16 {
17 }
18
19 void startup()
20 {
21 InfoLog (<< "register for " << mAor);
22 UInt32 e=0;
23 NameAddr target(mAor);
24 mDum.send(mDum.makeRegistration(target, e));
25 }
26
27 void onSuccess(ClientRegistrationHandle h, const SipMessage& response)
28 {
29 InfoLog (<< "Removing binding for " << *h);
30 h->removeAll(true);
31 }
32 };
33
34 int
35 main(int argc, char** argv)
36 {
37 TestUserAgent tua(argc, argv);
38 tua.startup();
39 for (int i=0; i<100000; ++i)
40 {
41 tua.process();
42 usleep(10);
43 }
44 }

Properties

Name Value
svn:eol-style native
svn:mime-type text/plain

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27