/[resiprocate]/main/resip/dum/Profile.hxx
ViewVC logotype

Diff of /main/resip/dum/Profile.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4599 by derek, Wed May 11 23:10:19 2005 UTC revision 4618 by sgodin, Thu May 12 20:07:37 2005 UTC
# Line 17  Line 17 
17        Profile(Profile *baseProfile = 0);  // Default to no base profile        Profile(Profile *baseProfile = 0);  // Default to no base profile
18        virtual ~Profile();        virtual ~Profile();
19    
20          // Note:
21          // setXXXX methods will set this setting internally in this object.  If you do not call
22          // a particular setXXX method on this object then a corresponding getXXXX call will attempt
23          // to retrieve that value from the BaseProfile (provided in the constructor).  This allows
24          // you to setup a heirarchy of profiles and settings.
25          // unsetXXX methods are used to re-enable fallthrough after calling a setXXXX method.  If
26          // you call an unsetXXXX method on an object with a NULL BaseProfile it will have no effect.
27    
28        // This default is used if no value is passed in when creating a registration        // This default is used if no value is passed in when creating a registration
29        virtual void setDefaultRegistrationTime(int secs);        virtual void setDefaultRegistrationTime(int secs);
30        virtual int getDefaultRegistrationTime() const;        virtual int getDefaultRegistrationTime() const;
31          virtual void unsetDefaultRegistrationTime();  
32    
33        // If a registration gets rejected with a 423, then we with the MinExpires value - if it is less than this        // If a registration gets rejected with a 423, then we with the MinExpires value - if it is less than this
34        // Set to 0 to disable this check and accept any time suggested by the server.        // Set to 0 to disable this check and accept any time suggested by the server.
35        virtual void setDefaultMaxRegistrationTime(int secs);        virtual void setDefaultMaxRegistrationTime(int secs);
36        virtual int getDefaultMaxRegistrationTime() const;        virtual int getDefaultMaxRegistrationTime() const;
37          virtual void unsetDefaultMaxRegistrationTime();  
38    
39        // The time to retry registrations on error responses (if Retry-After header is not present in error)        // The time to retry registrations on error responses (if Retry-After header is not present in error)
40        // Set to 0 to never retry on errors        // Set to 0 to never retry on errors
41        virtual void setDefaultRegistrationRetryTime(int secs);        virtual void setDefaultRegistrationRetryTime(int secs);
42        virtual int getDefaultRegistrationRetryTime() const;        virtual int getDefaultRegistrationRetryTime() const;
43          virtual void unsetDefaultRegistrationRetryTime();  
44    
45        // This default is used if no value is passed in when creating a subscription        // This default is used if no value is passed in when creating a subscription
46        virtual void setDefaultSubscriptionTime(int secs);        virtual void setDefaultSubscriptionTime(int secs);
47        virtual int getDefaultSubscriptionTime() const;        virtual int getDefaultSubscriptionTime() const;
48          virtual void unsetDefaultSubscriptionTime();  
49    
50        // This default is used if no value is passed in when creating a publication        // This default is used if no value is passed in when creating a publication
51        virtual void setDefaultPublicationTime(int secs);        virtual void setDefaultPublicationTime(int secs);
52        virtual int getDefaultPublicationTime() const;        virtual int getDefaultPublicationTime() const;
53          virtual void unsetDefaultPublicationTime();  
54    
55        /// Call is stale if UAC gets no final response within the stale call timeout (default 3 minutes)        /// Call is stale if UAC gets no final response within the stale call timeout (default 3 minutes)
56        virtual void setDefaultStaleCallTime(int secs);        virtual void setDefaultStaleCallTime(int secs);
57        virtual int getDefaultStaleCallTime() const;        virtual int getDefaultStaleCallTime() const;
58          virtual void unsetDefaultStaleCallTime();  
59    
60        // Only used if timer option tag is set in MasterProfile.        // Only used if timer option tag is set in MasterProfile.
61        // Note:  Value must be higher than 90 (as specified in session-timer draft)        // Note:  Value must be higher than 90 (as specified in session-timer draft)
62        virtual void setDefaultSessionTime(int secs);        virtual void setDefaultSessionTime(int secs);
63        virtual int getDefaultSessionTime() const;        virtual int getDefaultSessionTime() const;
64          virtual void unsetDefaultSessionTime();
65    
66        // Only used if timer option tag is set in MasterProfile.        // Only used if timer option tag is set in MasterProfile.
67        // Set to PreferLocalRefreshes if you prefer that the local UA performs the refreshes.          // Set to PreferLocalRefreshes if you prefer that the local UA performs the refreshes.  
# Line 67  Line 82 
82        } SessionTimerMode;        } SessionTimerMode;
83        virtual void setDefaultSessionTimerMode(Profile::SessionTimerMode mode);        virtual void setDefaultSessionTimerMode(Profile::SessionTimerMode mode);
84        virtual Profile::SessionTimerMode getDefaultSessionTimerMode() const;        virtual Profile::SessionTimerMode getDefaultSessionTimerMode() const;
85          virtual void unsetDefaultSessionTimerMode();  
86    
87        // The amount of time that can pass before dum will resubmit an unreliable provisional response        // The amount of time that can pass before dum will resubmit an unreliable provisional response
88        virtual void set1xxRetransmissionTime(int secs);        virtual void set1xxRetransmissionTime(int secs);
89        virtual int get1xxRetransmissionTime() const;        virtual int get1xxRetransmissionTime() const;
90          virtual void unset1xxRetransmissionTime();  
91    
92        //overrides the value used to populate the contact        //overrides the value used to populate the contact
93        //?dcm? -- also change via entries? Also, dum currently uses(as a uas)        //?dcm? -- also change via entries? Also, dum currently uses(as a uas)
# Line 80  Line 97 
97        virtual void setOverrideHostAndPort(const Uri& hostPort);        virtual void setOverrideHostAndPort(const Uri& hostPort);
98        virtual bool hasOverrideHostAndPort() const;        virtual bool hasOverrideHostAndPort() const;
99        virtual const Uri& getOverrideHostAndPort() const;              virtual const Uri& getOverrideHostAndPort() const;      
100          virtual void unsetOverrideHostAndPort();
101                
102        //enable/disable sending of Allow/Supported/Accept-Language/Accept-Encoding headers        //enable/disable sending of Allow/Supported/Accept-Language/Accept-Encoding headers
103        //on initial outbound requests (ie. Initial INVITE, REGISTER, etc.) and Invite 200 responses        //on initial outbound requests (ie. Initial INVITE, REGISTER, etc.) and Invite 200 responses
# Line 89  Line 107 
107        virtual void addAdvertisedCapability(const Headers::Type header);        virtual void addAdvertisedCapability(const Headers::Type header);
108        virtual bool isAdvertisedCapability(const Headers::Type header) const;        virtual bool isAdvertisedCapability(const Headers::Type header) const;
109        virtual void clearAdvertisedCapabilities();        virtual void clearAdvertisedCapabilities();
110          virtual void unsetAdvertisedCapabilities();
111                
112        // Use to route all outbound requests through a particular proxy        // Use to route all outbound requests through a particular proxy
113        virtual void setOutboundProxy( const Uri& uri );        virtual void setOutboundProxy( const Uri& uri );
114        virtual const NameAddr& getOutboundProxy() const;        virtual const NameAddr& getOutboundProxy() const;
115        virtual bool hasOutboundProxy() const;        virtual bool hasOutboundProxy() const;
116          virtual void unsetOutboundProxy();
117                
118        //enable/disable rport for requests. rport is enabled by default        //enable/disable rport for requests. rport is enabled by default
119        virtual void setRportEnabled(bool enabled);        virtual void setRportEnabled(bool enabled);
120        virtual bool getRportEnabled() const;              virtual bool getRportEnabled() const;      
121          virtual void unsetRportEnabled();
122    
123        //if set then UserAgent header is added to outbound messages        //if set then UserAgent header is added to outbound messages
124        virtual void setUserAgent( const Data& userAgent );        virtual void setUserAgent( const Data& userAgent );
125        virtual const Data& getUserAgent() const;        virtual const Data& getUserAgent() const;
126        virtual bool hasUserAgent() const;        virtual bool hasUserAgent() const;
127          virtual void unsetUserAgent();
128    
129        //time between CR/LF keepalive messages in seconds.  Set to 0 to disable.  Default is 30.        //time between CR/LF keepalive messages in seconds.  Set to 0 to disable.  Default is 30.
130        //Note:  You must set a KeepAliveManager on DUM for this to work.        //Note:  You must set a KeepAliveManager on DUM for this to work.
131        virtual void setKeepAliveTime(int keepAliveTime);        virtual void setKeepAliveTime(int keepAliveTime);
132        virtual int getKeepAliveTime() const;              virtual int getKeepAliveTime() const;      
133          virtual void unsetKeepAliveTime();
134    
135        //If set dum will provide a port in the via for requests sent down to the stack.  This        //If set dum will provide a port in the via for requests sent down to the stack.  This
136        //will tell the transport selector to only look at those transports using this port.        //will tell the transport selector to only look at those transports using this port.
# Line 118  Line 141 
141        //          to 5060 - then the TLS transport cannot be used.        //          to 5060 - then the TLS transport cannot be used.
142        virtual void setFixedTransportPort(int fixedTransportPort);        virtual void setFixedTransportPort(int fixedTransportPort);
143        virtual int getFixedTransportPort() const;        virtual int getFixedTransportPort() const;
144          virtual void unsetFixedTransportPort();
145    
146     private:     private:
       // !slg! - should we provide a mechanism to clear the mHasxxxxx members to re-enable fall through after setting?  
147        bool mHasDefaultRegistrationExpires;        bool mHasDefaultRegistrationExpires;
148        int mDefaultRegistrationExpires;        int mDefaultRegistrationExpires;
149                

Legend:
Removed from v.4599  
changed lines
  Added in v.4618

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27