Liblinphone
5.3.0
|
Controlling network parameters (ports, mtu...). More...
Typedefs | |
typedef enum _LinphoneAuthMethod | LinphoneAuthMethod |
Enum describing the authentication methods. | |
typedef enum _LinphoneFirewallPolicy | LinphoneFirewallPolicy |
Policy to use to pass through firewalls. More... | |
typedef enum _LinphoneLimeState | LinphoneLimeState |
typedef struct _LinphoneNatPolicy | LinphoneNatPolicy |
Policy to use to pass through NATs/firewalls. | |
Enumerations | |
enum | _LinphoneAuthMethod { LinphoneAuthHttpDigest = 0, LinphoneAuthTls = 1 } |
Enum describing the authentication methods. More... | |
enum | _LinphoneFirewallPolicy { LinphonePolicyNoFirewall = 0, LinphonePolicyUseNatAddress = 1, LinphonePolicyUseStun = 2, LinphonePolicyUseIce = 3, LinphonePolicyUseUpnp = 4 } |
Policy to use to pass through firewalls. More... | |
enum | _LinphoneLimeState { LinphoneLimeDisabled = 0, LinphoneLimeMandatory = 1, LinphoneLimePreferred = 2 } |
Functions | |
bool_t | linphone_core_ipv6_enabled (LinphoneCore *core) |
Tells whether IPv6 is enabled or not. More... | |
void | linphone_core_enable_ipv6 (LinphoneCore *core, bool_t enable) |
Turns IPv6 support on or off. More... | |
bool_t | linphone_core_wifi_only_enabled (LinphoneCore *core) |
Tells whether Wifi only mode is enabled or not. More... | |
void | linphone_core_enable_wifi_only (LinphoneCore *core, bool_t enable) |
Turns Wifi only mode on or off. More... | |
int | linphone_core_get_audio_port (const LinphoneCore *core) |
Gets the UDP port used for audio streaming. More... | |
void | linphone_core_get_audio_port_range (const LinphoneCore *core, int *min_port, int *max_port) |
Get the audio port range from which is randomly chosen the UDP port used for audio streaming. More... | |
LinphoneRange * | linphone_core_get_audio_ports_range (const LinphoneCore *core) |
Get the audio port range from which is randomly chosen the UDP port used for audio streaming. More... | |
int | linphone_core_get_video_port (const LinphoneCore *core) |
Gets the UDP port used for video streaming. More... | |
void | linphone_core_get_video_port_range (const LinphoneCore *core, int *min_port, int *max_port) |
Get the video port range from which is randomly chosen the UDP port used for video streaming. More... | |
LinphoneRange * | linphone_core_get_video_ports_range (const LinphoneCore *core) |
Get the video port range from which is randomly chosen the UDP port used for video streaming. More... | |
int | linphone_core_get_text_port (const LinphoneCore *core) |
Gets the UDP port used for text streaming. More... | |
void | linphone_core_get_text_port_range (const LinphoneCore *core, int *min_port, int *max_port) |
Get the video port range from which is randomly chosen the UDP port used for text streaming. More... | |
LinphoneRange * | linphone_core_get_text_ports_range (const LinphoneCore *core) |
Get the text port range from which is randomly chosen the UDP port used for text streaming. More... | |
void | linphone_core_set_audio_port (LinphoneCore *core, int port) |
Sets the UDP port used for audio streaming. More... | |
void | linphone_core_set_video_port (LinphoneCore *core, int port) |
Sets the UDP port used for video streaming. More... | |
void | linphone_core_set_text_port (LinphoneCore *core, int port) |
Sets the UDP port used for text streaming. More... | |
LinphoneStatus | linphone_core_set_transports (LinphoneCore *core, const LinphoneTransports *transports) |
Sets the ports to be used for each of transport (UDP or TCP) A zero value port for a given transport means the transport is not used. More... | |
LinphoneTransports * | linphone_core_get_transports (LinphoneCore *core) |
Retrieves the port configuration used for each transport (udp, tcp, tls). More... | |
LinphoneTransports * | linphone_core_get_transports_used (LinphoneCore *core) |
Retrieves the real port number assigned for each sip transport (udp, tcp, tls). More... | |
LinphoneTransports * | linphone_transports_ref (LinphoneTransports *transports) |
Increment refcount. More... | |
void | linphone_transports_unref (LinphoneTransports *transports) |
Decrement refcount and possibly free the object. More... | |
void * | linphone_transports_get_user_data (const LinphoneTransports *transports) |
Gets the user data in the LinphoneTransports object. More... | |
void | linphone_transports_set_user_data (LinphoneTransports *transports, void *user_data) |
Sets the user data in the LinphoneTransports object. More... | |
int | linphone_transports_get_udp_port (const LinphoneTransports *transports) |
Gets the UDP port in the LinphoneTransports object. More... | |
int | linphone_transports_get_tcp_port (const LinphoneTransports *transports) |
Gets the TCP port in the LinphoneTransports object. More... | |
int | linphone_transports_get_tls_port (const LinphoneTransports *transports) |
Gets the TLS port in the LinphoneTransports object. More... | |
int | linphone_transports_get_dtls_port (const LinphoneTransports *transports) |
Gets the DTLS port in the LinphoneTransports object. More... | |
void | linphone_transports_set_udp_port (LinphoneTransports *transports, int port) |
Sets the UDP port in the LinphoneTransports object. More... | |
void | linphone_transports_set_tcp_port (LinphoneTransports *transports, int port) |
Sets the TCP port in the LinphoneTransports object. More... | |
void | linphone_transports_set_tls_port (LinphoneTransports *transports, int port) |
Sets the TLS port in the LinphoneTransports object. More... | |
void | linphone_transports_set_dtls_port (LinphoneTransports *transports, int port) |
Sets the DTLS port in the LinphoneTransports object. More... | |
void | linphone_core_set_stun_server (LinphoneCore *core, const char *server) |
Set the STUN server address to use when the firewall policy is set to STUN. More... | |
const char * | linphone_core_get_stun_server (const LinphoneCore *core) |
Get the STUN server address being used. More... | |
bool_t | linphone_core_upnp_available (void) |
Return the availability of uPnP. More... | |
LinphoneUpnpState | linphone_core_get_upnp_state (const LinphoneCore *core) |
Return the internal state of uPnP. More... | |
const char * | linphone_core_get_upnp_external_ipaddress (const LinphoneCore *core) |
Return the external ip address of router. More... | |
MS2_DEPRECATED void | linphone_core_set_nat_address (LinphoneCore *core, const char *addr) |
Deprecated. More... | |
MS2_DEPRECATED const char * | linphone_core_get_nat_address (const LinphoneCore *core) |
Deprecated. More... | |
void | linphone_core_set_nat_policy (LinphoneCore *core, LinphoneNatPolicy *policy) |
Set the policy to use to pass through NATs/firewalls. More... | |
void | linphone_core_enable_forced_ice_relay (LinphoneCore *core, bool_t enable) |
Artificially cause the relay path to be selected when ICE is used. More... | |
bool_t | linphone_core_forced_ice_relay_enabled (const LinphoneCore *core) |
Indicates whether the ICE relay path is forcibly selected. More... | |
LinphoneNatPolicy * | linphone_core_get_nat_policy (const LinphoneCore *core) |
Get The policy that is used to pass through NATs/firewalls. More... | |
void | linphone_core_set_network_reachable (LinphoneCore *core, bool_t reachable) |
This method is called by the application to notify the linphone core library when network is reachable. More... | |
bool_t | linphone_core_is_network_reachable (LinphoneCore *core) |
return network state either as positioned by the application or by linphone itself. More... | |
void | linphone_core_set_sip_network_reachable (LinphoneCore *core, bool_t reachable) |
This method is called by the application to notify the linphone core library when the SIP network is reachable. More... | |
void | linphone_core_set_media_network_reachable (LinphoneCore *core, bool_t reachable) |
This method is called by the application to notify the linphone core library when the media (RTP) network is reachable. More... | |
void | linphone_core_enable_keep_alive (LinphoneCore *core, bool_t enable) |
Enables signaling keep alive, small udp packet sent periodically to keep udp NAT association. More... | |
bool_t | linphone_core_keep_alive_enabled (LinphoneCore *core) |
Is signaling keep alive enabled. More... | |
void | linphone_core_set_sip_dscp (LinphoneCore *core, int dscp) |
Set the DSCP field for SIP signaling channel. More... | |
int | linphone_core_get_sip_dscp (const LinphoneCore *core) |
Get the DSCP field for SIP signaling channel. More... | |
void | linphone_core_set_audio_dscp (LinphoneCore *core, int dscp) |
Set the DSCP field for outgoing audio streams. More... | |
int | linphone_core_get_audio_dscp (const LinphoneCore *core) |
Get the DSCP field for outgoing audio streams. More... | |
void | linphone_core_set_video_dscp (LinphoneCore *core, int dscp) |
Set the DSCP field for outgoing video streams. More... | |
int | linphone_core_get_video_dscp (const LinphoneCore *core) |
Get the DSCP field for outgoing video streams. More... | |
void | linphone_core_enable_sdp_200_ack (LinphoneCore *core, bool_t enable) |
Control when media offer is sent in SIP INVITE. More... | |
bool_t | linphone_core_sdp_200_ack_enabled (const LinphoneCore *core) |
Media offer control param for SIP INVITE. More... | |
void | linphone_core_realtime_text_set_keepalive_interval (LinphoneCore *core, unsigned int interval) |
Set keep alive interval for real time text. More... | |
void | linphone_core_set_http_proxy_host (LinphoneCore *core, const char *host) |
Set http proxy address to be used for signaling during next channel connection. More... | |
void | linphone_core_set_http_proxy_port (LinphoneCore *core, int port) |
Set http proxy port to be used for signaling. More... | |
bool_t | linphone_core_automatic_http_proxy_detection_enabled (const LinphoneCore *core) |
Returns whether automatic http proxy is enabled. More... | |
void | linphone_core_enable_automatic_http_proxy_detection (LinphoneCore *lc, bool_t enable) |
Enables or disables automatic http proxy detection. More... | |
const char * | linphone_core_get_http_proxy_host (const LinphoneCore *core) |
Get http proxy address to be used for signaling. More... | |
int | linphone_core_get_http_proxy_port (const LinphoneCore *core) |
Get http proxy port to be used for signaling. More... | |
void | linphone_core_set_tls_cert (LinphoneCore *core, const char *tls_cert) |
Sets a TLS certificate used for TLS authentication The certificate won't be stored, you have to set it after each LinphoneCore startup. More... | |
void | linphone_core_set_tls_key (LinphoneCore *core, const char *tls_key) |
Sets a TLS key used for TLS authentication The key won't be stored, you have to set it after each LinphoneCore startup. More... | |
void | linphone_core_set_tls_cert_path (LinphoneCore *core, const char *tls_cert_path) |
Sets a TLS certificate path used for TLS authentication The path will be stored in the rc file and automatically restored on startup. More... | |
void | linphone_core_set_tls_key_path (LinphoneCore *core, const char *tls_key_path) |
Sets a TLS key path used for TLS authentication The path will be stored in the rc file and automatically restored on startup. More... | |
const char * | linphone_core_get_tls_cert (const LinphoneCore *core) |
Gets the TLS certificate. More... | |
const char * | linphone_core_get_tls_key (const LinphoneCore *core) |
Gets the TLS key. More... | |
const char * | linphone_core_get_tls_cert_path (const LinphoneCore *core) |
Gets the path to the TLS certificate file. More... | |
const char * | linphone_core_get_tls_key_path (const LinphoneCore *core) |
Gets the path to the TLS key file. More... | |
LinphoneNatPolicy * | linphone_core_create_nat_policy (LinphoneCore *core) |
Create a new LinphoneNatPolicy object with every policies being disabled. More... | |
MS2_DEPRECATED void | linphone_core_set_sip_port (LinphoneCore *core, int port) |
Sets the UDP port to be used by SIP. More... | |
MS2_DEPRECATED int | linphone_core_get_sip_port (LinphoneCore *core) |
Gets the UDP port used by SIP. More... | |
MS2_DEPRECATED LinphoneStatus | linphone_core_set_sip_transports (LinphoneCore *core, const LinphoneSipTransports *transports) |
Sets the ports to be used for each of transport (UDP or TCP) A zero value port for a given transport means the transport is not used. More... | |
MS2_DEPRECATED LinphoneStatus | linphone_core_get_sip_transports (LinphoneCore *core, LinphoneSipTransports *transports) |
Retrieves the port configuration used for each transport (udp, tcp, tls). More... | |
MS2_DEPRECATED void | linphone_core_get_sip_transports_used (LinphoneCore *core, LinphoneSipTransports *tr) |
Retrieves the real port number assigned for each sip transport (udp, tcp, tls). More... | |
MS2_DEPRECATED void | linphone_core_set_firewall_policy (LinphoneCore *core, LinphoneFirewallPolicy pol) |
Set the policy to use to pass through firewalls. More... | |
MS2_DEPRECATED LinphoneFirewallPolicy | linphone_core_get_firewall_policy (const LinphoneCore *core) |
Get the policy that is used to pass through firewalls. More... | |
LinphoneNatPolicy * | linphone_nat_policy_clone (const LinphoneNatPolicy *other) |
Clone an existing LinphoneNatPolicy object. More... | |
LinphoneNatPolicy * | linphone_nat_policy_ref (LinphoneNatPolicy *policy) |
Acquire a reference to the LinphoneNatPolicy object. More... | |
void | linphone_nat_policy_unref (LinphoneNatPolicy *policy) |
Release reference to the LinphoneNatPolicy object. More... | |
void * | linphone_nat_policy_get_user_data (const LinphoneNatPolicy *policy) |
Retrieve the user pointer associated with the LinphoneNatPolicy object. More... | |
void | linphone_nat_policy_set_user_data (LinphoneNatPolicy *policy, void *user_data) |
Assign a user pointer to the LinphoneNatPolicy object. More... | |
void | linphone_nat_policy_clear (LinphoneNatPolicy *policy) |
Clear a NAT policy (deactivate all protocols and unset the STUN server). More... | |
bool_t | linphone_nat_policy_stun_enabled (const LinphoneNatPolicy *policy) |
Tell whether STUN is enabled. More... | |
void | linphone_nat_policy_enable_stun (LinphoneNatPolicy *policy, bool_t enable) |
Enable STUN. More... | |
bool_t | linphone_nat_policy_turn_enabled (const LinphoneNatPolicy *policy) |
Tell whether TURN is enabled. More... | |
void | linphone_nat_policy_enable_turn (LinphoneNatPolicy *policy, bool_t enable) |
Enable TURN. More... | |
bool_t | linphone_nat_policy_ice_enabled (const LinphoneNatPolicy *policy) |
Tell whether ICE is enabled. More... | |
void | linphone_nat_policy_enable_ice (LinphoneNatPolicy *policy, bool_t enable) |
Enable ICE. More... | |
bool_t | linphone_nat_policy_upnp_enabled (const LinphoneNatPolicy *policy) |
Tell whether uPnP is enabled. More... | |
void | linphone_nat_policy_enable_upnp (LinphoneNatPolicy *policy, bool_t enable) |
Enable uPnP. More... | |
const char * | linphone_nat_policy_get_stun_server (const LinphoneNatPolicy *policy) |
Get the STUN/TURN server to use with this NAT policy. More... | |
void | linphone_nat_policy_set_stun_server (LinphoneNatPolicy *policy, const char *stun_server) |
Set the STUN/TURN server to use with this NAT policy. More... | |
const char * | linphone_nat_policy_get_nat_v4_address (const LinphoneNatPolicy *policy) |
Get the mandatory v4 IP address to use with this NAT policy as server-reflexive candidate for ICE. More... | |
void | linphone_nat_policy_set_nat_v4_address (LinphoneNatPolicy *policy, const char *v4_address) |
Set the mandatory v4 IP address to use with this NAT policy as server-reflexive candidate for ICE. More... | |
const char * | linphone_nat_policy_get_nat_v6_address (const LinphoneNatPolicy *policy) |
Get the mandatory v6 IP address to use with this NAT policy as server-reflexive candidate for ICE. More... | |
void | linphone_nat_policy_set_nat_v6_address (LinphoneNatPolicy *policy, const char *v4_address) |
Set the mandatory v6 IP address to use with this NAT policy as server-reflexive candidate for ICE. More... | |
const char * | linphone_nat_policy_get_stun_server_username (const LinphoneNatPolicy *policy) |
Get the username used to authenticate with the STUN/TURN server. More... | |
void | linphone_nat_policy_set_stun_server_username (LinphoneNatPolicy *policy, const char *username) |
Set the username used to authenticate with the STUN/TURN server. More... | |
void | linphone_nat_policy_resolve_stun_server (LinphoneNatPolicy *policy) |
Start a STUN server DNS resolution. More... | |
const struct addrinfo * | linphone_nat_policy_get_stun_server_addrinfo (LinphoneNatPolicy *policy) |
Get the addrinfo representation of the STUN server address. More... | |
void | linphone_nat_policy_enable_udp_turn_transport (LinphoneNatPolicy *policy, bool_t enable) |
Enable UDP TURN transport. More... | |
bool_t | linphone_nat_policy_udp_turn_transport_enabled (const LinphoneNatPolicy *policy) |
Tells whether UDP TURN transport is enabled. More... | |
void | linphone_nat_policy_enable_tcp_turn_transport (LinphoneNatPolicy *policy, bool_t enable) |
Enable TCP TURN transport. More... | |
bool_t | linphone_nat_policy_tcp_turn_transport_enabled (const LinphoneNatPolicy *policy) |
Tells whether TCP TURN transport is enabled. More... | |
void | linphone_nat_policy_enable_tls_turn_transport (LinphoneNatPolicy *policy, bool_t enable) |
Enable TLS TURN transport. More... | |
bool_t | linphone_nat_policy_tls_turn_transport_enabled (const LinphoneNatPolicy *policy) |
Tells whether TLS TURN transport is enabled. More... | |
LinphoneCore * | linphone_nat_policy_get_core (const LinphoneNatPolicy *policy) |
Returns the LinphoneCore object managing this nat policy, if any. More... | |
Controlling network parameters (ports, mtu...).
typedef enum _LinphoneFirewallPolicy LinphoneFirewallPolicy |
Policy to use to pass through firewalls.
enum _LinphoneAuthMethod |
Policy to use to pass through firewalls.
enum _LinphoneLimeState |
bool_t linphone_core_automatic_http_proxy_detection_enabled | ( | const LinphoneCore * | core | ) |
Returns whether automatic http proxy is enabled.
core | LinphoneCore object |
LinphoneNatPolicy* linphone_core_create_nat_policy | ( | LinphoneCore * | core | ) |
Create a new LinphoneNatPolicy object with every policies being disabled.
core | LinphoneCore object |
void linphone_core_enable_automatic_http_proxy_detection | ( | LinphoneCore * | lc, |
bool_t | enable | ||
) |
Enables or disables automatic http proxy detection.
core | LinphoneCore object |
enable | TRUE if automatic http proxy is enabled or FALSE. |
void linphone_core_enable_forced_ice_relay | ( | LinphoneCore * | core, |
bool_t | enable | ||
) |
Artificially cause the relay path to be selected when ICE is used.
This is mainly a function for test, for example to validate that the relay service (ever TURN or media-aware SIP proxy) is working as expected. Indeed, in many cases a path through host or server reflexive candidate will be found by ICE, which makes difficult to make sure that the relay service is working as expected.
[in] | lc | LinphoneCore object |
[in] | enable | boolean value |
void linphone_core_enable_ipv6 | ( | LinphoneCore * | core, |
bool_t | enable | ||
) |
Turns IPv6 support on or off.
core | LinphoneCore object |
enable | A boolean value telling whether to enable IPv6 support |
void linphone_core_enable_keep_alive | ( | LinphoneCore * | core, |
bool_t | enable | ||
) |
Enables signaling keep alive, small udp packet sent periodically to keep udp NAT association.
core | LinphoneCore object |
enable | A boolean value telling whether signaling keep alive is to be enabled |
void linphone_core_enable_sdp_200_ack | ( | LinphoneCore * | core, |
bool_t | enable | ||
) |
Control when media offer is sent in SIP INVITE.
core | the LinphoneCore object |
enable | true if INVITE has to be sent whitout SDP. |
void linphone_core_enable_wifi_only | ( | LinphoneCore * | core, |
bool_t | enable | ||
) |
Turns Wifi only mode on or off.
If enabled, app won't register when active network isn't WiFi or Ethernet.
core | LinphoneCore object |
enable | A boolean value telling whether to enable IPv6 support |
bool_t linphone_core_forced_ice_relay_enabled | ( | const LinphoneCore * | core | ) |
Indicates whether the ICE relay path is forcibly selected.
[in] | lc | LinphoneCore object |
int linphone_core_get_audio_dscp | ( | const LinphoneCore * | core | ) |
Get the DSCP field for outgoing audio streams.
The DSCP defines the quality of service in IP packets.
core | LinphoneCore object |
int linphone_core_get_audio_port | ( | const LinphoneCore * | core | ) |
Gets the UDP port used for audio streaming.
core | LinphoneCore object |
void linphone_core_get_audio_port_range | ( | const LinphoneCore * | core, |
int * | min_port, | ||
int * | max_port | ||
) |
Get the audio port range from which is randomly chosen the UDP port used for audio streaming.
core | LinphoneCore object | |
[out] | min_port | The lower bound of the audio port range being used |
[out] | max_port | The upper bound of the audio port range being used |
LinphoneRange* linphone_core_get_audio_ports_range | ( | const LinphoneCore * | core | ) |
Get the audio port range from which is randomly chosen the UDP port used for audio streaming.
core | LinphoneCore object |
MS2_DEPRECATED LinphoneFirewallPolicy linphone_core_get_firewall_policy | ( | const LinphoneCore * | core | ) |
Get the policy that is used to pass through firewalls.
core | LinphoneCore object. |
const char* linphone_core_get_http_proxy_host | ( | const LinphoneCore * | core | ) |
Get http proxy address to be used for signaling.
core | LinphoneCore object |
int linphone_core_get_http_proxy_port | ( | const LinphoneCore * | core | ) |
Get http proxy port to be used for signaling.
core | LinphoneCore object |
MS2_DEPRECATED const char* linphone_core_get_nat_address | ( | const LinphoneCore * | core | ) |
Deprecated.
Get the public IP address of NAT being used.
core | LinphoneCore object. |
LinphoneNatPolicy* linphone_core_get_nat_policy | ( | const LinphoneCore * | core | ) |
Get The policy that is used to pass through NATs/firewalls.
It may be overridden by a NAT policy for a specific proxy config.
core | LinphoneCore object |
int linphone_core_get_sip_dscp | ( | const LinphoneCore * | core | ) |
Get the DSCP field for SIP signaling channel.
The DSCP defines the quality of service in IP packets.
core | LinphoneCore object |
MS2_DEPRECATED int linphone_core_get_sip_port | ( | LinphoneCore * | core | ) |
Gets the UDP port used by SIP.
core | LinphoneCore object |
MS2_DEPRECATED LinphoneStatus linphone_core_get_sip_transports | ( | LinphoneCore * | core, |
LinphoneSipTransports * | transports | ||
) |
Retrieves the port configuration used for each transport (udp, tcp, tls).
A zero value port for a given transport means the transport is not used. A value of LC_SIP_TRANSPORT_RANDOM (-1) means the port is to be chosen randomly by the system.
core | LinphoneCore object | |
[out] | transports | A #LinphoneSipTransports structure that will receive the configured ports |
MS2_DEPRECATED void linphone_core_get_sip_transports_used | ( | LinphoneCore * | core, |
LinphoneSipTransports * | tr | ||
) |
Retrieves the real port number assigned for each sip transport (udp, tcp, tls).
A zero value means that the transport is not activated. If LC_SIP_TRANSPORT_RANDOM was passed to linphone_core_set_sip_transports(), the random port choosed by the system is returned.
core | LinphoneCore object | |
[out] | tr | A #LinphoneSipTransports structure that will receive the ports being used |
const char* linphone_core_get_stun_server | ( | const LinphoneCore * | core | ) |
Get the STUN server address being used.
core | LinphoneCore object |
int linphone_core_get_text_port | ( | const LinphoneCore * | core | ) |
Gets the UDP port used for text streaming.
core | LinphoneCore object |
void linphone_core_get_text_port_range | ( | const LinphoneCore * | core, |
int * | min_port, | ||
int * | max_port | ||
) |
Get the video port range from which is randomly chosen the UDP port used for text streaming.
core | LinphoneCore object | |
[out] | min_port | The lower bound of the text port range being used |
[out] | max_port | The upper bound of the text port range being used |
LinphoneRange* linphone_core_get_text_ports_range | ( | const LinphoneCore * | core | ) |
Get the text port range from which is randomly chosen the UDP port used for text streaming.
core | LinphoneCore object |
const char* linphone_core_get_tls_cert | ( | const LinphoneCore * | core | ) |
Gets the TLS certificate.
core | LinphoneCore object |
const char* linphone_core_get_tls_cert_path | ( | const LinphoneCore * | core | ) |
Gets the path to the TLS certificate file.
core | LinphoneCore object |
const char* linphone_core_get_tls_key | ( | const LinphoneCore * | core | ) |
const char* linphone_core_get_tls_key_path | ( | const LinphoneCore * | core | ) |
Gets the path to the TLS key file.
core | LinphoneCore object |
LinphoneTransports* linphone_core_get_transports | ( | LinphoneCore * | core | ) |
Retrieves the port configuration used for each transport (udp, tcp, tls).
A zero value port for a given transport means the transport is not used. A value of LC_SIP_TRANSPORT_RANDOM (-1) means the port is to be chosen randomly by the system. A value of LC_SIP_TRANSPORT_DONTBIND (-2) means that the socket will not be bound explicitely, in other words liblinphone won't listen for incoming connections at all. This mode is suitable for a pure client application (ex: a mobile application).
core | LinphoneCore object |
LinphoneTransports* linphone_core_get_transports_used | ( | LinphoneCore * | core | ) |
Retrieves the real port number assigned for each sip transport (udp, tcp, tls).
A zero value means that the transport is not activated. If LC_SIP_TRANSPORT_RANDOM was passed to linphone_core_set_sip_transports(), the random port choosed by the system is returned.
core | LinphoneCore object |
const char* linphone_core_get_upnp_external_ipaddress | ( | const LinphoneCore * | core | ) |
Return the external ip address of router.
In some cases the uPnP can have an external ip address but not a usable uPnP (state different of Ok).
core | LinphoneCore |
LinphoneUpnpState linphone_core_get_upnp_state | ( | const LinphoneCore * | core | ) |
int linphone_core_get_video_dscp | ( | const LinphoneCore * | core | ) |
Get the DSCP field for outgoing video streams.
The DSCP defines the quality of service in IP packets.
core | LinphoneCore object |
int linphone_core_get_video_port | ( | const LinphoneCore * | core | ) |
Gets the UDP port used for video streaming.
core | LinphoneCore object |
void linphone_core_get_video_port_range | ( | const LinphoneCore * | core, |
int * | min_port, | ||
int * | max_port | ||
) |
Get the video port range from which is randomly chosen the UDP port used for video streaming.
core | LinphoneCore object | |
[out] | min_port | The lower bound of the video port range being used |
[out] | max_port | The upper bound of the video port range being used |
LinphoneRange* linphone_core_get_video_ports_range | ( | const LinphoneCore * | core | ) |
Get the video port range from which is randomly chosen the UDP port used for video streaming.
core | LinphoneCore object |
bool_t linphone_core_ipv6_enabled | ( | LinphoneCore * | core | ) |
Tells whether IPv6 is enabled or not.
core | LinphoneCore object |
bool_t linphone_core_is_network_reachable | ( | LinphoneCore * | core | ) |
return network state either as positioned by the application or by linphone itself.
core | the LinphoneCore object |
bool_t linphone_core_keep_alive_enabled | ( | LinphoneCore * | core | ) |
Is signaling keep alive enabled.
core | LinphoneCore object |
void linphone_core_realtime_text_set_keepalive_interval | ( | LinphoneCore * | core, |
unsigned int | interval | ||
) |
Set keep alive interval for real time text.
core | LinphoneCore object |
interval | The keep alive interval of real time text, 25000 by default. |
bool_t linphone_core_sdp_200_ack_enabled | ( | const LinphoneCore * | core | ) |
Media offer control param for SIP INVITE.
core | the LinphoneCore object |
void linphone_core_set_audio_dscp | ( | LinphoneCore * | core, |
int | dscp | ||
) |
Set the DSCP field for outgoing audio streams.
The DSCP defines the quality of service in IP packets.
core | LinphoneCore object |
dscp | The DSCP value to set |
void linphone_core_set_audio_port | ( | LinphoneCore * | core, |
int | port | ||
) |
Sets the UDP port used for audio streaming.
A value of -1 will request the system to allocate the local port randomly. This is recommended in order to avoid firewall warnings.
core | LinphoneCore object |
port | The UDP port to use for audio streaming |
MS2_DEPRECATED void linphone_core_set_firewall_policy | ( | LinphoneCore * | core, |
LinphoneFirewallPolicy | pol | ||
) |
Set the policy to use to pass through firewalls.
core | LinphoneCore object. |
pol | The LinphoneFirewallPolicy to use. |
void linphone_core_set_http_proxy_host | ( | LinphoneCore * | core, |
const char * | host | ||
) |
Set http proxy address to be used for signaling during next channel connection.
Use linphone_core_set_network_reachable() FASLE/TRUE to force channel restart.
core | LinphoneCore object |
host | Hostname of IP adress of the http proxy (can be NULL to disable). |
void linphone_core_set_http_proxy_port | ( | LinphoneCore * | core, |
int | port | ||
) |
Set http proxy port to be used for signaling.
core | LinphoneCore object |
port | of the http proxy. |
void linphone_core_set_media_network_reachable | ( | LinphoneCore * | core, |
bool_t | reachable | ||
) |
This method is called by the application to notify the linphone core library when the media (RTP) network is reachable.
This is for advanced usage, when SIP and RTP layers are required to use different interfaces. Most applications just need linphone_core_set_network_reachable().
core | the LinphoneCore object |
reachable | TRUE if network is reachable, FALSE otherwise |
MS2_DEPRECATED void linphone_core_set_nat_address | ( | LinphoneCore * | core, |
const char * | addr | ||
) |
Deprecated.
This function was used to force a given IP address to appear in SDP. Unfortunately, this cannot work as explained by https://www.rfc-editor.org/rfc/rfc5389#section-2 .
core | LinphoneCore object. |
addr | The public IP address of NAT to use. |
void linphone_core_set_nat_policy | ( | LinphoneCore * | core, |
LinphoneNatPolicy * | policy | ||
) |
Set the policy to use to pass through NATs/firewalls.
It may be overridden by a NAT policy for a specific proxy config.
core | LinphoneCore object |
policy | LinphoneNatPolicy object |
void linphone_core_set_network_reachable | ( | LinphoneCore * | core, |
bool_t | reachable | ||
) |
This method is called by the application to notify the linphone core library when network is reachable.
Calling this method with true trigger linphone to initiate a registration process for all proxies. Calling this method disables the automatic network detection mode. It means you must call this method after each network state changes.
core | the LinphoneCore object |
reachable | TRUE if network is reachable, FALSE otherwise |
void linphone_core_set_sip_dscp | ( | LinphoneCore * | core, |
int | dscp | ||
) |
Set the DSCP field for SIP signaling channel.
The DSCP defines the quality of service in IP packets.
core | LinphoneCore object |
dscp | The DSCP value to set |
void linphone_core_set_sip_network_reachable | ( | LinphoneCore * | core, |
bool_t | reachable | ||
) |
This method is called by the application to notify the linphone core library when the SIP network is reachable.
This is for advanced usage, when SIP and RTP layers are required to use different interfaces. Most applications just need linphone_core_set_network_reachable().
core | the LinphoneCore object |
reachable | TRUE if network is reachable, FALSE otherwise |
MS2_DEPRECATED void linphone_core_set_sip_port | ( | LinphoneCore * | core, |
int | port | ||
) |
Sets the UDP port to be used by SIP.
core | LinphoneCore object |
port | The UDP port to be used by SIP |
MS2_DEPRECATED LinphoneStatus linphone_core_set_sip_transports | ( | LinphoneCore * | core, |
const LinphoneSipTransports * | transports | ||
) |
Sets the ports to be used for each of transport (UDP or TCP) A zero value port for a given transport means the transport is not used.
A value of LC_SIP_TRANSPORT_RANDOM (-1) means the port is to be choosen randomly by the system.
core | LinphoneCore object |
transports | A #LinphoneSipTransports structure giving the ports to use |
void linphone_core_set_stun_server | ( | LinphoneCore * | core, |
const char * | server | ||
) |
Set the STUN server address to use when the firewall policy is set to STUN.
core | LinphoneCore object |
server | The STUN server address to use. |
void linphone_core_set_text_port | ( | LinphoneCore * | core, |
int | port | ||
) |
Sets the UDP port used for text streaming.
A value if -1 will request the system to allocate the local port randomly. This is recommended in order to avoid firewall warnings.
core | LinphoneCore object |
port | The UDP port to use for text streaming |
void linphone_core_set_tls_cert | ( | LinphoneCore * | core, |
const char * | tls_cert | ||
) |
Sets a TLS certificate used for TLS authentication The certificate won't be stored, you have to set it after each LinphoneCore startup.
core | LinphoneCore object |
tls_cert | the TLS certificate. |
void linphone_core_set_tls_cert_path | ( | LinphoneCore * | core, |
const char * | tls_cert_path | ||
) |
Sets a TLS certificate path used for TLS authentication The path will be stored in the rc file and automatically restored on startup.
core | LinphoneCore object |
tls_cert_path | path to the TLS certificate. |
void linphone_core_set_tls_key | ( | LinphoneCore * | core, |
const char * | tls_key | ||
) |
Sets a TLS key used for TLS authentication The key won't be stored, you have to set it after each LinphoneCore startup.
core | LinphoneCore object |
tls_key | the TLS key. |
void linphone_core_set_tls_key_path | ( | LinphoneCore * | core, |
const char * | tls_key_path | ||
) |
Sets a TLS key path used for TLS authentication The path will be stored in the rc file and automatically restored on startup.
core | LinphoneCore object |
tls_key_path | path to the TLS key. |
LinphoneStatus linphone_core_set_transports | ( | LinphoneCore * | core, |
const LinphoneTransports * | transports | ||
) |
Sets the ports to be used for each of transport (UDP or TCP) A zero value port for a given transport means the transport is not used.
A value of LC_SIP_TRANSPORT_RANDOM (-1) means the port is to be choosen randomly by the system. A value of LC_SIP_TRANSPORT_DONTBIND (-2) means that the socket will not be bound explicitely, in other words liblinphone won't listen for incoming connections at all. This mode is suitable for a pure client application (ex: a mobile application).
core | LinphoneCore object |
transports | A #LinphoneSipTransports structure giving the ports to use |
void linphone_core_set_video_dscp | ( | LinphoneCore * | core, |
int | dscp | ||
) |
Set the DSCP field for outgoing video streams.
The DSCP defines the quality of service in IP packets.
core | LinphoneCore object |
dscp | The DSCP value to set |
void linphone_core_set_video_port | ( | LinphoneCore * | core, |
int | port | ||
) |
Sets the UDP port used for video streaming.
A value of -1 will request the system to allocate the local port randomly. This is recommended in order to avoid firewall warnings.
core | LinphoneCore object |
port | The UDP port to use for video streaming |
bool_t linphone_core_upnp_available | ( | void | ) |
Return the availability of uPnP.
bool_t linphone_core_wifi_only_enabled | ( | LinphoneCore * | core | ) |
Tells whether Wifi only mode is enabled or not.
core | LinphoneCore object |
void linphone_nat_policy_clear | ( | LinphoneNatPolicy * | policy | ) |
Clear a NAT policy (deactivate all protocols and unset the STUN server).
policy | LinphoneNatPolicy object. |
LinphoneNatPolicy * linphone_nat_policy_clone | ( | const LinphoneNatPolicy * | other | ) |
Clone an existing LinphoneNatPolicy object.
Clone a LinphoneNatPolicy object.
policy | LinphoneNatPolicy object. |
policy | LinphoneNatPolicy object. |
void linphone_nat_policy_enable_ice | ( | LinphoneNatPolicy * | policy, |
bool_t | enable | ||
) |
Enable ICE.
ICE can be enabled without STUN/TURN, in which case only the local candidates will be used.
policy | LinphoneNatPolicy object |
enable | Boolean value telling whether to enable ICE. |
void linphone_nat_policy_enable_stun | ( | LinphoneNatPolicy * | policy, |
bool_t | enable | ||
) |
Enable STUN.
If TURN is also enabled, TURN will be used instead of STUN.
policy | LinphoneNatPolicy object |
enable | Boolean value telling whether to enable STUN. |
void linphone_nat_policy_enable_tcp_turn_transport | ( | LinphoneNatPolicy * | policy, |
bool_t | enable | ||
) |
Enable TCP TURN transport.
Used when TURN is enabled.
policy | LinphoneNatPolicy object |
enable | Boolean value telling whether to enable TCP TURN transport. |
void linphone_nat_policy_enable_tls_turn_transport | ( | LinphoneNatPolicy * | policy, |
bool_t | enable | ||
) |
Enable TLS TURN transport.
Used when TURN is enabled.
policy | LinphoneNatPolicy object |
enable | Boolean value telling whether to enable TLS TURN transport. |
void linphone_nat_policy_enable_turn | ( | LinphoneNatPolicy * | policy, |
bool_t | enable | ||
) |
Enable TURN.
If STUN is also enabled, it is ignored and TURN is used.
policy | LinphoneNatPolicy object |
enable | Boolean value telling whether to enable TURN. |
void linphone_nat_policy_enable_udp_turn_transport | ( | LinphoneNatPolicy * | policy, |
bool_t | enable | ||
) |
Enable UDP TURN transport.
Used when TURN is enabled.
policy | LinphoneNatPolicy object |
enable | Boolean value telling whether to enable UDP TURN transport. |
void linphone_nat_policy_enable_upnp | ( | LinphoneNatPolicy * | policy, |
bool_t | enable | ||
) |
Enable uPnP.
This has the effect to disable every other policies (ICE, STUN and TURN).
policy | LinphoneNatPolicy object |
enable | Boolean value telling whether to enable uPnP. |
LinphoneCore* linphone_nat_policy_get_core | ( | const LinphoneNatPolicy * | policy | ) |
Returns the LinphoneCore object managing this nat policy, if any.
policy | LinphoneNatPolicy object |
const char* linphone_nat_policy_get_nat_v4_address | ( | const LinphoneNatPolicy * | policy | ) |
Get the mandatory v4 IP address to use with this NAT policy as server-reflexive candidate for ICE.
Used when STUN or TURN are enabled.
policy | LinphoneNatPolicy object |
const char* linphone_nat_policy_get_nat_v6_address | ( | const LinphoneNatPolicy * | policy | ) |
Get the mandatory v6 IP address to use with this NAT policy as server-reflexive candidate for ICE.
Used when STUN or TURN are enabled.
policy | LinphoneNatPolicy object |
const char* linphone_nat_policy_get_stun_server | ( | const LinphoneNatPolicy * | policy | ) |
Get the STUN/TURN server to use with this NAT policy.
Used when STUN or TURN are enabled.
policy | LinphoneNatPolicy object |
const struct addrinfo* linphone_nat_policy_get_stun_server_addrinfo | ( | LinphoneNatPolicy * | policy | ) |
Get the addrinfo representation of the STUN server address.
WARNING: This function may block for up to 1 second.
policy | LinphoneNatPolicy object |
const char* linphone_nat_policy_get_stun_server_username | ( | const LinphoneNatPolicy * | policy | ) |
Get the username used to authenticate with the STUN/TURN server.
The authentication will search for a LinphoneAuthInfo with this username. If it is not set the username of the currently used LinphoneProxyConfig is used to search for a LinphoneAuthInfo.
policy | LinphoneNatPolicy object |
void* linphone_nat_policy_get_user_data | ( | const LinphoneNatPolicy * | policy | ) |
Retrieve the user pointer associated with the LinphoneNatPolicy object.
policy | LinphoneNatPolicy object. |
bool_t linphone_nat_policy_ice_enabled | ( | const LinphoneNatPolicy * | policy | ) |
Tell whether ICE is enabled.
policy | LinphoneNatPolicy object |
LinphoneNatPolicy* linphone_nat_policy_ref | ( | LinphoneNatPolicy * | policy | ) |
Acquire a reference to the LinphoneNatPolicy object.
policy | LinphoneNatPolicy object. |
void linphone_nat_policy_resolve_stun_server | ( | LinphoneNatPolicy * | policy | ) |
Start a STUN server DNS resolution.
policy | LinphoneNatPolicy object |
void linphone_nat_policy_set_nat_v4_address | ( | LinphoneNatPolicy * | policy, |
const char * | v4_address | ||
) |
Set the mandatory v4 IP address to use with this NAT policy as server-reflexive candidate for ICE.
The IP address is used only if no stun server is set for server-reflexive candidate gathering. Using this method is useful when Liblinphone is used in a server product, when the server does not own the public IP address. Used when STUN or TURN are enabled.
policy | LinphoneNatPolicy object |
v4_address | The STUN server to use with this NAT policy. |
void linphone_nat_policy_set_nat_v6_address | ( | LinphoneNatPolicy * | policy, |
const char * | v4_address | ||
) |
Set the mandatory v6 IP address to use with this NAT policy as server-reflexive candidate for ICE.
The IP address is used only if no stun server is set for server-reflexive candidate gathering. Using this method is useful when Liblinphone is used in a server product, when the server does not own the public IP address. Used when STUN or TURN are enabled.
policy | LinphoneNatPolicy object |
v4_address | The STUN server to use with this NAT policy. |
void linphone_nat_policy_set_stun_server | ( | LinphoneNatPolicy * | policy, |
const char * | stun_server | ||
) |
Set the STUN/TURN server to use with this NAT policy.
Used when STUN or TURN are enabled.
policy | LinphoneNatPolicy object |
stun_server | The STUN server to use with this NAT policy. |
void linphone_nat_policy_set_stun_server_username | ( | LinphoneNatPolicy * | policy, |
const char * | username | ||
) |
Set the username used to authenticate with the STUN/TURN server.
The authentication will search for a LinphoneAuthInfo with this username. If it is not set the username of the currently used LinphoneProxyConfig is used to search for a LinphoneAuthInfo.
policy | LinphoneNatPolicy object |
username | The username used to authenticate with the STUN/TURN server. |
void linphone_nat_policy_set_user_data | ( | LinphoneNatPolicy * | policy, |
void * | user_data | ||
) |
Assign a user pointer to the LinphoneNatPolicy object.
policy | LinphoneNatPolicy object. |
user_data | The user pointer to associate with the LinphoneNatPolicy object. |
bool_t linphone_nat_policy_stun_enabled | ( | const LinphoneNatPolicy * | policy | ) |
Tell whether STUN is enabled.
policy | LinphoneNatPolicy object |
bool_t linphone_nat_policy_tcp_turn_transport_enabled | ( | const LinphoneNatPolicy * | policy | ) |
Tells whether TCP TURN transport is enabled.
Used when TURN is enabled.
policy | LinphoneNatPolicy object |
bool_t linphone_nat_policy_tls_turn_transport_enabled | ( | const LinphoneNatPolicy * | policy | ) |
Tells whether TLS TURN transport is enabled.
Used when TURN is enabled.
policy | LinphoneNatPolicy object |
bool_t linphone_nat_policy_turn_enabled | ( | const LinphoneNatPolicy * | policy | ) |
Tell whether TURN is enabled.
policy | LinphoneNatPolicy object |
bool_t linphone_nat_policy_udp_turn_transport_enabled | ( | const LinphoneNatPolicy * | policy | ) |
Tells whether UDP TURN transport is enabled.
Used when TURN is enabled.
policy | LinphoneNatPolicy object |
void linphone_nat_policy_unref | ( | LinphoneNatPolicy * | policy | ) |
Release reference to the LinphoneNatPolicy object.
policy | LinphoneNatPolicy object. |
bool_t linphone_nat_policy_upnp_enabled | ( | const LinphoneNatPolicy * | policy | ) |
Tell whether uPnP is enabled.
policy | LinphoneNatPolicy object |
int linphone_transports_get_dtls_port | ( | const LinphoneTransports * | transports | ) |
Gets the DTLS port in the LinphoneTransports object.
transports | the LinphoneTransports object |
int linphone_transports_get_tcp_port | ( | const LinphoneTransports * | transports | ) |
Gets the TCP port in the LinphoneTransports object.
transports | the LinphoneTransports object |
int linphone_transports_get_tls_port | ( | const LinphoneTransports * | transports | ) |
Gets the TLS port in the LinphoneTransports object.
transports | the LinphoneTransports object |
int linphone_transports_get_udp_port | ( | const LinphoneTransports * | transports | ) |
Gets the UDP port in the LinphoneTransports object.
transports | the LinphoneTransports object |
void* linphone_transports_get_user_data | ( | const LinphoneTransports * | transports | ) |
Gets the user data in the LinphoneTransports object.
transports | the LinphoneTransports |
LinphoneTransports* linphone_transports_ref | ( | LinphoneTransports * | transports | ) |
Increment refcount.
transports | LinphoneTransports object |
void linphone_transports_set_dtls_port | ( | LinphoneTransports * | transports, |
int | port | ||
) |
Sets the DTLS port in the LinphoneTransports object.
transports | the LinphoneTransports object |
port | the DTLS port |
void linphone_transports_set_tcp_port | ( | LinphoneTransports * | transports, |
int | port | ||
) |
Sets the TCP port in the LinphoneTransports object.
transports | the LinphoneTransports object |
port | the TCP port |
void linphone_transports_set_tls_port | ( | LinphoneTransports * | transports, |
int | port | ||
) |
Sets the TLS port in the LinphoneTransports object.
transports | the LinphoneTransports object |
port | the TLS port |
void linphone_transports_set_udp_port | ( | LinphoneTransports * | transports, |
int | port | ||
) |
Sets the UDP port in the LinphoneTransports object.
transports | the LinphoneTransports object |
port | the UDP port |
void linphone_transports_set_user_data | ( | LinphoneTransports * | transports, |
void * | user_data | ||
) |
Sets the user data in the LinphoneTransports object.
transports | the LinphoneTransports object |
user_data | the user data |
void linphone_transports_unref | ( | LinphoneTransports * | transports | ) |
Decrement refcount and possibly free the object.
transports | LinphoneTransports object |