iax.conf.sample 23 KB

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