Liblinphone 5.5.0
 
Loading...
Searching...
No Matches
Provisioning configuration keys

This document lists the supported sections and keys of the ini-style linphonerc configuration file.


This configuration can be served through https in order to remotely configure a linphone-sdk based application, see linphone_core_set_provisioning_uri().
The Flexisip Account Manager has built-in support for remote provisioning Linphone or linphone-sdk based client applications.

Warning
this page is under construction, not all section and keys are yet referenced.

SIP - section [sip]

The sip section represents a general configuration for SIP.

SIP parameters
KeyValue typePossible valuesDefault valueAPI Description
100rel_support_levelintegerLinphoneSupportLevelNoSupportlinphone_core_set_tag_100rel_support_level()

Defines what level of support is provided to the 100rel attribute.

auto_send_ringinginteger0 or 11linphone_core_auto_send_ringing_enabled()

Gets if the automatic sending of 180 Ringing is enabled or not.

automatic_http_proxy_detectioninteger0 or 10linphone_core_automatic_http_proxy_detection_enabled()

Returns whether automatic http proxy is enabled.

capability_negotiations_reinviteinteger0 or 11linphone_core_capability_negotiation_reinvite_enabled()

Checks if the capability negotiation (RFC5939) reINVITE is enabled or not.

cfg_lines_mergeinteger0 or 11linphone_core_cfg_lines_merging_enabled()

Checks if cfg lines are going to the merged if the capability negotiation (RFC5939) is supported or not.

client_cert_chainstringA path""linphone_core_set_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.

client_cert_keystringA key""linphone_core_set_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.

contactstringSIP URI (e.g. sip:user@host)""linphone_core_set_primary_contact()

Sets the local "from" SIP identity used for calls made out of any configured LinphoneAccount.

delayed_timeoutintegerseconds4linphone_core_set_delayed_timeout()

Set the in delayed timeout in seconds.

dscpintegerDSCP0linphone_core_set_sip_dscp()

Sets the DSCP field for SIP signaling channel.

enable_go_clearinteger0 or 10linphone_core_zrtp_go_clear_enabled()

Checks if the ZRTP go clear is enabled or not.

guess_hostnameinteger0 or 11linphone_core_set_guess_hostname()

Tells LinphoneCore to guess local hostname automatically in primary contact.

http_proxy_hoststringa hostname""linphone_core_set_http_proxy_host()

Sets http proxy address to be used for signaling during next channel connection.

http_proxy_portinteger0 - 655353128linphone_core_set_http_proxy_port()

Sets http proxy port to be used for signaling.

ice_enabledinteger0 or 11linphone_nat_policy_ice_enabled()

Tell whether ICE is enabled.

in_call_timeoutinteger0–86400 (s)0linphone_core_set_in_call_timeout()

Sets the maximum duration of a call in seconds.

inc_timeoutinteger0–300 (s)Android and IOS: 45. Else: 30linphone_core_set_inc_timeout()

Sets the incoming call timeout in seconds.

keepalive_periodinteger0–60000 (ms)30000linphone_core_keep_alive_enabled()

Is signaling keep alive enabled.

linphone_specsstring"groupchat/1.1"""linphone_core_set_linphone_specs_list()

Sets the linphone specs list value telling what functionalities the linphone client supports.

media_encryption_mandatoryinteger0 or 10linphone_core_is_media_encryption_mandatory()

Checks if the configured media encryption is mandatory or not.

media_encryptionstringnone, srtp, zrtpnonelinphone_core_set_media_encryption()

Chooses the media encryption type to be used for RTP packets.

push_incoming_call_timeoutintegerseconds15linphone_core_set_push_incoming_call_timeout()

Configures the minimum interval between a push notification and the corresponding incoming INVITE.

refresh_windowrangeRange of seconds90-90linphone_core_set_refresh_window()

Set the refresh window.

register_only_when_network_is_upinteger0 or 11linphone_core_set_register_only_when_network_is_up()

Sets if accounts will wait for network to be connected before trying to REGISTER.

root_castringa path""linphone_core_set_root_ca()

Sets the path to a file or folder containing trusted root CAs (PEM format)

sdp_200_ackinteger0 or 10linphone_core_sdp_200_ack_enabled()

Media offer control param for SIP INVITE.

session_expires_enabledinteger0 or 10linphone_core_session_expires_enabled()

Check if the Session Timers feature is enabled.

session_expires_min_valueintegerPositive number0linphone_core_set_session_expires_min_value()

Sets the session expires minSE value, forced to a minimum of 90 by default.

session_expires_refresher_valueintegerLinphoneSessionExpiresRefresherUnspecifiedlinphone_core_set_session_expires_refresher_value()

Sets the session expires refresher value.

session_expires_valueinteger0 or not lower than session_expires_min_value0linphone_core_set_session_expires_value()

Sets the session expires value, 0 by default.

sip_updateinteger0 or 11linphone_core_set_enable_sip_update()

Enable or disable the UPDATE method support.

srtp_crypto_suitesstringList"AEAD_AES_128_GCM, AES_CM_128_HMAC_SHA1_80, AEAD_AES_256_GCM, AES_256_CM_HMAC_SHA1_80"linphone_core_set_srtp_crypto_suites()

Sets the crypto suites available to the core.

stun_enabledinteger0 or 10linphone_nat_policy_stun_enabled()

Tell whether STUN is enabled.

stun_serverstringhostname or IP""linphone_nat_policy_set_stun_server()

Set the STUN/TURN server to use with this NAT policy.

support_capability_negotiationsinteger0 or 10linphone_core_capability_negociation_enabled()

Checks if the capability negotiation (RFC5939) is supported or not.

supportedstringTags"replaces, outbound, gruu, path"linphone_core_set_supported_tag()

Set the SIP supported tags.

tcap_line_mergeinteger0 or 10linphone_core_tcap_lines_merging_enabled()

Checks if tcap lines are going to the merged if the capability negotiation (RFC5939) is supported or not.

transport_timeoutintegerMilliseconds15000linphone_core_set_sip_transport_timeout()

Sets the SIP transport timeout, which represents the maximum time permitted to establish a connection to a SIP server.

use_infointeger0 or 10linphone_core_set_use_info_for_dtmf()

Sets whether SIP INFO method can be used to send digits.

use_ipv6integer0 or 10linphone_core_ipv6_enabled()

Tells whether IPv6 is enabled or not.

use_rfc2833integer0 or 11linphone_core_set_use_rfc2833_for_dtmf()

Sets whether RFC2833 or RFC4633 can be to be used to send digits.

user_agentstringA user-agentPACKAGE_NAME/LIBLINPHONE_VERSIONlinphone_core_set_user_agent()

Set the user agent string used in SIP messages.

verify_server_certsinteger0 or 11linphone_core_verify_server_certificates()

Specify whether the tls server certificate must be verified when connecting to a SIP/TLS server.

verify_server_cninteger0 or 11linphone_core_verify_server_cn()

Specify whether the tls server certificate common name must be verified when connecting to a SIP/TLS server.

zero_rtp_port_for_stream_inactiveinteger0 or 10linphone_core_zero_rtp_port_for_stream_inactive_enabled()

Checks if RTP port is set to 0 when a stream is inactive.

Show private variables
Private SIP parameters
KeyValue typePossible valuesDefault valueDescription
accounts_channel_isolationinteger0 or 10Restrict the use of connections for this op, see in belle-sip. Used for tests.
account_strict_matchinginteger0 or 10Only for tests. linphone_core_account_strict_matching_enabled()
answer_with_own_numberinginteger0 or 10Set answer with own numbering policy
auto_answer_replacing_callsinteger0 or 10Automatically answer replacing calls. Used for tests
auto_net_state_moninteger0 or 11Enable automatic network state monitoring
bind_addressstringIP address0.0.0.0Set listen address on SAL
bodyless_listsstringSIP URI separated by ','""Bodyless friend list
cnx_ip_to_0000_if_sendonly_enabledinteger0 or 10SalopenableCnxIpTo0000IfSendOnly()
default_proxyintegerAn index-1linphone_core_get_default_account_index()
disable_mediainteger0 or 10Disable media by ignoring SDP
force_name_addrinteger0 or 10belle_sip_stack_force_name_addr()
handle_content_encodingstringnone, deflate, ...deflateTells whether the given transport type is supported by the library..linphone_core_content_encoding_supported()
ipv6_migration_doneinteger0 or 10Internal usage to know if ipv6 migration has been done: it will clean use_ipv6
notify_all_ringingsinteger0 or 10SalOpsetNotifyAllRingings()
only_one_codecinteger0 or 10Set one codec policy
ping_pong_verificationinteger0 or 11Enable check with Ping-Pong. belle_sip_stack_ping_pong_verification_enabled()
ping_with_optionsinteger0 or 10Defer the start of the call after the OPTIONS ping for outgoing call or send an option request back to the caller so that we get a chance to discover our nat'd address before answering for incoming call
pong_timeoutintegerseconds10Pong Timeout. belle_sip_stack_get_pong_timeout()
prefer_ipv6integer0 or 11Set IPV6 preference on SAL. belle_sip_stack_get_ip_version_preference()
put_dateinteger0 or 10Use Date in SAL
reconnect_to_primary_asapinteger0 or 10Enable the reconnection to the primary server when it is up again asap. belle_sip_stack_reconnect_to_primary_asap_enabled()
refresher_retry_afterintegerMilliseconds60000sal_get_refresher_retry_after()
register_only_when_upnp_is_okinteger0 or 11Sets if accounts will wait for UPNP to be connected before trying to REGISTER.
save_auth_infointeger0 or 11if true, auth infos will be write in the config file when they are added to the list
sip_portinteger-2 - 65535Mac or Android:-2=Don't Bind. Else: 5060SIP listening port (UDP)
sip_random_portinteger0 or 10Legacy random mode. _linphone_core_get_sip_transports()
sip_tcp_portinteger-2 - 65535Mac or Android:-2=Don't Bind. Else: 5060SIP listening port (TCP)
sip_tls_portinteger-2 - 65535-1=RandomSIP listening port (TLS)
sip_tls_well_known_portinteger0 - 655355061The well known TLS port
sip_well_known_portinteger0 - 655355060The well known TCP/UDP port
srtpinteger0 or 1linphone_core_get_srtp_enabled(). Not used.
supported_encryptionslistList of encryptions""linphone_core_get_supported_media_encryptions()
tcp_tls_keepaliveintegermilliseconds30000SIP keep-alive interval on TLS.
tls_certificate_subject_regexpstringregex""the purpose of this handling is to a peer certificate for which there is no single subject matching the regexp given in the "tls_certificate_subject_regexp" property
unreliable_connection_timeoutintegerseconds120Set the time interval in seconds after which a connection is considered to be unreliable because no data was received over it. belle_sip_stack_set_unreliable_connection_timeout().
use_no_initial_routeinteger0 or 10Use no initial route
use_rportinteger0 or 11Use RPort
vfu_with_infointeger0 or 11Enable VFU request using SIP
Unverified variables

Audio - section [audio]

The audio section represents the audio configurations.

Audio parameters
KeyValue typePossible valuesDefault valueDescription
soundcardstringdevice namedefaultPlayback/record sound device
playback_gain_dbinteger-30 to +30 (dB)0Playback gain
mic_gain_dbinteger-30 to +30 (dB)0Microphone gain
echo_cancellationinteger0 or 11Acoustic echo cancellation
echo_limiterinteger0 or 11Echo limiter
adaptive_rate_controlinteger0 or 11Adaptive bitrate control
jitter_buffer_sizeinteger20–500 (ms)60Audio jitter buffer
codec_prioritystringcodec listopus,pcmu,pcmaAudio codec priority
use_filesinteger0 or 10Use audio files instead of devices
rtp_no_xmit_on_audio_muteinteger0 or 11Stop RTP when muted

Video - section [video]

The video section represents the video configuration.

Video parameters
KeyValue typePossible valuesDefault valueDescription
enabledinteger0 or 11Enable video
capturestringcamera namedefaultVideo capture device
displaystringdisplay namedefaultVideo display device
sizestringqcif, cif, vga, hd720vgaVideo resolution
framerateinteger1-60 (fps)30Video framerate
bitrateinteger64–10000 (kbps)1024Video bitrate
codec_prioritystringcodec listvp8,h264Video codec priority
auto_resizeinteger0 or 11Auto resize video
self_viewinteger0 or 11Show local preview

Network - section [network]

The network section represents the network configuration.

Network parameters
KeyValue typePossible valuesDefault valueDescription
mtuinteger576–15001300RTP MTU size
dns_serversstringIP list""Custom DNS servers
protocolTYPEudp, tcp, tlsudpDefault SIP transport
ipv6_enabledTYPE0 or 10Enable IPv6 networking

RTP - section [rtp]

The rtp section represents the RTP configuration.

RTP parameters
KeyValue typePossible valuesDefault valueDescription
audio_rtp_portinteger1024–655357078RTP audio base port
video_rtp_portinteger1024–655359078RTP video base port
symmetricinteger0 or 11Enable symmetric RTP
timeoutinteger0–300 (s)60RTP inactivity timeout
use_rtcpinteger0 or 11Enable RTCP

Encryption - section [encryption]

The encryption section represents the encryption configuration.

Encryption parameters
KeyValue typePossible valuesDefault valueDescription
srtp_enableTYPE0 or 10Enable SRTP
zrtp_enableTYPE0 or 10Enable ZRTP
zrtp_sas_validationTYPE0 or 10Require SAS validation

ICE - section [ice]

The ice section represents the ICE configuration.

ICE parameters
KeyValue typePossible valuesDefault valueDescription
enabledinteger0 or 11Enable ICE
prefer_ipv6integer0 or 10Prefer IPv6 candidates
timeoutinteger5–60 (s)20ICE gathering timeout
aggressive_nominationinteger0 or 11Aggressive ICE nomination

Miscellaneous - section [misc]

The misc section represents unspecific options.

Miscellaneous parameters
KeyValue typePossible valuesDefault valueDescription
log_levelinteger0-63Log verbosity
log_filestringfile path""Log output file
max_callsTYPE1-101Maximum simultaneous calls
user_agentTYPEa user agentLinphoneSDK/5.5SIP User-Agent
enable_timestampsinteger0 or 11Timestamp logs

Debug - section [debug]

The debug section represents the debug mode configuration.

Debug parameters
KeyValue typePossible valuesDefault valueDescription
enableinteger0 or 10Enable debug mode
sip_traceinteger0 or 10SIP message tracing
rtp_traceinteger0 or 10RTP packet tracing

SIP accounts - section [proxy_N]

The proxy_N sections represents SIP accounts.
Their name inherits from the legacy object name LinphoneProxyConfig in liblinphone, that is now superseeded by by the LinphoneAccount and LinphoneAccountParams object, but the linphonerc section name was left unchanged to preserve configuration file compatibility.

SIP account parameters
KeyValue typePossible valuesDefault valueDescription
reg_identitystringSIP address""The SIP address of the user, as to be sent in the From header of the REGISTER request
reg_proxystringSIP address""The address of the SIP server
reg_routestringSIP address""An optional SIP address to include as a route
reg_sendregisterboolean0 or 11Whether to send a REGISTER request
reg_expiresintegerany strictly positive integer3600The expiry of the REGISTER, in seconds
realmstringany string""The authentication realm of the SIP service, used to match with authentication information

Remote contact directories - section [remote_contact_directory_N]

Their role is not to present a permanent list of contacts to the user, but rather return, per a search request, a list of contacts that match the request.
The search request is transmitted through the protocol (LDAP or CardDav), and executed on the server. The server's response is analysed and search results are represented as a list of LinphoneFriend objects.
LDAP connection configuration has it is own password key, and it is not relying at all on the LinphoneAuthInfo objects, unlike all other liblinphone initiated connections.
Table remote contact directory parameters lists all remote contact directory parameters one may find under section [remote_contact_directory_N] of a Linphone RC file.

Remote Contact directory parameters
KeyValue typePossible valuesDefault valueDescription
enabledinteger0 or 11Whether the remote contact directory is enabled
typestringcarddav or ldap""The type (protocol) used by the remote contact directory
uristringa URI""The server URI, typically ldap://example.org or https://carddav.example.org
min_charactersintegerany positive integer or 03The minimum number of characters needed to submit the request
results_limitintegerany positive integer or 00Limit on the number of returned results. 0 means returns all results
timeoutintegerany positive integer or 05Request timeout in seconds
delayintegerany positive integer or 0500Delay in milliseconds before submitting the request
carddav_fields_for_user_inputstring""List of comma separated VCard fields to match with the user input
carddav_fields_for_domainstring""List of comma separated VCard fields to match for SIP domain
carddav_use_exact_match_policyinteger0 or 10Whether the match must be exact or approximate (ignoring accents, case, ...)
ldap_bind_dnstring""LDAP bind distinguished name
ldap_auth_methodinteger0: anonymous1LDAP authentication method
1: simple
ldap_base_objectstring""LDAP base object
ldap_name_attributestring"sn"LDAP attribute(s) to browse for contact names
ldap_sip_attributestring"mobile,telephonenumber,homephone,sn"LDAP attribute(s) to use to create SIP URIs associated with this remote contact directory
ldap_sip_domainstring""A SIP domain to filter results
ldap_filterstring"(sn=%s)"A LDAP search filter

Authentication - section [auth_info_N]

The auth_info sections provide authentication information to use for SIP as well as http services (typically remote provisioning, cardDav requests). They need to be supplied in the form of a LinphoneAuthInfo object, whose configuration storage representation is of [auth_info_N] sections, numbered continuously from 0.
Table authentication information parameters lists all remote contact directory parameters one may find under section [auth_info_N] of a Linphone RC file.

Authentication information parameters
KeyValue typePossible valuesDefault valueDescription
usernamestringanything""The username to use for authenticating
domainstringanything""A SIP domain to which the use of thie LinphoneAuthInfo is scoped to
passwdstringanything""The clear-text password
realmstringanything""The realm advertised by the server, it may be left empty if unknown
ha1stringanything""A digest HA1 of the password
algorithmstringMD5MD5The digest algorithm
SHA-256
authorization_serverstringany HTTP/HTTPS URI""An OAUTH/OpenID connect authorization server URI to use to autheticate
token_endpointstringany HTTP/HTTPS URI""URI of endpoint to refresh tokens
client_idstringanything""OAUTH client ID
client_secretstringanything""OAUTH client secret