Advertisement
Guest User

Asterisk2iax.conf

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