/[resiprocate]/main/resip/dum/test/basicClientCmdLineParser.hxx
ViewVC logotype

Contents of /main/resip/dum/test/basicClientCmdLineParser.hxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9034 - (show annotations) (download)
Sun Feb 27 17:35:49 2011 UTC (8 years, 3 months ago) by sgodin
File MIME type: text/plain
File size: 2447 byte(s)
-new dum test program basicClient that provides a good reference starting
 place for people developing user agents
  - demonstrates how to use client outbound support (RFC5626)
  - uses AppDialogSet -> Call abstraction
  - uses recommended SelectInterruptor to drive the stack
  - ability to be dummy subscription server for fabricated basicClientTest event 
   (plain text bodies) - used for testing subscription recovery after flow failure
  - ability for to form a client subscription to a command line
    provided URI (typically this would be set to the AOR of another basicClient user)
  - command line parameter to be able to place a call after registration
     - Once call is placed, five test MESSAGEs will be sent every 30 seconds, then a 
       BYE will be sent
     - 30 seconds later the entire process is repeated
     - if we receive a call then it will be auto-answered, and for any received call, 
       if we receive a sip MESSAGE, then a answer MESSAGE will be sent to the far end 
     - this allows mid-dialog routing testing in both directions
  - performs an Invite with Replaces if a flow is terminated
1 #if !defined(basicClientCmdParser_hxx)
2 #define basicClientCmdParser_hxx
3
4 #include <vector>
5 #include <resip/stack/Uri.hxx>
6 #include <rutil/Data.hxx>
7
8 namespace resip
9 {
10
11 class BasicClientCmdLineParser
12 {
13 public:
14 BasicClientCmdLineParser(int argc, char** argv);
15 static resip::Uri toUri(const char* input, const char* description);
16
17 Data mLogType;
18 Data mLogLevel;
19 Data mTlsDomain;
20 Data mCertPath;
21
22 int mUdpPort;
23 int mTcpPort;
24 int mTlsPort;
25 int mDtlsPort;
26
27 int mRegisterDuration;
28 bool mNoV4;
29 bool mEnableV6;
30 bool mHostFileLookupOnlyDnsMode;
31
32 Uri mAor;
33 Data mPassword;
34
35 Uri mOutboundProxy;
36 Uri mContact;
37 bool mOutboundEnabled;
38
39 Uri mSubscribeTarget;
40 Uri mCallTarget;
41 };
42
43 }
44
45 #endif
46
47
48 /* ====================================================================
49
50 Copyright (c) 2011, SIP Spectrum, Inc.
51 All rights reserved.
52
53 Redistribution and use in source and binary forms, with or without
54 modification, are permitted provided that the following conditions are
55 met:
56
57 1. Redistributions of source code must retain the above copyright
58 notice, this list of conditions and the following disclaimer.
59
60 2. Redistributions in binary form must reproduce the above copyright
61 notice, this list of conditions and the following disclaimer in the
62 documentation and/or other materials provided with the distribution.
63
64 3. Neither the name of SIP Spectrum nor the names of its contributors
65 may be used to endorse or promote products derived from this
66 software without specific prior written permission.
67
68 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
69 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
70 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
71 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
72 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
73 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
74 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
75 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
76 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
77 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
78 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
79
80 ==================================================================== */

Properties

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

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.26