|
Ring Daemon
|
#include <sipaccountbase_config.h>


Public Member Functions | |
| void | fromMap (const std::map< std::string, std::string > &) override |
| void | serializeDiff (YAML::Emitter &out, const SipAccountBaseConfig &def) const |
| SipAccountBaseConfig (const std::string &type, const std::string &id, const std::filesystem::path &path) | |
| std::map< std::string, std::string > | toMap () const override |
| void | unserialize (const YAML::Node &node) override |
Public Member Functions inherited from jami::AccountConfig | |
| AccountConfig (const std::string &type_, const std::string &id_, const std::filesystem::path &path_={}) | |
| virtual void | serialize (YAML::Emitter &out) const =0 |
| void | serializeDiff (YAML::Emitter &out, const AccountConfig &def) const |
Public Member Functions inherited from jami::Serializable | |
| virtual | ~Serializable () |
Public Attributes | |
| std::pair< uint16_t, uint16_t > | audioPortRange {16384, 32766} |
| std::string | dtmfType {OVERRTP_STR} |
| std::string | interface {"default"} |
| interface name on which this account is bound | |
| std::string | publishedIp |
| bool | publishedSameasLocal {true} |
| Flag which determine if localIpAddress_ or publishedIpAddress_ is used in sip headers. | |
| std::string | tlsCaListFile |
| std::string | tlsCertificateFile |
| std::string | tlsPassword |
| std::string | tlsPrivateKeyFile |
| bool | turnEnabled {false} |
| Determine if TURN public address resolution is required to register this account. | |
| std::string | turnServer |
| The TURN server hostname (optional), used to provide the public IP address in case the softphone stay behind a NAT. | |
| std::string | turnServerPwd |
| std::string | turnServerRealm |
| std::string | turnServerUserName |
| std::pair< uint16_t, uint16_t > | videoPortRange {49152, (65536) - 2} |
| Port range for video RTP ports. | |
Public Attributes inherited from jami::AccountConfig | |
| int | activeCallLimit {-1} |
| The number of concurrent calls for the account -1: Unlimited 0: Do not disturb 1: Single call +: Multi line. | |
| std::vector< unsigned > | activeCodecs {} |
| std::string | alias {} |
| A user-defined name for this account. | |
| bool | allModeratorsEnabled {true} |
| bool | autoAnswerEnabled {false} |
| If true, automatically answer calls to this account. | |
| std::string | customUserAgent {} |
| User-agent used for registration. | |
| std::set< std::string > | defaultModerators {} |
| bool | denySecondCallEnabled {false} |
| If true, automatically deny new calls when already in one call to this account. | |
| std::string | deviceKey {} |
| Device push notification token. | |
| std::string | displayName {} |
| Display name when calling. | |
| bool | enabled {true} |
| True if the account is enabled. | |
| std::string | hostname {} |
| SIP hostname (SIP account) or DHT bootstrap nodes (Jami account) | |
| const std::string | id |
| Account id. | |
| bool | isRendezVous {false} |
| If true mix calls into a conference. | |
| bool | localModeratorsEnabled {true} |
| std::string | mailbox {} |
| Account mail box. | |
| std::string | notificationTopic {} |
| Push notification topic. | |
| const std::filesystem::path | path |
| Path where the configuration file is stored. | |
| std::string | platform {} |
| Device push notification platform. | |
| bool | ringtoneEnabled {true} |
| Play ringtone when receiving a call. | |
| std::string | ringtonePath {DEFAULT_RINGTONE_PATH} |
| Ringtone file used for this account. | |
| bool | sendComposing {true} |
| If true, send composing status (and emit to the client) | |
| bool | sendReadReceipt {true} |
| If true, send displayed status (and emit to the client) | |
| const std::string | type |
| Account type. | |
| std::string | uiCustomization {} |
| information about the customization of ui | |
| bool | upnpEnabled {true} |
| UPnP IGD controller and the mutex to access it. | |
| std::string | username {} |
| bool | videoEnabled {true} |
| Allows user to temporarily disable video calling. | |
Definition at line 26 of file sipaccountbase_config.h.
|
inline |
Definition at line 28 of file sipaccountbase_config.h.
|
overridevirtual |
Reimplemented from jami::AccountConfig.
Reimplemented in jami::SipAccountConfig.
Definition at line 120 of file sipaccountbase_config.cpp.
References audioPortRange, jami::Conf::CONFIG_ACCOUNT_AUDIO_PORT_MAX, jami::Conf::CONFIG_ACCOUNT_AUDIO_PORT_MIN, jami::Conf::CONFIG_ACCOUNT_DTMF_TYPE, jami::Conf::CONFIG_ACCOUNT_VIDEO_PORT_MAX, jami::Conf::CONFIG_ACCOUNT_VIDEO_PORT_MIN, jami::Conf::CONFIG_LOCAL_INTERFACE, jami::Conf::CONFIG_PUBLISHED_ADDRESS, jami::Conf::CONFIG_PUBLISHED_SAMEAS_LOCAL, jami::Conf::CONFIG_TURN_ENABLE, jami::Conf::CONFIG_TURN_SERVER, jami::Conf::CONFIG_TURN_SERVER_PWD, jami::Conf::CONFIG_TURN_SERVER_REALM, jami::Conf::CONFIG_TURN_SERVER_UNAME, dtmfType, jami::emitSignal(), jami::AccountConfig::fromMap(), interface, jami::parseBool(), jami::parseInt(), jami::parseString(), publishedIp, publishedSameasLocal, turnEnabled, turnServer, turnServerPwd, turnServerRealm, turnServerUserName, jami::updateRange(), and videoPortRange.
Referenced by jami::JamiAccountConfig::fromMap(), and jami::SipAccountConfig::fromMap().

| void jami::SipAccountBaseConfig::serializeDiff | ( | YAML::Emitter & | out, |
| const SipAccountBaseConfig & | def | ||
| ) | const |
Definition at line 61 of file sipaccountbase_config.cpp.
References jami::Conf::AUDIO_PORT_MAX_KEY, audioPortRange, jami::DEFAULT_CONFIG, jami::Conf::DTMF_TYPE_KEY, dtmfType, jami::emitSignal(), interface, jami::Conf::INTERFACE_KEY, jami::Conf::PUBLISH_ADDR_KEY, publishedIp, publishedSameasLocal, jami::Conf::SAME_AS_LOCAL_KEY, SERIALIZE_CONFIG, jami::AccountConfig::serializeDiff(), jami::Conf::TURN_ENABLED_KEY, jami::Conf::TURN_SERVER_KEY, jami::Conf::TURN_SERVER_PWD_KEY, jami::Conf::TURN_SERVER_REALM_KEY, jami::Conf::TURN_SERVER_UNAME_KEY, turnEnabled, turnServer, turnServerPwd, turnServerRealm, turnServerUserName, jami::Conf::VIDEO_PORT_MAX_KEY, jami::Conf::VIDEO_PORT_MIN_KEY, and videoPortRange.
Referenced by jami::JamiAccountConfig::serialize(), and jami::SipAccountConfig::serialize().

|
overridevirtual |
Reimplemented from jami::AccountConfig.
Reimplemented in jami::SipAccountConfig.
Definition at line 99 of file sipaccountbase_config.cpp.
References jami::addRangeToDetails(), audioPortRange, jami::Conf::CONFIG_ACCOUNT_AUDIO_PORT_MAX, jami::Conf::CONFIG_ACCOUNT_AUDIO_PORT_MIN, jami::Conf::CONFIG_ACCOUNT_DTMF_TYPE, jami::Conf::CONFIG_ACCOUNT_VIDEO_PORT_MAX, jami::Conf::CONFIG_ACCOUNT_VIDEO_PORT_MIN, jami::Conf::CONFIG_LOCAL_INTERFACE, jami::Conf::CONFIG_PUBLISHED_ADDRESS, jami::Conf::CONFIG_PUBLISHED_SAMEAS_LOCAL, jami::Conf::CONFIG_TURN_ENABLE, jami::Conf::CONFIG_TURN_SERVER, jami::Conf::CONFIG_TURN_SERVER_PWD, jami::Conf::CONFIG_TURN_SERVER_REALM, jami::Conf::CONFIG_TURN_SERVER_UNAME, dtmfType, jami::emitSignal(), jami::FALSE_STR, interface, publishedIp, publishedSameasLocal, jami::AccountConfig::toMap(), jami::TRUE_STR, turnEnabled, turnServer, turnServerPwd, turnServerRealm, turnServerUserName, and videoPortRange.
Referenced by jami::JamiAccountConfig::toMap(), and jami::SipAccountConfig::toMap().

Reimplemented from jami::AccountConfig.
Reimplemented in jami::SipAccountConfig.
Definition at line 80 of file sipaccountbase_config.cpp.
References jami::Conf::AUDIO_PORT_MAX_KEY, jami::Conf::AUDIO_PORT_MIN_KEY, audioPortRange, jami::Conf::DTMF_TYPE_KEY, dtmfType, interface, jami::Conf::INTERFACE_KEY, jami::Conf::PUBLISH_ADDR_KEY, publishedIp, publishedSameasLocal, jami::Conf::SAME_AS_LOCAL_KEY, jami::Conf::TURN_ENABLED_KEY, jami::Conf::TURN_SERVER_KEY, jami::Conf::TURN_SERVER_PWD_KEY, jami::Conf::TURN_SERVER_REALM_KEY, jami::Conf::TURN_SERVER_UNAME_KEY, turnEnabled, turnServer, turnServerPwd, turnServerRealm, turnServerUserName, jami::AccountConfig::unserialize(), jami::unserializeRange(), jami::Conf::VIDEO_PORT_MAX_KEY, jami::Conf::VIDEO_PORT_MIN_KEY, and videoPortRange.
Referenced by jami::JamiAccountConfig::unserialize(), and jami::SipAccountConfig::unserialize().

Definition at line 75 of file sipaccountbase_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().
| std::string jami::SipAccountBaseConfig::dtmfType {OVERRTP_STR} |
Definition at line 71 of file sipaccountbase_config.h.
Referenced by jami::SipAccountConfig::fromMap(), fromMap(), jami::SIPAccountBase::getDtmfType(), serializeDiff(), jami::SipAccountConfig::toMap(), toMap(), and unserialize().
| std::string jami::SipAccountBaseConfig::interface {"default"} |
interface name on which this account is bound
Definition at line 41 of file sipaccountbase_config.h.
Referenced by fromMap(), jami::SIPAccountBase::getLocalInterface(), serializeDiff(), toMap(), and unserialize().
| std::string jami::SipAccountBaseConfig::publishedIp |
Definition at line 49 of file sipaccountbase_config.h.
Referenced by jami::SipAccountConfig::fromMap(), fromMap(), jami::SIPAccountBase::getPublishedAddress(), serializeDiff(), jami::SipAccountConfig::toMap(), toMap(), and unserialize().
Flag which determine if localIpAddress_ or publishedIpAddress_ is used in sip headers.
Definition at line 47 of file sipaccountbase_config.h.
Referenced by jami::SipAccountConfig::fromMap(), fromMap(), jami::SIPAccountBase::getPublishedSameasLocal(), serializeDiff(), jami::SipAccountConfig::toMap(), toMap(), and unserialize().
| std::string jami::SipAccountBaseConfig::tlsCaListFile |
Definition at line 66 of file sipaccountbase_config.h.
Referenced by jami::JamiAccountConfig::fromMap(), jami::SipAccountConfig::fromMap(), jami::JamiAccountConfig::serialize(), jami::SipAccountConfig::serialize(), jami::JamiAccountConfig::toMap(), jami::SipAccountConfig::toMap(), jami::JamiAccountConfig::unserialize(), and jami::SipAccountConfig::unserialize().
| std::string jami::SipAccountBaseConfig::tlsCertificateFile |
Definition at line 67 of file sipaccountbase_config.h.
Referenced by jami::JamiAccountConfig::fromMap(), jami::SipAccountConfig::fromMap(), jami::JamiAccountConfig::serialize(), jami::SipAccountConfig::serialize(), jami::JamiAccountConfig::toMap(), jami::SipAccountConfig::toMap(), jami::JamiAccountConfig::unserialize(), and jami::SipAccountConfig::unserialize().
| std::string jami::SipAccountBaseConfig::tlsPassword |
Definition at line 69 of file sipaccountbase_config.h.
Referenced by jami::JamiAccountConfig::fromMap(), jami::SipAccountConfig::fromMap(), jami::JamiAccountConfig::serialize(), jami::SipAccountConfig::serialize(), jami::JamiAccountConfig::toMap(), jami::SipAccountConfig::toMap(), jami::JamiAccountConfig::unserialize(), and jami::SipAccountConfig::unserialize().
| std::string jami::SipAccountBaseConfig::tlsPrivateKeyFile |
Definition at line 68 of file sipaccountbase_config.h.
Referenced by jami::JamiAccountConfig::fromMap(), jami::SipAccountConfig::fromMap(), jami::JamiAccountConfig::serialize(), jami::SipAccountConfig::serialize(), jami::JamiAccountConfig::toMap(), jami::SipAccountConfig::toMap(), jami::JamiAccountConfig::unserialize(), and jami::SipAccountConfig::unserialize().
Determine if TURN public address resolution is required to register this account.
In this case a TURN server hostname must be specified.
Definition at line 55 of file sipaccountbase_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().
| std::string jami::SipAccountBaseConfig::turnServer |
The TURN server hostname (optional), used to provide the public IP address in case the softphone stay behind a NAT.
Definition at line 61 of file sipaccountbase_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().
| std::string jami::SipAccountBaseConfig::turnServerPwd |
Definition at line 63 of file sipaccountbase_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().
| std::string jami::SipAccountBaseConfig::turnServerRealm |
Definition at line 64 of file sipaccountbase_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().
| std::string jami::SipAccountBaseConfig::turnServerUserName |
Definition at line 62 of file sipaccountbase_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().
Port range for video RTP ports.
Definition at line 80 of file sipaccountbase_config.h.
Referenced by fromMap(), serializeDiff(), toMap(), and unserialize().