12#define RESIPROCATE_SUBSYSTEM ReconSubsystem::RECON
15: mStatisticsManagerEnabled(false),
16 mServerAuthManagerEnabled(true),
17 mDTMFDigitLoggingEnabled(true),
18 mRTPPortRangeMin(16384),
19 mRTPPortRangeMax(17385),
20 mSubscriptionRetryInterval(60)
23 mCertPath =
"./certs";
25 const char* home_dir = getenv(
"HOME");
30 mCertPath +=
"/.sipCerts/";
37 mTransportSipMessageLoggingHandler = handler;
40std::shared_ptr<Transport::SipMessageLoggingHandler>
43 return mTransportSipMessageLoggingHandler;
49 mRTCPEventLoggingHandler = handler;
52std::shared_ptr<flowmanager::RTCPEventLoggingHandler>
55 return mRTCPEventLoggingHandler;
61 return mDTMFDigitLoggingEnabled;
67 return mDTMFDigitLoggingEnabled;
75 const Data& ipInterface,
76 const Data& sipDomainname,
77 const Data& privateKeyPassPhrase,
79 unsigned transportFlags,
80 const Data& certificateFilename,
81 const Data& privateKeyFilename,
84 unsigned int rcvBufLen)
104 mTransports.push_back(info);
107std::vector<UserAgentMasterProfile::TransportInfo>&
116 mEnumSuffixes.push_back(enumSuffix);
119const std::vector<Data>&
122 return mEnumSuffixes;
134 return mAdditionalDnsServers;
152 return mRootCertDirectories;
155const std::vector<Data>&
158 return mRootCertDirectories;
164 return mRootCertBundles;
167const std::vector<Data>&
170 return mRootCertBundles;
176 return mStatisticsManagerEnabled;
182 return mStatisticsManagerEnabled;
188 return mServerAuthManagerEnabled;
194 return mServerAuthManagerEnabled;
200 return mRTPPortRangeMin;
206 return mRTPPortRangeMin;
212 return mRTPPortRangeMax;
218 return mRTPPortRangeMax;
224 return mSubscriptionRetryInterval;
230 return mSubscriptionRetryInterval;
resip::Data mTlsPrivateKeyPassPhrase
resip::StunSetting mStunEnabled
resip::IpVersion mIPVersion
resip::SecurityTypes::TlsClientVerificationMode mCvm
resip::Data mTlsCertificate
resip::Data mSipDomainname
resip::Data mTlsPrivateKey
resip::SecurityTypes::SSLType mSslType
resip::TransportType mProtocol
std::vector< TransportInfo > & getTransports()
Gets a vector of the transports previously added.
std::shared_ptr< flowmanager::RTCPEventLoggingHandler > getRTCPEventLoggingHandler() const noexcept
std::shared_ptr< resip::Transport::SipMessageLoggingHandler > getTransportSipMessageLoggingHandler() const noexcept
virtual unsigned short & rtpPortRangeMin()
Get/Set the starting port number in the range of valid port numbers to be used for RTP traffic.
virtual std::vector< resip::Data > & rootCertBundles()
Get/Set the names of files containing bundles of X.509 trusted root certificates.
void addEnumSuffix(const resip::Data &enumSuffix)
Adds a domain suffix used in ENUM DNS queries.
virtual int & subscriptionRetryInterval()
Get/Set the interval at which subscriptions are retried if they fail (if one is not suggested in the ...
void setTransportSipMessageLoggingHandler(std::shared_ptr< resip::Transport::SipMessageLoggingHandler > handler) noexcept
const std::vector< resip::Data > & getEnumSuffixes() const
Gets a vector of the ENUM domain suffixes previously added.
virtual unsigned short & rtpPortRangeMax()
Get/Set the ending port number in the range of valid port numbers to be used for RTP traffic.
virtual std::vector< resip::Data > & rootCertDirectories()
Get/Set the locations where the SIP stack will look for X.509 trusted root certificates.
virtual bool & serverAuthManagerEnabled()
Get/Set wether Server Auth Manager is enabled or not.
virtual bool & statisticsManagerEnabled()
Get/Set wether SIP message statistics are send to logging subsystem.
void addAdditionalDnsServer(const resip::Data &dnsServerIPAddress)
Adds an additional DNS server to ones that are attempted to be discovered by the SIP stack.
virtual resip::Data & certPath()
Get/Set the location where the SIP stack will look for X509 certificates.
void setRTCPEventLoggingHandler(std::shared_ptr< flowmanager::RTCPEventLoggingHandler > handler) noexcept
void addTransport(resip::TransportType protocol, int port, resip::IpVersion version=resip::V4, resip::StunSetting stun=resip::StunDisabled, const resip::Data &ipInterface=resip::Data::Empty, const resip::Data &sipDomainname=resip::Data::Empty, const resip::Data &privateKeyPassPhrase=resip::Data::Empty, resip::SecurityTypes::SSLType sslType=resip::SecurityTypes::DynamicTLS, unsigned transportFlags=0, const resip::Data &certificateFilename=resip::Data::Empty, const resip::Data &privateKeyFilename=resip::Data::Empty, resip::SecurityTypes::TlsClientVerificationMode cvm=resip::SecurityTypes::None, bool useEmailAsSIP=false, unsigned int rcvBufLen=0)
Adds a network transport to use for send/receiving SIP messages.
const resip::DnsStub::NameserverList & getAdditionalDnsServers() const
Gets a vector of the DNS Servers previously added.
virtual bool & dtmfDigitLoggingEnabled()
Get/Set wether recon is allowed to log DTMF digits pressed.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
std::vector< GenericIPAddress > NameserverList
Represents a network address.
TlsClientVerificationMode
SSLType
Note: Before adding to the SSLType enum, please see the comments about mTlsCtx in resip/stack/ssl/Sec...
dcm! – add UnusedChecking(_enum) below;
TransportType
An enumeration of transport protocols.
IpVersion
An enumeration of IP versions.