iax.conf.sample 26 KB

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