Liblinphone
5.2.0
|
Represents an account configuration to be used by Core. More...
#include <proxy_config.hh>
Public Member Functions | |
ProxyConfig (void *ptr, bool takeRef=true) | |
LINPHONECXX_PUBLIC _LinphoneProxyConfig * | cPtr () |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | avpfEnabled () |
Indicates whether AVPF/SAVPF is being used for calls using this proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::AVPFMode | getAvpfMode () const |
Get enablement status of RTCP feedback (also known as AVPF profile). More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setAvpfMode (linphone::AVPFMode mode) |
Enable the use of RTCP feedback (also known as AVPF profile). More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED uint8_t | getAvpfRrInterval () const |
Get the interval between regular RTCP reports when using AVPF/SAVPF. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setAvpfRrInterval (uint8_t interval) |
Set the interval between regular RTCP reports when using AVPF/SAVPF. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getConferenceFactoryUri () const |
Get the conference factory uri. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setConferenceFactoryUri (const std::string &uri) |
Set the conference factory uri. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< const linphone::Address > | getContact () const |
Return the contact address of the proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getContactParameters () const |
Returns the contact parameters. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setContactParameters (const std::string &contactParams) |
Set optional contact parameters that will be added to the contact information sent in the registration. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getContactUriParameters () const |
Returns the contact URI parameters. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setContactUriParameters (const std::string &contactUriParams) |
Set optional contact parameters that will be added to the contact information sent in the registration, inside the URI. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::Core > | getCore () const |
Get the Core object to which is associated the ProxyConfig. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::ProxyConfig > | getDependency () |
Get the dependency of a ProxyConfig. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setDependency (const std::shared_ptr< linphone::ProxyConfig > &dependsOn) |
Mark this proxy configuration as being dependent on the given one. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | getDialEscapePlus () const |
Returns whether or not the + should be replaced by 00. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setDialEscapePlus (bool enable) |
Sets whether liblinphone should replace "+" by international calling prefix in dialed numbers (passed to Core::invite() ). More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getDialPrefix () const |
Gets the prefix set for this proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setDialPrefix (const std::string &prefix) |
Sets a dialing prefix to be automatically prepended when inviting a number with Core::invite(); This dialing prefix shall usually be the country code of the country where the user is living, without "+". More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getDomain () const |
Get the domain name of the given proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Reason | getError () const |
Get the reason why registration failed when the proxy config state is LinphoneRegistrationFailed. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< const linphone::ErrorInfo > | getErrorInfo () const |
Get detailed information why registration failed when the proxy config state is LinphoneRegistrationFailed. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED int | getExpires () const |
Gets the proxy config expires. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setExpires (int expires) |
Sets the registration expiration time in seconds. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< const linphone::Address > | getIdentityAddress () const |
Gets the identity addres of the proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status | setIdentityAddress (const std::shared_ptr< const linphone::Address > &identity) |
Sets the user identity as a SIP address. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getIdkey () |
Get the idkey property of a ProxyConfig. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setIdkey (const std::string &idkey) |
Set the idkey property on the given proxy configuration. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isPushNotificationAllowed () const |
Indicates whether to add to the contact parameters the push notification information. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isPushNotificationAvailable () const |
Gets whether push notifications are available or not (Android & iOS only). More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | isRemotePushNotificationAllowed () const |
Indicates whether to add to the contact parameters the remote push notification information (IOS only). More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::NatPolicy > | getNatPolicy () const |
Get The policy that is used to pass through NATs/firewalls when using this proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setNatPolicy (const std::shared_ptr< linphone::NatPolicy > &policy) |
Set the policy to use to pass through NATs/firewalls when using this proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED unsigned int | getPrivacy () const |
Get default privacy policy for all calls routed through this proxy. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setPrivacy (unsigned int privacy) |
Set default privacy policy for all calls routed through this proxy. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | publishEnabled () const |
Gets if the PUBLISH is enabled. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | enablePublish (bool enable) |
Indicates either or not, PUBLISH must be issued for this ProxyConfig. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED int | getPublishExpires () const |
get the publish expiration time in second. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setPublishExpires (int expires) |
Set the publish expiration time in second. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setPushNotificationAllowed (bool allow) |
Indicates whether to add to the contact parameters the push notification information. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::PushNotificationConfig > | getPushNotificationConfig () const |
Retrieves the push notification configuration. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setPushNotificationConfig (const std::shared_ptr< linphone::PushNotificationConfig > &pushCfg) |
Sets the push notification configuration. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getQualityReportingCollector () const |
Get the route of the collector end-point when using quality reporting. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setQualityReportingCollector (const std::string &collector) |
Set the route of the collector end-point when using quality reporting. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | qualityReportingEnabled () |
Indicates whether quality statistics during call should be stored and sent to a collector according to RFC 6035. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | enableQualityReporting (bool enable) |
Indicates whether quality statistics during call should be stored and sent to a collector according to RFC 6035. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED int | getQualityReportingInterval () |
Get the interval between interval reports when using quality reporting. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setQualityReportingInterval (int interval) |
Set the interval between 2 interval reports sending when using quality reporting. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getRealm () const |
Get the realm of the given proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setRealm (const std::string &realm) |
Set the realm of the given proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getRefKey () const |
Get the persistent reference key associated to the proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setRefKey (const std::string &refkey) |
Associate a persistent reference key to the proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool | registerEnabled () const |
Returns whether the proxy config is enabled or not. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | enableRegister (bool enable) |
Indicates either or not, REGISTRATION must be issued for this ProxyConfig. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setRemotePushNotificationAllowed (bool allow) |
Indicates whether to add to the contact parameters the remote push notification information (IOS only). More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status | setRoute (const std::string &route) |
Sets a SIP route. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::list< std::string > | getRoutes () const |
Gets the list of the routes set for this proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status | setRoutes (const std::list< std::string > &routes) |
Sets a list of SIP route. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getServerAddr () const |
Gets the proxy config proxy address. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status | setServerAddr (const std::string &serverAddress) |
Sets the proxy address. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::RegistrationState | getState () const |
Get the registration state of the given proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getTransport () const |
Get the transport from either service route, route or addr. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED int | getUnreadChatMessageCount () const |
Return the unread chat message count for a given proxy config. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status | done () |
Commits modification made to the proxy configuration. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | edit () |
Starts editing a proxy configuration. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< const linphone::AuthInfo > | findAuthInfo () const |
Find authentication info matching proxy config, if any, similarly to linphone_core_find_auth_info. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | getCustomHeader (const std::string &headerName) |
Obtain the value of a header sent by the server in last answer to REGISTER. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string | normalizePhoneNumber (const std::string &username) |
Normalize a human readable phone number into a basic string. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr< linphone::Address > | normalizeSipUri (const std::string &username) |
Normalize a human readable sip uri into a fully qualified LinphoneAddress. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | pauseRegister () |
Prevent a proxy config from refreshing its registration. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | refreshRegister () |
Refresh a proxy registration. More... | |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void | setCustomHeader (const std::string &headerName, const std::string &headerValue) |
Set the value of a custom header sent to the server in REGISTERs request. More... | |
Represents an account configuration to be used by Core.
In addition to the AuthInfo that stores the credentials, you need to configure a ProxyConfig as well to be able to connect to a proxy server. A minimal proxy config consists of an identity address (sip:usern) and the proxy server address, ame@ domai n.tl d
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::ProxyConfig::avpfEnabled | ( | ) |
Indicates whether AVPF/SAVPF is being used for calls using this proxy config.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status linphone::ProxyConfig::done | ( | ) |
Commits modification made to the proxy configuration.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::edit | ( | ) |
Starts editing a proxy configuration.
Because proxy configuration must be consistent, applications MUST call edit() before doing any attempts to modify proxy configuration (such as identity, proxy address and so on). Once the modifications are done, then the application must call done() to commit the changes.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::enablePublish | ( | bool | enable | ) |
Indicates either or not, PUBLISH must be issued for this ProxyConfig.
In case this ProxyConfig has been added to Core, follows the edit() rule.
enable | if true, publish will be engaged |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::enableQualityReporting | ( | bool | enable | ) |
Indicates whether quality statistics during call should be stored and sent to a collector according to RFC 6035.
enable | True to store quality statistics and send them to the collector, false to disable it. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::enableRegister | ( | bool | enable | ) |
Indicates either or not, REGISTRATION must be issued for this ProxyConfig.
In case this ProxyConfig has been added to Core, follows the edit() rule.
enable | if true, registration will be engaged |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<const linphone::AuthInfo> linphone::ProxyConfig::findAuthInfo | ( | ) | const |
Find authentication info matching proxy config, if any, similarly to linphone_core_find_auth_info.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::AVPFMode linphone::ProxyConfig::getAvpfMode | ( | ) | const |
Get enablement status of RTCP feedback (also known as AVPF profile).
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED uint8_t linphone::ProxyConfig::getAvpfRrInterval | ( | ) | const |
Get the interval between regular RTCP reports when using AVPF/SAVPF.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getConferenceFactoryUri | ( | ) | const |
Get the conference factory uri.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<const linphone::Address> linphone::ProxyConfig::getContact | ( | ) | const |
Return the contact address of the proxy config.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getContactParameters | ( | ) | const |
Returns the contact parameters.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getContactUriParameters | ( | ) | const |
Returns the contact URI parameters.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::Core> linphone::ProxyConfig::getCore | ( | ) | const |
Get the Core object to which is associated the ProxyConfig.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getCustomHeader | ( | const std::string & | headerName | ) |
Obtain the value of a header sent by the server in last answer to REGISTER.
headerName | the header name for which to fetch corresponding value |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::ProxyConfig> linphone::ProxyConfig::getDependency | ( | ) |
Get the dependency of a ProxyConfig.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::ProxyConfig::getDialEscapePlus | ( | ) | const |
Returns whether or not the + should be replaced by 00.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getDialPrefix | ( | ) | const |
Gets the prefix set for this proxy config.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getDomain | ( | ) | const |
Get the domain name of the given proxy config.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Reason linphone::ProxyConfig::getError | ( | ) | const |
Get the reason why registration failed when the proxy config state is LinphoneRegistrationFailed.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<const linphone::ErrorInfo> linphone::ProxyConfig::getErrorInfo | ( | ) | const |
Get detailed information why registration failed when the proxy config state is LinphoneRegistrationFailed.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED int linphone::ProxyConfig::getExpires | ( | ) | const |
Gets the proxy config expires.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<const linphone::Address> linphone::ProxyConfig::getIdentityAddress | ( | ) | const |
Gets the identity addres of the proxy config.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getIdkey | ( | ) |
Get the idkey property of a ProxyConfig.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::NatPolicy> linphone::ProxyConfig::getNatPolicy | ( | ) | const |
Get The policy that is used to pass through NATs/firewalls when using this proxy config.
If it is set to nullptr, the default NAT policy from the core will be used instead.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED unsigned int linphone::ProxyConfig::getPrivacy | ( | ) | const |
Get default privacy policy for all calls routed through this proxy.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED int linphone::ProxyConfig::getPublishExpires | ( | ) | const |
get the publish expiration time in second.
Default value is the registration expiration value.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::PushNotificationConfig> linphone::ProxyConfig::getPushNotificationConfig | ( | ) | const |
Retrieves the push notification configuration.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getQualityReportingCollector | ( | ) | const |
Get the route of the collector end-point when using quality reporting.
This SIP address should be used on server-side to process packets directly before discarding packets. Collector address should be a non existing account and will not receive any messages. If nullptr, reports will be send to the proxy domain.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED int linphone::ProxyConfig::getQualityReportingInterval | ( | ) |
Get the interval between interval reports when using quality reporting.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getRealm | ( | ) | const |
Get the realm of the given proxy config.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getRefKey | ( | ) | const |
Get the persistent reference key associated to the proxy config.
The reference key can be for example an id to an external database. It is stored in the config file, thus can survive to process exits/restarts.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::list<std::string> linphone::ProxyConfig::getRoutes | ( | ) | const |
Gets the list of the routes set for this proxy config.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getServerAddr | ( | ) | const |
Gets the proxy config proxy address.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::RegistrationState linphone::ProxyConfig::getState | ( | ) | const |
Get the registration state of the given proxy config.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::getTransport | ( | ) | const |
Get the transport from either service route, route or addr.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED int linphone::ProxyConfig::getUnreadChatMessageCount | ( | ) | const |
Return the unread chat message count for a given proxy config.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::ProxyConfig::isPushNotificationAllowed | ( | ) | const |
Indicates whether to add to the contact parameters the push notification information.
For IOS, it indicates to VOIP push notification.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::ProxyConfig::isPushNotificationAvailable | ( | ) | const |
Gets whether push notifications are available or not (Android & iOS only).
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::ProxyConfig::isRemotePushNotificationAllowed | ( | ) | const |
Indicates whether to add to the contact parameters the remote push notification information (IOS only).
Default value is false.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::string linphone::ProxyConfig::normalizePhoneNumber | ( | const std::string & | username | ) |
Normalize a human readable phone number into a basic string.
888-444-222 becomes 888444222 or +33888444222 depending on the ProxyConfig object. This function will always generate a normalized username if input is a phone number.
username | the string to parse |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED std::shared_ptr<linphone::Address> linphone::ProxyConfig::normalizeSipUri | ( | const std::string & | username | ) |
Normalize a human readable sip uri into a fully qualified LinphoneAddress.
A sip address should look like DisplayName <sip:username:port> . Basically this function performs the following tasks The result is a syntactically correct SIP address.
username | the string to parse |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::pauseRegister | ( | ) |
Prevent a proxy config from refreshing its registration.
This is useful to let registrations to expire naturally (or) when the application wants to keep control on when refreshes are sent. However, linphone_core_set_network_reachable(lc,true) will always request the proxy configs to refresh their registrations. The refreshing operations can be resumed with refreshRegister().
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::ProxyConfig::publishEnabled | ( | ) | const |
Gets if the PUBLISH is enabled.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::ProxyConfig::qualityReportingEnabled | ( | ) |
Indicates whether quality statistics during call should be stored and sent to a collector according to RFC 6035.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::refreshRegister | ( | ) |
Refresh a proxy registration.
This is useful if for example you resuming from suspend, thus IP address may have changed.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED bool linphone::ProxyConfig::registerEnabled | ( | ) | const |
Returns whether the proxy config is enabled or not.
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setAvpfMode | ( | linphone::AVPFMode | mode | ) |
Enable the use of RTCP feedback (also known as AVPF profile).
mode | the enablement mode, which can be AVPFMode::Default (use LinphoneCore's mode), AVPFMode::Enabled (avpf is enabled), or AVPFMode::Disabled (disabled). |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setAvpfRrInterval | ( | uint8_t | interval | ) |
Set the interval between regular RTCP reports when using AVPF/SAVPF.
interval | The interval in seconds (between 0 and 5 seconds). |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setConferenceFactoryUri | ( | const std::string & | uri | ) |
Set the conference factory uri.
uri | The uri of the conference factory. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setContactParameters | ( | const std::string & | contactParams | ) |
Set optional contact parameters that will be added to the contact information sent in the registration.
contactParams | a string contaning the additional parameters in text form, like "myparam=something;myparam2=something_else" The main use case for this function is provide the proxy additional information regarding the user agent, like for example unique identifier or apple push id. As an example, the contact address in the SIP register sent will look like <sip:joe@1:50421>;apple-push-id=43143-DFE23F-2323-FA2232. 5.12 8.128 .93 |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setContactUriParameters | ( | const std::string & | contactUriParams | ) |
Set optional contact parameters that will be added to the contact information sent in the registration, inside the URI.
contactUriParams | a string containing the additional parameters in text form, like "myparam=something;myparam2=something_else" The main use case for this function is provide the proxy additional information regarding the user agent, like for example unique identifier or apple push id. As an example, the contact address in the SIP register sent will look like <sip:joe@1:50421;apple-push-id=43143-DFE23F-2323-FA2232>. 5.12 8.128 .93 |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setCustomHeader | ( | const std::string & | headerName, |
const std::string & | headerValue | ||
) |
Set the value of a custom header sent to the server in REGISTERs request.
headerValue | the header's value |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setDependency | ( | const std::shared_ptr< linphone::ProxyConfig > & | dependsOn | ) |
Mark this proxy configuration as being dependent on the given one.
The dependency must refer to a proxy config previously added to the core and which idkey property is defined.
dependsOn | The ProxyConfig this one shall be depend on. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setDialEscapePlus | ( | bool | enable | ) |
Sets whether liblinphone should replace "+" by international calling prefix in dialed numbers (passed to Core::invite() ).
enable | true to replace + by the international prefix, false otherwise. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setDialPrefix | ( | const std::string & | prefix | ) |
Sets a dialing prefix to be automatically prepended when inviting a number with Core::invite(); This dialing prefix shall usually be the country code of the country where the user is living, without "+".
prefix | the prefix to set (withouth the +) |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setExpires | ( | int | expires | ) |
Sets the registration expiration time in seconds.
expires | the expiration time to set |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status linphone::ProxyConfig::setIdentityAddress | ( | const std::shared_ptr< const linphone::Address > & | identity | ) |
Sets the user identity as a SIP address.
This identity is normally formed with display name, username and domain, such as: Alice <sip:alice> The REGISTER messages will have from and to set to this identity. @exa mple. net
identity | the Address of the identity to set |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setIdkey | ( | const std::string & | idkey | ) |
Set the idkey property on the given proxy configuration.
This property can the be referenced by another proxy config 'depends_on' to create a dependency relation between them.
idkey | The idkey string to associate to the given ProxyConfig. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setNatPolicy | ( | const std::shared_ptr< linphone::NatPolicy > & | policy | ) |
Set the policy to use to pass through NATs/firewalls when using this proxy config.
If it is set to nullptr, the default NAT policy from the core will be used instead.
policy | NatPolicy object. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setPrivacy | ( | unsigned int | privacy | ) |
Set default privacy policy for all calls routed through this proxy.
privacy | Privacy to configure privacy |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setPublishExpires | ( | int | expires | ) |
Set the publish expiration time in second.
expires | in second |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setPushNotificationAllowed | ( | bool | allow | ) |
Indicates whether to add to the contact parameters the push notification information.
For IOS, it indicates to VOIP push notification.
allow | true to allow push notification information, false otherwise. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setPushNotificationConfig | ( | const std::shared_ptr< linphone::PushNotificationConfig > & | pushCfg | ) |
Sets the push notification configuration.
pushCfg | PushNotificationConfig to set. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setQualityReportingCollector | ( | const std::string & | collector | ) |
Set the route of the collector end-point when using quality reporting.
This SIP address should be used on server-side to process packets directly before discarding packets. Collector address should be a non existing account and will not receive any messages. If nullptr, reports will be send to the proxy domain.
collector | route of the collector end-point, if nullptr PUBLISH will be sent to the proxy domain. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setQualityReportingInterval | ( | int | interval | ) |
Set the interval between 2 interval reports sending when using quality reporting.
If call exceed interval size, an interval report will be sent to the collector. On call termination, a session report will be sent for the remaining period. Value must be 0 (disabled) or positive.
interval | The interval in seconds, 0 means interval reports are disabled. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setRealm | ( | const std::string & | realm | ) |
Set the realm of the given proxy config.
realm | New realm value. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setRefKey | ( | const std::string & | refkey | ) |
Associate a persistent reference key to the proxy config.
The reference key can be for example an id to an external database. It is stored in the config file, thus can survive to process exits/restarts.
refkey | The reference key string to associate to the proxy config. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED void linphone::ProxyConfig::setRemotePushNotificationAllowed | ( | bool | allow | ) |
Indicates whether to add to the contact parameters the remote push notification information (IOS only).
allow | true to allow remote push notification information, false otherwise. |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status linphone::ProxyConfig::setRoute | ( | const std::string & | route | ) |
Sets a SIP route.
When a route is set, all outgoing calls will go to the route's destination if this proxy is the default one (see Core::setDefaultProxyConfig() ).
route | the SIP route to set |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status linphone::ProxyConfig::setRoutes | ( | const std::list< std::string > & | routes | ) |
Sets a list of SIP route.
When a route is set, all outgoing calls will go to the route's destination if this proxy is the default one (see Core::setDefaultProxyConfig() ).
routes | A of routes |
LINPHONECXX_PUBLIC LINPHONECXX_DEPRECATED linphone::Status linphone::ProxyConfig::setServerAddr | ( | const std::string & | serverAddress | ) |
Sets the proxy address.
Examples of valid sip proxy address are:
serverAddress | the proxy address to set. |