|
Liblinphone
5.4.0
|
Typedefs | |
| typedef struct _LinphoneProxyConfig | LinphoneProxyConfig |
| Represents an account configuration to be used by LinphoneCore. More... | |
| typedef enum _LinphoneRegistrationState | LinphoneRegistrationState |
| Describes proxy registration states. More... | |
Enumerations | |
| enum | _LinphoneRegistrationState { LinphoneRegistrationNone = 0, LinphoneRegistrationProgress = 1, LinphoneRegistrationOk = 2, LinphoneRegistrationCleared = 3, LinphoneRegistrationFailed = 4, LinphoneRegistrationRefreshing = 5 } |
| Describes proxy registration states. More... | |
Functions | |
| LinphoneStatus | linphone_core_set_primary_contact (LinphoneCore *core, const char *contact) |
| Sets the local "from" SIP identity used for calls made out of any configured LinphoneAccount. More... | |
| const char * | linphone_core_get_primary_contact (LinphoneCore *core) |
| Returns the default identity when no account is used. More... | |
| const char * | linphone_core_get_identity (LinphoneCore *core) |
| Gets the default identity SIP address. More... | |
| void | linphone_core_set_guess_hostname (LinphoneCore *core, bool_t enable) |
| Tells LinphoneCore to guess local hostname automatically in primary contact. More... | |
| bool_t | linphone_core_get_guess_hostname (LinphoneCore *core) |
| Returns TRUE if hostname part of primary contact is guessed automatically. More... | |
| MS2_DEPRECATED LinphoneAddress * | linphone_core_create_primary_contact_parsed (LinphoneCore *core) |
| Same as linphone_core_get_primary_contact() but the result is a LinphoneAddress object instead of const char *. More... | |
| LinphoneProxyConfig * | linphone_core_create_proxy_config (LinphoneCore *core) |
| Create a proxy config with default values from Linphone core. More... | |
| LinphoneStatus | linphone_core_add_proxy_config (LinphoneCore *core, LinphoneProxyConfig *config) |
| Add a proxy configuration. More... | |
| void | linphone_core_clear_proxy_config (LinphoneCore *core) |
| Erase all proxies from config. More... | |
| void | linphone_core_remove_proxy_config (LinphoneCore *core, LinphoneProxyConfig *config) |
| Removes a proxy configuration. More... | |
| const bctbx_list_t * | linphone_core_get_proxy_config_list (const LinphoneCore *core) |
| Returns an unmodifiable list of entered proxy configurations. More... | |
| LinphoneProxyConfig * | linphone_core_get_proxy_config_by_idkey (LinphoneCore *core, const char *idkey) |
| Searches for a LinphoneProxyConfig by it's idkey. More... | |
| LinphoneProxyConfig * | linphone_core_get_default_proxy_config (const LinphoneCore *core) |
| Returns the default proxy configuration, that is the one used to determine the current identity. More... | |
| void | linphone_core_set_default_proxy_config (LinphoneCore *core, LinphoneProxyConfig *config) |
| Sets the default proxy. More... | |
| void | linphone_core_refresh_registers (LinphoneCore *core) |
| Forces registration refresh to be initiated upon next iterate. More... | |
| MS2_DEPRECATED LinphoneAddress * | linphone_core_get_primary_contact_parsed (LinphoneCore *core) |
| Same as linphone_core_get_primary_contact() but the result is a LinphoneAddress object instead of const char *. More... | |
| LinphoneAddress * | linphone_core_get_primary_contact_address (LinphoneCore *core) |
| Same as linphone_core_get_primary_contact() but the result is a LinphoneAddress object instead of a string. More... | |
| const char * | linphone_registration_state_to_string (LinphoneRegistrationState state) |
| Human readable version of the LinphoneRegistrationState. More... | |
| typedef struct _LinphoneProxyConfig LinphoneProxyConfig |
Represents an account configuration to be used by LinphoneCore.
In addition to the LinphoneAuthInfo that stores the credentials, you need to configure a LinphoneProxyConfig as well to be able to connect to a proxy server.
A minimal proxy config consists of an identity address (sip:username@domain.tld) and the proxy server address,
If any, it will be stored inside the default configuration file, so it will survive the destruction of the LinphoneCore and be available at the next start.
The account set with linphone_core_set_default_proxy_config() will be used as default for outgoing calls & chat messages unless specified otherwise.
| typedef enum _LinphoneRegistrationState LinphoneRegistrationState |
Describes proxy registration states.
It is notified via the registration_state_changed() callback in LinphoneCoreCbs.
Describes proxy registration states.
It is notified via the registration_state_changed() callback in LinphoneCoreCbs.
| LinphoneStatus linphone_core_add_proxy_config | ( | LinphoneCore * | core, |
| LinphoneProxyConfig * | config | ||
| ) |
Add a proxy configuration.
This will start registration on the proxy, if registration is enabled.
| core | LinphoneCore object |
| config | the LinphoneProxyConfig to add |
| void linphone_core_clear_proxy_config | ( | LinphoneCore * | core | ) |
Erase all proxies from config.
| core | LinphoneCore object |
| MS2_DEPRECATED LinphoneAddress* linphone_core_create_primary_contact_parsed | ( | LinphoneCore * | core | ) |
Same as linphone_core_get_primary_contact() but the result is a LinphoneAddress object instead of const char *.
| core | the LinphoneCore |
| LinphoneProxyConfig* linphone_core_create_proxy_config | ( | LinphoneCore * | core | ) |
Create a proxy config with default values from Linphone core.
| core | LinphoneCore object |
| LinphoneProxyConfig* linphone_core_get_default_proxy_config | ( | const LinphoneCore * | core | ) |
Returns the default proxy configuration, that is the one used to determine the current identity.
| core | LinphoneCore object |
| bool_t linphone_core_get_guess_hostname | ( | LinphoneCore * | core | ) |
Returns TRUE if hostname part of primary contact is guessed automatically.
| core | the LinphoneCore |
| const char* linphone_core_get_identity | ( | LinphoneCore * | core | ) |
Gets the default identity SIP address.
This is an helper function. If no default proxy is set, this will return the primary contact ( see linphone_core_get_primary_contact() ). If a default proxy is set it returns the registered identity on the proxy.
| core | LinphoneCore object |
| const char* linphone_core_get_primary_contact | ( | LinphoneCore * | core | ) |
Returns the default identity when no account is used.
This SIP address usually contains a private ip address, and may not be routable globally.
| core | the Core |
| LinphoneAddress* linphone_core_get_primary_contact_address | ( | LinphoneCore * | core | ) |
Same as linphone_core_get_primary_contact() but the result is a LinphoneAddress object instead of a string.
| core | the LinphoneCore |
| MS2_DEPRECATED LinphoneAddress* linphone_core_get_primary_contact_parsed | ( | LinphoneCore * | core | ) |
Same as linphone_core_get_primary_contact() but the result is a LinphoneAddress object instead of const char *.
| core | the LinphoneCore |
| LinphoneProxyConfig* linphone_core_get_proxy_config_by_idkey | ( | LinphoneCore * | core, |
| const char * | idkey | ||
| ) |
Searches for a LinphoneProxyConfig by it's idkey.
| core | the LinphoneCore object |
| idkey | An arbitrary idkey string associated to a proxy configuration |
| const bctbx_list_t* linphone_core_get_proxy_config_list | ( | const LinphoneCore * | core | ) |
Returns an unmodifiable list of entered proxy configurations.
| core | The LinphoneCore object |
| void linphone_core_refresh_registers | ( | LinphoneCore * | core | ) |
Forces registration refresh to be initiated upon next iterate.
| core | The LinphoneCore object |
| void linphone_core_remove_proxy_config | ( | LinphoneCore * | core, |
| LinphoneProxyConfig * | config | ||
| ) |
Removes a proxy configuration.
LinphoneCore will then automatically unregister and place the proxy configuration on a deleted list. For that reason, a removed proxy does NOT need to be freed.
| core | LinphoneCore object |
| config | the LinphoneProxyConfig to remove |
| void linphone_core_set_default_proxy_config | ( | LinphoneCore * | core, |
| LinphoneProxyConfig * | config | ||
| ) |
Sets the default proxy.
This default proxy must be part of the list of already entered LinphoneProxyConfig. Toggling it as default will make LinphoneCore use the identity associated with the proxy configuration in all incoming and outgoing calls.
| core | LinphoneCore object |
| config | The proxy configuration to use as the default one. |
| void linphone_core_set_guess_hostname | ( | LinphoneCore * | core, |
| bool_t | enable | ||
| ) |
Tells LinphoneCore to guess local hostname automatically in primary contact.
| core | the LinphoneCore |
| enable | whether to enable the guess hostname feature or not |
| LinphoneStatus linphone_core_set_primary_contact | ( | LinphoneCore * | core, |
| const char * | contact | ||
| ) |
Sets the local "from" SIP identity used for calls made out of any configured LinphoneAccount.
Not using a SIP account is not recommended.
This data is used in absence of any proxy configuration or when no account configuration is set. See LinphoneAccount
| core | the Core |
| contact | the contact to set |
| const char* linphone_registration_state_to_string | ( | LinphoneRegistrationState | state | ) |
Human readable version of the LinphoneRegistrationState.
| state | LinphoneRegistrationState the value for which we want a string representation |
1.8.13