Debian Codegraph @

configs/samples/iax.conf.sample

raw
1 ;
2 ; Inter-Asterisk eXchange v2 (IAX2) Channel Driver configuration
3 ;
4 ; This configuration is read when the chan_iax2.so module is loaded, and is
5 ; re-read when the module is reloaded, such as when invoking the CLI command:
6 ;
7 ; *CLI> iax2 reload
8 ;
9
10 ; General settings, like port number to bind to, and an option address (the
11 ; default is to bind to all local addresses).
12
13 [general]
14
15 ; Listener Addresses
16 ;
17 ; Use the 'bindaddr' and 'bindport' options to specify on which address and port
18 ; the IAX2 channel driver will listen for incoming requests.
19 ;
20 ;
21
22 ;bindport=4569 ; The default port to listen on
23 ; NOTE: bindport must be specified BEFORE bindaddr or
24 ; may be specified on a specific bindaddr if followed by
25 ; colon and port (e.g. bindaddr=192.168.0.1:4569) or for
26 ; IPv6 the address needs to be in brackets then colon
27 ; and port (e.g. bindaddr=[2001:db8::1]:4569).
28
29 ;bindaddr=192.168.0.1 ; You can specify 'bindaddr' more than once to bind to
30 ; multiple addresses, but the first will be the
31 ; default. IPv6 addresses are accepted.
32
33 ;
34 ; Set 'iaxcompat' to yes if you plan to use layered switches or some other
35 ; scenario which may cause some delay when doing a lookup in the dialplan. It
36 ; incurs a small performance hit to enable it. This option causes Asterisk to
37 ; spawn a separate thread when it receives an IAX2 DPREQ (Dialplan Request)
38 ; instead of blocking while it waits for a response.
39 ;
40 ; Accepted values: yes, no
41 ; Default value: no
42 ;
43 ;iaxcompat=yes
44 ;
45
46 ;
47 ; Disable UDP checksums (if nochecksums is set, then no checksums will
48 ; be calculated/checked on systems supporting this feature)
49 ;
50 ; Accepted values: yes, no
51 ; Default value: no
52 ;
53 ;nochecksums=yes
54 ;
55
56 ;
57 ; For increased security against brute force password attacks enable
58 ; 'delayreject' which will delay the sending of authentication reject for REGREQ
59 ; or AUTHREP if there is a password.
60 ;
61 ; Accepted values: yes, no
62 ; Default value: no
63 ;
64 ;delayreject=yes
65 ;
66
67 ;
68 ; You may specify a global default AMA flag for iax calls. These flags are
69 ; used in the generation of call detail records.
70 ;
71 ; Accepted values: default, omit, billing, documentation
72 ; Default value: default
73 ;
74 ;amaflags=billing
75 ;
76
77 ;
78 ; ADSI (Analog Display Services Interface) can be enabled if you have (or may
79 ; have) ADSI compatible CPE equipment.
80 ;
81 ; Accepted values: yes, no
82 ; Default value: no
83 ;
84 ;adsi=yes
85 ;
86
87 ;
88 ; Whether or not to perform an SRV lookup on outbound calls.
89 ;
90 ; Accepted values: yes, no
91 ; Default value: no
92 ;
93 ;srvlookup=yes
94 ;
95
96 ;
97 ; You may specify a default account for Call Detail Records (CDRs) in addition to
98 ; specifying on a per-user basis.
99 ;
100 ; Accepted values: Any string value up to 19 characters in length
101 ; Default value: <empty>
102 ;
103 ;accountcode=lss0101
104 ;
105
106 ;
107 ; You may specify a global default language for users. This can be specified
108 ; also on a per-user basis. If omitted, will fallback to English (en).
109 ;
110 ; Accepted values: A language tag such as 'en' or 'es'
111 ; Default value: en
112 ;
113 ;language=en
114 ;
115
116 ;
117 ; This option specifies a preference for which music-on-hold class this channel
118 ; should listen to when put on hold if the music class has not been set on the
119 ; channel with Set(CHANNEL(musicclass)=whatever) in the dialplan, and the peer
120 ; channel putting this one on hold did not suggest a music class.
121 ;
122 ; If this option is set to "passthrough", then the hold message will always be
123 ; passed through as signalling instead of generating hold music locally.
124 ;
125 ; This option may be specified globally, or on a per-user or per-peer basis.
126 ;
127 ; Accepted values: passthrough, or any music-on-hold class name
128 ; Default value: <empty>
129 ;
130 ;mohinterpret=default
131 ;
132
133 ;
134 ; The 'mohsuggest' option specifies which music on hold class to suggest to the
135 ; peer channel when this channel places the peer on hold. It may be specified
136 ; globally or on a per-user or per-peer basis.
137 ;
138 ;mohsuggest=default
139 ;
140
141 ;
142 ; Specify bandwidth of low, medium, or high to control which codecs are used
143 ; in general. This setting will restrict codecs used to only those that comply
144 ; with the bandwidth setting. In most cases, you should set this to 'high' so
145 ; that high-quality codecs may be used; if set to a lower value, this will
146 ; degrade call quality, so you probably only want to do this if you have
147 ; actual significant bandwidth constraints.
148 ;
149 bandwidth=high
150 ;
151
152 ;
153 ; You can also fine tune codecs here using "allow" and "disallow" clauses with
154 ; specific codecs. Use "all" to represent all formats.
155 ;
156 ;allow=all
157 ;disallow=g723.1
158 disallow=lpc10
159 ;allow=gsm
160 ;
161
162 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
163 ; Jitter Buffer
164 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
165
166 ;
167 ; You can adjust several parameters relating to the jitter buffer. The jitter
168 ; buffer's function is to compensate for varying network delay.
169 ;
170 ; All of the jitter buffer settings are in milliseconds. The jitter buffer
171 ; works for INCOMING audio only - the outbound audio will be dejittered by the
172 ; jitter buffer at the other end.
173 ;
174 ; jitterbuffer=yes|no: global default as to whether you want
175 ; the jitter buffer at all.
176 ;
177 ; maxjitterbuffer: a maximum size for the jitter buffer.
178 ; Setting a reasonable maximum here will prevent the call delay
179 ; from rising to silly values in extreme situations; you'll hear
180 ; SOMETHING, even though it will be jittery.
181 ;
182 ; resyncthreshold: when the jitterbuffer notices a significant change in delay
183 ; that continues over a few frames, it will resync, assuming that the change in
184 ; delay was caused by a timestamping mix-up. The threshold for noticing a
185 ; change in delay is measured as twice the measured jitter plus this resync
186 ; threshold.
187 ; Resyncing can be disabled by setting this parameter to -1.
188 ;
189 ; maxjitterinterps: the maximum number of interpolation frames the jitterbuffer
190 ; should return in a row. Since some clients do not send CNG/DTX frames to
191 ; indicate silence, the jitterbuffer will assume silence has begun after
192 ; returning this many interpolations. This prevents interpolating throughout
193 ; a long silence.
194 ;
195 ; jittertargetextra: number of milliseconds by which the new jitter buffer
196 ; will pad its size. the default is 40, so without modification, the new
197 ; jitter buffer will set its size to the jitter value plus 40 milliseconds.
198 ; increasing this value may help if your network normally has low jitter,
199 ; but occasionally has spikes.
200 ;
201
202 jitterbuffer=no
203 ;maxjitterbuffer=1000
204 ;maxjitterinterps=10
205 ;resyncthreshold=1000
206 ;jittertargetextra=40
207
208 ; There are three authentication methods that are supported: md5, plaintext,
209 ; and rsa. The least secure is "plaintext", which sends passwords cleartext
210 ; across the net. "md5" uses a challenge/response md5 sum arrangement, but
211 ; still requires both ends have plain text access to the secret. "rsa" allows
212 ; unidirectional secret knowledge through public/private keys. There is no
213 ; default unless set here in the [general] section. Only md5 and rsa support
214 ; media encryption.
215 ;
216 ;auth=md5
217
218 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
219 ; IAX2 Encryption
220 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
221
222 ;
223 ; Enable IAX2 encryption. The default is no. This option does not force
224 ; encryption for calls, it merely allows it to be used for calls.
225 ;
226 encryption=yes
227
228 ;
229 ; Force encryption insures no connection is established unless both sides
230 ; support encryption. By turning this option on, encryption is automatically
231 ; turned on as well. The default is no.
232 ;
233 ;forceencryption=yes
234 ;
235
236 ; This option defines the maximum payload in bytes an IAX2 trunk can support at
237 ; a given time. The best way to explain this is to provide an example. If the
238 ; maximum number of calls to be supported is 800, and each call transmits 20ms
239 ; frames of audio using ulaw:
240 ;
241 ; (8000hz / 1000ms) * 20ms * 1 byte per sample = 160 bytes per frame
242 ;
243 ; The maximum load in bytes is:
244 ;
245 ; (160 bytes per frame) * (800 calls) = 128000 bytes
246 ;
247 ; Once this limit is reached, calls may be dropped or begin to lose audio.
248 ; Depending on the codec in use and number of channels to be supported this value
249 ; may need to be raised, but in most cases the default value is large enough.
250 ;
251 ; trunkmaxsize = 128000 ; defaults to 128000 bytes, which supports up to 800
252 ; calls of ulaw at 20ms a frame.
253
254 ; With a large amount of traffic on IAX2 trunks, there is a risk of bad voice
255 ; quality when allowing the Linux system to handle fragmentation of UDP packets.
256 ; Depending on the size of each payload, allowing the OS to handle fragmentation
257 ; may not be very efficient. This setting sets the maximum transmission unit for
258 ; IAX2 UDP trunking. The default is 1240 bytes which means if a trunk's payload
259 ; is over 1240 bytes for every 20ms it will be broken into multiple 1240 byte
260 ; messages. Zero disables this functionality and let's the OS handle
261 ; fragmentation.
262 ;
263 ; trunkmtu = 1240 ; trunk data will be sent in 1240 byte messages.
264
265 ; trunkfreq sets how frequently trunk messages are sent in milliseconds. This
266 ; value is 20ms by default, which means the trunk will send all the data queued
267 ; to it in the past 20ms. By increasing the time between sending trunk messages,
268 ; the trunk's payload size will increase as well. Note, depending on the size
269 ; set by trunkmtu, messages may be sent more often than specified. For example
270 ; if a trunk's message size grows to the trunkmtu size before 20ms is reached
271 ; that message will be sent immediately. Acceptable values are between 10ms and
272 ; 1000ms.
273 ;
274 ; trunkfreq=20 ; How frequently to send trunk msgs (in ms). This is 20ms by
275 ; default.
276
277 ; Should we send timestamps for the individual sub-frames within trunk frames?
278 ; There is a small bandwidth use for these (less than 1kbps/call), but they
279 ; ensure that frame timestamps get sent end-to-end properly. If both ends of
280 ; all your trunks go directly to TDM, _and_ your trunkfreq equals the frame
281 ; length for your codecs, you can probably suppress these. The receiver must
282 ; also support this feature, although they do not also need to have it enabled.
283 ;
284 ; trunktimestamps=yes
285
286 ; Minimum and maximum amounts of time that IAX2 peers can request as a
287 ; registration expiration interval (in seconds).
288 ; minregexpire = 60
289 ; maxregexpire = 60
290
291 ; IAX2 helper threads
292
293 ; Establishes the number of iax helper threads to handle I/O.
294 ; iaxthreadcount = 10
295
296 ; Establishes the number of extra dynamic threads that may be spawned to handle I/O
297 ; iaxmaxthreadcount = 100
298
299 ;
300 ; We can register with another IAX2 server to let him know where we are
301 ; in case we have a dynamic IP address for example
302 ;
303 ; Register with tormenta using username marko and password secretpass
304 ;
305 ;register => marko:[email protected]
306 ;
307 ; Register joe at remote host with no password
308 ;
309 ;register => joe@remotehost:5656
310 ;
311 ; Register marko at tormenta.linux-support.net using RSA key "torkey"
312 ;
313 ;register => marko:[torkey]@tormenta.linux-support.net
314 ;
315 ; Through the use of the res_stun_monitor module, Asterisk has the ability to detect when the
316 ; perceived external network address has changed. When the stun_monitor is installed and
317 ; configured, chan_iax will renew all outbound registrations when the monitor detects any sort
318 ; of network change has occurred. By default this option is enabled, but only takes effect once
319 ; res_stun_monitor is configured. If res_stun_monitor is enabled and you wish to not
320 ; generate all outbound registrations on a network change, use the option below to disable
321 ; this feature.
322 ;
323 ; subscribe_network_change_event = yes ; on by default
324 ;
325 ; You can enable authentication debugging to increase the amount of
326 ; debugging traffic.
327 ;
328 ;authdebug = yes
329 ;
330 ; See https://docs.asterisk.org/Configuration/Channel-Drivers/IP-Quality-of-Service for a description of these parameters.
331 ;tos=ef
332 ;cos=5
333 ;
334 ; If regcontext is specified, Asterisk will dynamically create and destroy
335 ; a NoOp priority 1 extension for a given peer who registers or unregisters
336 ; with us. The actual extension is the 'regexten' parameter of the registering
337 ; peer or its name if 'regexten' is not provided. More than one regexten
338 ; may be supplied if they are separated by '&'. Patterns may be used in
339 ; regexten.
340 ;
341 ;regcontext=iaxregistrations
342 ;
343 ; If we don't get ACK to our NEW within 2000ms, and autokill is set to yes,
344 ; then we cancel the whole thing (that's enough time for one retransmission
345 ; only). This is used to keep things from stalling for a long time for a host
346 ; that is not available, but would be ill advised for bad connections. In
347 ; addition to 'yes' or 'no' you can also specify a number of milliseconds.
348 ; See 'qualify' for individual peers to turn on for just a specific peer.
349 ;
350 autokill=yes
351 ;
352 ; codecpriority controls the codec negotiation of an inbound IAX2 call.
353 ; This option is inherited to all user entities. It can also be defined
354 ; in each user entity separately which will override the setting in general.
355 ;
356 ; The valid values are:
357 ;
358 ; caller - Consider the callers preferred order ahead of the host's.
359 ; host - Consider the host's preferred order ahead of the caller's.
360 ; disabled - Disable the consideration of codec preference altogether.
361 ; (this is the original behaviour before preferences were added)
362 ; reqonly - Same as disabled, only do not consider capabilities if
363 ; the requested format is not available the call will only
364 ; be accepted if the requested format is available.
365 ;
366 ; The default value is 'host'
367 ;
368 ;codecpriority=host
369 ;
370 ; allowfwdownload controls whether this host will serve out firmware to
371 ; IAX2 clients which request it. This has only been used for the IAXy,
372 ; and it has been recently proven that this firmware distribution method
373 ; can be used as a source of traffic amplification attacks. Also, the
374 ; IAXy firmware has not been updated since at least 2012, so unless
375 ; you are provisioning IAXys in a secure network, we recommend that you
376 ; leave this option to the default, off.
377 ;
378 ;allowfwdownload=yes
379
380 ;rtcachefriends=yes ; Cache realtime friends by adding them to the internal list
381 ; just like friends added from the config file only on a
382 ; as-needed basis? (yes|no)
383
384 ;rtsavesysname=yes ; Save systemname in realtime database at registration
385 ; Default = no
386
387 ;rtupdate=yes ; Send registry updates to database using realtime? (yes|no)
388 ; If set to yes, when a IAX2 peer registers successfully,
389 ; the IP address, the origination port, the registration period,
390 ; and the username of the peer will be set to database via realtime.
391 ; If not present, defaults to 'yes'.
392
393 ;rtautoclear=yes ; Auto-Expire friends created on the fly on the same schedule
394 ; as if it had just registered? (yes|no|<seconds>)
395 ; If set to yes, when the registration expires, the friend will
396 ; vanish from the configuration until requested again.
397 ; If set to an integer, friends expire within this number of
398 ; seconds instead of the registration interval.
399
400 ;rtignoreregexpire=yes ; When reading a peer from Realtime, if the peer's registration
401 ; has expired based on its registration interval, used the stored
402 ; address information regardless. (yes|no)
403
404 ;parkinglot=edvina ; Default parkinglot for IAX2 peers and users
405 ; This can also be configured per device
406 ; Parkinglots are defined in features.conf
407
408 ;
409 ; The following two options are used to disable call token validation for the
410 ; purposes of interoperability with IAX2 endpoints that do not yet support it.
411 ;
412 ; Call token validation can be set as optional for a single IP address or IP
413 ; address range by using the 'calltokenoptional' option. 'calltokenoptional' is
414 ; only a global option.
415 ;
416 ;calltokenoptional=209.16.236.73/255.255.255.0
417 ;
418 ; By setting 'requirecalltoken=no', call token validation becomes optional for
419 ; that peer/user. By setting 'requirecalltoken=auto', call token validation
420 ; is optional until a call token supporting peer registers successfully using
421 ; call token validation. This is used as an indication that from now on, we
422 ; can require it from this peer. So, requirecalltoken is internally set to yes.
423 ; requirecalltoken may only be used in peer/user/friend definitions,
424 ; not in the global scope.
425 ; By default, 'requirecalltoken=yes'.
426 ;
427 ;requirecalltoken=no
428 ;
429 ; Maximum time allowed for call token authentication handshaking. Default is 10 seconds.
430 ; Use higher values in lagged or high packet loss networks.
431 ;
432 ;calltokenexpiration=10
433
434 ;
435 ; These options are used to limit the amount of call numbers allocated to a
436 ; single IP address. Before changing any of these values, it is highly encouraged
437 ; to read the user guide associated with these options first. In most cases, the
438 ; default values for these options are sufficient.
439 ;
440 ; The 'maxcallnumbers' option limits the amount of call numbers allowed for each
441 ; individual remote IP address. Once an IP address reaches it's call number
442 ; limit, no more new connections are allowed until the previous ones close. This
443 ; option can be used in a peer definition as well, but only takes effect for
444 ; the IP of a dynamic peer after it completes registration.
445 ;
446 ;maxcallnumbers=512
447 ;
448 ; The 'maxcallnumbers_nonvalidated' is used to set the combined number of call
449 ; numbers that can be allocated for connections where call token validation
450 ; has been disabled. Unlike the 'maxcallnumbers' option, this limit is not
451 ; separate for each individual IP address. Any connection resulting in a
452 ; non-call token validated call number being allocated contributes to this
453 ; limit. For use cases, see the call token user guide. This option's
454 ; default value of 8192 should be sufficient in most cases.
455 ;
456 ;maxcallnumbers_nonvalidated=1024
457 ;
458 ; The [callnumberlimits] section allows custom call number limits to be set
459 ; for specific IP addresses and IP address ranges. These limits take precedence
460 ; over the global 'maxcallnumbers' option, but may still be overridden by a
461 ; peer defined 'maxcallnumbers' entry. Note that these limits take effect
462 ; for every individual address within the range, not the range as a whole.
463 ;
464 ;[callnumberlimits]
465 ;10.1.1.0/255.255.255.0 = 24
466 ;10.1.2.0/255.255.255.0 = 32
467 ;
468
469 ; The shrinkcallerid function removes '(', ' ', ')', non-trailing '.', and '-' not
470 ; in square brackets. For example, the Caller*ID value 555.5555 becomes 5555555
471 ; when this option is enabled. Disabling this option results in no modification
472 ; of the Caller*ID value, which is necessary when the Caller*ID represents something
473 ; that must be preserved. This option can only be used in the [general] section.
474 ; By default this option is on.
475 ;
476 ;shrinkcallerid=yes ; on by default
477
478 ; Guest sections for unauthenticated connection attempts. Just specify an
479 ; empty secret, or provide no secret section.
480 ;
481 [guest]
482 type=user
483 context=public
484 callerid="Guest IAX User"
485
486 ;
487 ; Trust Caller*ID delivered over DUNDi/e164
488 ;
489 ;[dundi]
490 ;type=user
491 ;dbsecret=dundi/secret
492 ;context=dundi-e164-local
493
494 ;
495 ; Further user sections may be added, specifying a context and a secret used
496 ; for connections with that given authentication name. Limited IP based
497 ; access control is allowed by use of "permit", "deny", and "acl" keywords.
498 ; Multiple rules are permitted. Multiple permitted contexts may be specified,
499 ; in which case the first will be the default. You can also override
500 ; Caller*ID so that when you receive a call you set the Caller*ID to be what
501 ; you want instead of trusting what the remote user provides
502 ;
503 ; There are three authentication methods that are supported: md5, plaintext,
504 ; and rsa. The least secure is "plaintext", which sends passwords cleartext
505 ; across the net. "md5" uses a challenge/response md5 sum arrangement, but
506 ; still requires both ends have plain text access to the secret. "rsa" allows
507 ; unidirectional secret knowledge through public/private keys. If "rsa"
508 ; authentication is used, "inkeys" is a list of acceptable public keys on the
509 ; local system that can be used to authenticate the remote peer, separated by
510 ; the ":" character. "outkey" is a single, private key to use to authenticate
511 ; to the other side. Public keys are named /var/lib/asterisk/keys/<name>.pub
512 ; while private keys are named /var/lib/asterisk/keys/<name>.key. Private
513 ; keys should always be 3DES encrypted. If encryption is used (applicable to
514 ; md5 and rsa only), a secret must be provided.
515 ;
516 ;
517 ; NOTE: All hostnames and IP addresses in this file are for example purposes
518 ; only; you should not expect any of them to actually be available for
519 ; your use.
520 ;
521 ;[markster]
522 ;type=user
523 ;context=default
524 ;context=local
525 ;auth=md5,plaintext,rsa
526 ;secret=markpasswd
527 ;setvar=ATTENDED_TRANSFER_COMPLETE_SOUND=beep ; This channel variable will
528 ; cause the given audio file to
529 ; be played upon completion of
530 ; an attended transfer to the
531 ; target of the transfer.
532 ;dbsecret=mysecrets/place ; Secrets can be stored in astdb, too
533 ;transfer=no ; Disable IAX2 native transfer
534 ;transfer=mediaonly ; When doing IAX2 native transfers, transfer only
535 ; the media stream
536 ;jitterbuffer=yes ; Override the global setting and enable the jitter
537 ; buffer for this user
538 ;maxauthreq=10 ; Set the maximum number of outstanding AUTHREQs
539 ; waiting for replies. If this limit is reached,
540 ; any further authentication will be blocked, until
541 ; the pending requests expire or a reply is
542 ; received.
543 ;callerid="Mark Spencer" <(256) 428-6275>
544 ;deny=0.0.0.0/0.0.0.0
545 ;accountcode=markster0101
546 ;permit=209.16.236.73/255.255.255.0
547 ;language=en ; Use english as default language
548 ;encryption=yes ; Enable IAX2 encryption. The default is no.
549 ;keyrotate=off ; This is a compatibility option for older versions
550 ; of IAX2 that do not support key rotation with
551 ; encryption. This option will disable the
552 ; IAX_COMMAND_RTENC message. The default is on.
553
554 ;
555 ; Peers may also be specified, with a secret and a remote hostname.
556 ;
557 ;[demo]
558 ;type=peer
559 ;username=asterisk
560 ;secret=supersecret
561 ;host=192.168.10.10
562 ;description=My IAX2 Peer ; Description of this peer, as listed by
563 ; 'iax2 show peers'
564 ;sendani=no
565 ;host=asterisk.linux-support.net
566 ;port=5036
567 ;mask=255.255.255.255
568 ;qualify=yes ; Make sure this peer is alive.
569 ;qualifysmoothing = yes ; Use an average of the last two PONG results to
570 ; reduce falsely detected LAGGED hosts. The default
571 ; is 'no.'
572 ;qualifyfreqok = 60000 ; How frequently to ping the peer when everything
573 ; seems to be OK, in milliseconds.
574 ;qualifyfreqnotok = 10000 ; How frequently to ping the peer when it's either
575 ; LAGGED or UNAVAILABLE, in milliseconds.
576 ;jitterbuffer=no ; Turn off jitter buffer for this peer
577 ;
578 ;encryption=yes ; Enable IAX2 encryption. The default is no.
579 ;keyrotate=off ; This is a compatibility option for older versions
580 ; of IAX2 that do not support key rotation with
581 ; encryption. This option will disable the
582 ; IAX_COMMAND_RTENC message. The default is 'on.'
583
584 ; Peers can remotely register as well, so that they can be mobile. Default
585 ; IPs can also optionally be given but are not required. Caller*ID can be
586 ; suggested to the other side as well if it is for example a phone instead of
587 ; another PBX.
588 ;connectedline=yes ; Set if connected line and redirecting information updates
589 ; ; are passed between Asterisk servers for this peer.
590 ; ; yes - Sending and receiving updates are enabled.
591 ; ; send - Only send updates.
592 ; ; receive - Only process received updates.
593 ; ; no - Sending and receiving updates are disabled.
594 ; ; Default is "no".
595 ; ;
596 ; ; Note: Because of an incompatibility between Asterisk v1.4
597 ; ; and Asterisk v1.8 or later, this option must be set
598 ; ; to "no" toward the Asterisk v1.4 peer. A symptom of the
599 ; ; incompatibility is the call gets disconnected unexpectedly.
600
601
602 ;[dynamichost]
603 ;host=dynamic
604 ;secret=mysecret
605 ; Note: app_voicemail mailboxes must be in the form of mailbox@context.
606 ;mailbox=1234 ; Notify about mailbox 1234
607 ;inkeys=key1:key2
608 ;peercontext=local ; Default context to request for calls to peer
609 ;defaultip=216.207.245.34
610 ;callerid="Some Host" <(256) 428-6011>
611
612 ;[biggateway]
613 ;type=peer
614 ;host=192.168.0.1
615 ;description=Gateway to PSTN
616 ;context=*
617 ;secret=myscret
618 ;trunk=yes ; Use IAX2 trunking with this host
619 ;timezone=America/New_York ; Set a timezone for the date/time IE
620
621 ;
622 ; Friends are a shortcut for creating a user and a peer with the same values.
623 ;
624
625 ;[marko]
626 ;type=friend
627 ;host=dynamic
628 ;regexten=1234
629 ;secret=moofoo ; Multiple secrets may be specified. For a "user", all
630 ;secret=foomoo ; specified entries will be accepted as valid. For a "peer",
631 ;secret=shazbot ; only the last specified secret will be used.
632 ;context=default
633 ;permit=0.0.0.0/0.0.0.0
634 ;acl=example_named_acl
635
636 ;
637 ; With immediate=yes, an IAX2 phone or a phone on an IAXy acts as a hot-line
638 ; which goes immediately to the s extension when picked up. Useful for
639 ; elevator phones, manual service, or other similar applications.
640 ;
641 ;[manual]
642 ;type=friend
643 ;host=dynamic
644 ;immediate=yes ; go immediately to s extension when picked up
645 ;secret=moofoo ; when immediate=yes is specified, secret is required
646 ;context=number-please ; we start at the s extension in this context
647 ;