27 std::map<std::string, std::string>
toMap()
const override;
28 void fromMap(
const std::map<std::string, std::string>&)
override;
48 std::string
interface {dhtnet::ip_utils::DEFAULT_INTERFACE};
116 Credentials(
const std::string& r,
const std::string&
u,
const std::string& p)
121 Credentials(
const std::map<std::string, std::string>& r);
122 std::map<std::string, std::string>
toMap()
const;
126 std::vector<std::map<std::string, std::string>>
getCredentials()
const;
static constexpr int DEFAULT_SIP_TLS_PORT
static constexpr int DEFAULT_SIP_PORT
void emitSignal(Args... args)
static constexpr std::string_view ACCOUNT_TYPE_SIP
const std::filesystem::path path
Path where the configuration file is stored.
const std::string id
Account id.
Map of credential for this account.
Credentials(const std::string &r, const std::string &u, const std::string &p)
void computePasswordHash()
std::map< std::string, std::string > toMap() const
uint16_t publishedPort
Published port, used only if defined by the user.
bool tlsDisableSecureDlgCheck
std::string stunServer
The STUN server hostname (optional), used to provide the public IP address in case the softphone stay...
SipAccountConfig(const std::string &id={}, const std::filesystem::path &path={})
void unserialize(const YAML::Node &node) override
bool srtpFallback
Determine if the softphone should fallback on non secured media channel if SRTP negotiation fails.
std::vector< std::map< std::string, std::string > > getCredentials() const
bool stunEnabled
Determine if STUN public address resolution is required to register this account.
uint16_t localPort
Local port to whih this account is bound.
unsigned registrationExpire
Network settings.
std::map< std::string, std::string > toMap() const override
uint16_t tlsListenerPort
The TLS listener port.
int tlsNegotiationTimeout
void setCredentials(const std::vector< std::map< std::string, std::string > > &creds)
void serialize(YAML::Emitter &out) const override
std::string serviceRoute
Input Outbound Proxy Server Address.
std::vector< Credentials > credentials
bool tlsRequireClientCertificate
KeyExchangeProtocol srtpKeyExchange
Specifies the type of key exchange used for SRTP, if any.
std::string bindAddress
Potential ip addresss on which this account is bound.
std::string tlsServerName
bool registrationRefreshEnabled
void fromMap(const std::map< std::string, std::string > &) override