Projet

Général

Profil

Linphone » linphone.conf

thomas.boissier, 27/02/2014 17:06

 
1
[auth_info_0]
2

    
3
#SIP username
4

    
5
username=thomas
6

    
7
#sip userid (usually the same as username, don't specify unless you know what you are doing)
8

    
9
userid=thomas
10

    
11
#password associated with above username, userid and realm
12

    
13
passwd=thomas
14

    
15
#SIP authentication realm (= authentication domain), can be left empty if realm is not known.
16

    
17
realm=""  
18

    
19
  ##section relative to sound settings
20

    
21
    [sound]
22

    
23
    #sound device name used for playback, as listed in linphonec by "soundcard list"
24

    
25
    playback_dev_id=ALSA: default device
26

    
27
    #sound device name used for ringing, as listed in linphonec by "soundcard list"
28

    
29
    ringer_dev_id=ALSA: default device
30

    
31
    #sound device name used for capture, as listed in linphonec by "soundcard list"
32

    
33
    capture_dev_id=ALSA: default device
34

    
35
    #Alsa special device name
36

    
37
    # This option allows to specify a special ALSA card (as defined in ALSA asoundrc config files)
38

    
39
    # to be used by linphone. This card can then be referred by playback_dev_id, ringer_dev_id, capture_dev_id options.
40

    
41
    # Use this if you are able to understand asoundrc syntax and you know what you are doing.
42

    
43
    #alsadev=
44

    
45
    #wav file to play to advertise remote ringing
46

    
47
    remote_ring=/usr/local/share/sounds/linphone/ringback.wav
48

    
49
    #wav file to play to advertise incoming calls
50

    
51
    local_ring=/usr/loca/share/sounds/linphone/rings/bigben.wav
52

    
53
    #turn on/off echo cancellation
54

    
55
    echocancellation=1
56

    
57
    #Expected delay of echo in milliseconds
58

    
59
    #Use this when you have a fixed latency in the sound hardware.
60

    
61
    #This allows to reduce the tail length of the echo canceller, which speeds up convergence
62

    
63
    #and reduces complexity of computations.
64

    
65
    ec_delay=0
66

    
67
    #Tail length of echo canceller in milliseconds.
68

    
69
    #Ideally it should be no more than the expected duration of the echo.
70

    
71
    ec_tail_len=60
72

    
73
    #Frame size for AU-MDF echo canceller algorithm
74

    
75
    #This is a parameter internal to the echo canceller, recommended is too keep to its default value.
76

    
77
    ec_frame_size=128
78

    
79
    #static software gain (linear scale) to be applied to microphone signal
80

    
81
    mic_gain=1.0
82

    
83
    #static software gain (log scale) to be applied to signal sent to speaker
84

    
85
    playback_gain_db=0.0
86

    
87

    
88

    
89

    
90

    
91
    ##Video settings
92

    
93
    [video]
94

    
95
    #Size of sent video among these names: QCIF, QVGA, CIF, VGA, SVGA
96

    
97
    size=cif
98

    
99
    #Whether video is enabled:
100

    
101
    enabled=0
102

    
103
    #You can refine whether it is enabled for display or capture or both
104

    
105
    display=1
106

    
107
    capture=1
108

    
109
    #Show local preview between calls.
110

    
111
    show_local=1
112

    
113
    #Show local view during calls, in a corner of the video window
114

    
115
    self_view=1
116

    
117
    #Webcam name for capture
118

    
119
    device=V4L2: /dev/video0
120

    
121

    
122

    
123

    
124

    
125
    ##Network settings
126

    
127
    [net]
128

    
129
    #Estimated download bandwidth in kbit/s
130

    
131
    download_bw=1024
132

    
133
    #The bandwidth settings are used to control the bitrate of video (and sometimes audio) encoder, as well
134

    
135
    #as limiting the size or fps of the sent video.
136

    
137
    #Estimated upload bandwidth in kbit/s
138

    
139
    upload_bw=1024
140

    
141
    #Firewall policy:
142

    
143
    # 0: assume there is no nat
144

    
145
    # 1: use firewall address supplied in "nat_address" item (discouraged)
146

    
147
    # 2: use STUN to discover its own public IP address and ports
148

    
149
    # 3: use ICE.
150

    
151

    
152
    firewall_policy=2
153

    
154
    #Network's Maximum Transmission Unit
155

    
156
    # Use 0 to allow automatic discovery, otherwise set to a number of bytes.
157

    
158
    # This parameter is only meaningful with video streams for which RTP packets are big.
159

    
160
    mtu=0
161

    
162
    #STUN server address to use when in firewall_policy=2
163

    
164
    stun_server=stun.ekiga.net
165

    
166
    #Firewall address to use when in firewall_policy=1
167

    
168
    nat_address=80.112.33.11
169

    
170

    
171

    
172

    
173

    
174
    ##SIP settings
175

    
176
    [sip]
177

    
178
    #SIP port used
179

    
180
    sip_port=5060
181

    
182
    #Discover automatically local IP address
183

    
184
    guess_hostname=1
185

    
186
    #Contact address when no proxy is used
187

    
188
    # The host port is always overriden at runtime if guess_hostname
189

    
190
    # is set to 1.
191

    
192
    contact="Bob"
193

    
194
    #Incoming call answering timeout
195

    
196
    inc_timeout=15
197

    
198
    #Use SIP INFO to send DTMFs (digits)
199

    
200
    use_info=0
201

    
202
    #Use RFC2833 (out of band DTMFs) to send digits
203

    
204
    use_rfc2833=0
205

    
206
    #Use IPv6. caution: it is exclusive with IPv4.
207

    
208
    use_ipv6=0
209

    
210
    #Send registers only when network is up
211

    
212
    register_only_when_network_is_up=1
213

    
214
    #Default proxy to use (the number is the index of the proxy configuration in this config file)
215

    
216
    # Use -1 for no proxy.
217

    
218
    default_proxy=proxy_0
219

    
220
    #Keepalive period in milliseconds for sending out SIP UDP keepalive to the proxies.
221

    
222
    keepalive_period=10000
223

    
224
    #When answering to SDP offers, select only one codec,
225

    
226
    #instead of replying with all matching codecs.
227

    
228
    only_one_codec=0
229

    
230
    #Send an OPTIONS message before doing outgoing calls
231

    
232
    #This is used by Linphone to workaround some NAT problems inherent to SIP.
233

    
234
    #This is highly recommended.
235

    
236
    ping_with_options=1
237

    
238
    #Network state automatic monitoring
239

    
240
    # When set to 1, linphone will periodically monitor the network state (by checking whether it is possible
241

    
242
    # to reach the internet).
243

    
244
    # When the operating system has callbacks to notify such information, you can use
245

    
246
    # linphone_core_set_network_reachable() to notify the core, in which case no network monitoring will be done internally.
247

    
248
    auto_net_state_mon=1
249

    
250

    
251

    
252

    
253

    
254
    ## RTP settings
255

    
256
    [rtp]
257

    
258
    #Audio RTP (UDP) port
259

    
260
    audio_rtp_port=7078
261

    
262
    #Video RTP (UDP) port
263

    
264
    video_rtp_port=9078
265

    
266
    #Nominal audio jitter buffer size in milliseconds
267

    
268
    audio_jitt_comp=60
269

    
270
    #Nominal video jitter buffer size in milliseconds
271

    
272
    video_jitt_comp=60
273

    
274
    #RTP timeout in seconds: when no RTP or RTCP
275

    
276
    # packets are received for this period, the running call is
277

    
278
    # automatically closed.
279

    
280
    nortp_timeout=30
281

    
282

    
283

    
284

    
285

    
286
    ## Audio codec descriptions
287

    
288
    # These sections are named audio_codec_X, where X is a number.
289

    
290
    # This number identifies the position of the described codec
291

    
292
    # in the core's audio codec list.
293

    
294
    [audio_codec_0]
295

    
296
    # sub-mime type as defined in RFC3551 or codec's specific RFC:
297

    
298
    mime=speex
299

    
300
    # RTP clock-rate as defined in RFC3551 or codec's specific RFC:
301

    
302
    rate=8000
303

    
304
    # Tells whether is codec is enabled
305

    
306
    enabled=1
307

    
308
    # Fmtp (format parameters) string to be sent in SDP for this codec, which
309

    
310
    # corresponds usually to what we are prefering to receive.
311

    
312
    # RFC3551 or codec's specific RFC describes the allowed parameters.
313

    
314
    recv_fmtp=vad=on
315

    
316

    
317
[proxy_0]
318

    
319
#SIP address of the proxy
320

    
321
reg_proxy=persephone.aquilenet.fr
322

    
323
#SIP identity for which you are known on this proxy:
324

    
325
reg_identity=
326

    
327
#Expiration period of the registration in seconds
328

    
329
reg_expires=3600
330

    
331
#Whether to send a register or not
332

    
333
reg_sendregister=0
334

    
335
#Route: SIP server address to send all outgoing SIP requests
336

    
337
#It is usually left blank, otherwise it is commonly used to specify this proxy
338

    
339
#must be used as an outbound proxy, for example:
340

    
341
# reg_route=sip:example.net
342

    
343
reg_route=
344

    
345
#Send a PUBLISH request to the proxy to notify about presence information (online, busy, out to lunch)
346

    
347
publish=0
348

    
349
#whether "+" in phone numbers should be replaced by 00
350

    
351
dial_escape_plus=0
352

    
353
#Phone number prefix to be applied to entered destinations.
354

    
355
#Example: prefix=+33
356

    
357
prefix=
358

    
359

    
360

    
361

    
362

    
363
## Authentication information
364

    
365
# Similarly, several auth_info_X can be defined
366

    
367
# Authentication information is kept distinct from proxy information
368

    
369
# because there can be authentication challenges from proxies or user
370

    
371
# agents even if we are not registered to any proxy.
372

    
373

    
374

    
375

    
376
##
377

    
378
#Other stuff stored in config files that are not configuration items but rather
379

    
380
#persistent information stored in the same place. They are not described here just but
381

    
382
#mentionned for information:
383

    
384
# call_logs_X : call history items
385

    
386
#
    (1-1/1)