1#ifndef RESIP_MasterProfile_hxx
2#define RESIP_MasterProfile_hxx
198 std::set<
Data> mSupportedSchemes;
201 Tokens mSupportedOptionTags;
203 Tokens mSupportedEncodings;
204 Tokens mSupportedLanguages;
207 bool mValidateContentEnabled;
208 bool mValidateContentLanguageEnabled;
209 bool mValidateAcceptEnabled;
210 bool mAllowBadRegistrationEnabled;
211 bool mCheckReqUriInMergeDetectionEnabled;
214 uint32_t mServerRegistrationMinExpires;
215 uint32_t mServerRegistrationMaxExpires;
216 uint32_t mServerRegistrationDefaultExpires;
218 bool mAdditionalTransactionTerminatingResponsesEnabled;
219 std::set<
int> mAdditionalTransactionTerminatingResponsess;
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
virtual bool isSchemeSupported(const Data &scheme) const
virtual void setUasReliableProvisionalMode(ReliableProvisionalMode mode) noexcept
virtual void clearSupportedEncodings() noexcept
virtual void clearSupportedSchemes() noexcept
virtual bool isMimeTypeSupported(const MethodTypes &method, const Mime &mimeType)
virtual uint32_t & serverRegistrationDefaultExpiresTime() noexcept
If no Expires header or individual contact bindings specify an expiration value, use this value.
virtual bool isLanguageSupported(const Tokens &lang) const
virtual void clearAllowedEvents() noexcept
virtual const std::set< int > & getAdditionalTransactionTerminatingResponses() const
virtual bool & validateAcceptEnabled() noexcept
enable/disable Accept header validation
virtual bool isMethodSupported(MethodTypes method) const
virtual void clearSupportedOptionTags() noexcept
virtual void removeSupportedMethod(const MethodTypes &method)
virtual Tokens getSupportedLanguages() const
virtual void clearSupportedMimeTypes() noexcept
virtual bool & validateContentLanguageEnabled() noexcept
enable/disable content language validation
virtual Tokens getSupportedEncodings() const
virtual Tokens getAllowedMethods() const
virtual void addSupportedScheme(const Data &scheme)
Default is "sip".
virtual void addAllowedEvent(const Token &event)
Default is to not send an Allow-Events header.
virtual Tokens getSupportedOptionTags() const
virtual ReliableProvisionalMode getUacReliableProvisionalMode() const noexcept
MasterProfile()
Creates an Identity/Profile with no BaseProfile - this is the root of all profiles.
virtual Tokens getAllowedEvents() const
virtual void addSupportedMimeType(const MethodTypes &method, const Mime &mimeType)
Default is application/sdp for INVITE, OPTIONS, PRACK and UPDATE Methods.
virtual uint32_t & serverRegistrationMaxExpiresTime() noexcept
If an inbound REGISTER has an Expires header or any individual contact bindings with expires greater ...
virtual void addSupportedEncoding(const Token &encoding)
Default is no encoding.
virtual bool isEventAllowed(const Tokens &event) const
virtual bool isContentEncodingSupported(const Token &contentEncoding) const
virtual ReliableProvisionalMode getUasReliableProvisionalMode() const noexcept
virtual Data getAllowedMethodsData() const
virtual bool & validateContentEnabled() noexcept
enable/disable content validation
virtual void addSupportedOptionTag(const Token &tag)
Default is none. Do not use to enable PRACK(100rel) support.
virtual void addSupportedMethod(const MethodTypes &method)
Defaults are: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE.
virtual void setUacReliableProvisionalMode(ReliableProvisionalMode mode) noexcept
virtual void addAdditionalTransactionTerminatingResponses(int code)
virtual bool removeSupportedMimeType(const MethodTypes &method, const Mime &mimeType)
virtual bool & additionalTransactionTerminatingResponsesEnabled() noexcept
Enabling this setting will allow the application layer to provide additional SIP responses,...
virtual Tokens getUnsupportedOptionsTags(const Tokens &requiresOptionTags)
virtual void clearSupportedMethods() noexcept
virtual bool & checkReqUriInMergeDetectionEnabled() noexcept
Set this to include the RequestURI in merge request detection.
virtual uint32_t & serverRegistrationMinExpiresTime() noexcept
Used when receiving a REGISTER request, if the expires value in the request is less than this time,...
virtual bool isAdditionalTransactionTerminatingResponse(int code) const
virtual void clearSupportedLanguages() noexcept
virtual void clearAdditionalTransactionTerminatingResponses() noexcept
virtual bool & allowBadRegistrationEnabled() noexcept
Set this to allow the Registration Server to accept registration requests that contain a To Tag.
virtual void addSupportedLanguage(const Token &lang)
Default is all - if nothing is set, then all are allowed.
virtual Mimes getSupportedMimeTypes(const MethodTypes &method)
Represents the "media-type" element in the RFC 3261 grammar.
Represents the "token" element in the RFC 3261 grammar.
dcm! – add UnusedChecking(_enum) below;