sla.conf.sample 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. ;
  2. ; Configuration for Shared Line Appearances (SLA).
  3. ;
  4. ; See http://wiki.asterisk.org or doc/AST.pdf for more information.
  5. ;
  6. ; ---- General Options ----------------
  7. [general]
  8. ;attemptcallerid=no ; Attempt CallerID handling. The default value for this
  9. ; is "no" because CallerID handling with an SLA setup is
  10. ; known to not work properly in some situations. However,
  11. ; feel free to enable it if you would like. If you do, and
  12. ; you find problems, please do not report them.
  13. ; -------------------------------------
  14. ; ********************************
  15. ; **** Configuration Ordering ****
  16. ; ********************************
  17. ; Note that SLA configuration processing assumes that *all* trunk declarations are
  18. ; listed in the configuration file before any stations.
  19. ; ********************************
  20. ; ********************************
  21. ; ---- Trunk Declarations -------------
  22. ;
  23. ;[line1] ; Provide a name for this trunk.
  24. ;type=trunk ; This line is what marks this entry as a trunk.
  25. ;device=DAHDI/3 ; Map this trunk declaration to a specific device.
  26. ; NOTE: You can not just put any type of channel here.
  27. ; DAHDI channels can be directly used. IP trunks
  28. ; require some indirect configuration which is
  29. ; described in
  30. ; https://wiki.asterisk.org/wiki/display/AST/SLA+Trunk+Configuration
  31. ;autocontext=line1 ; This supports automatic generation of the dialplan entries
  32. ; if the autocontext option is used. Each trunk should have
  33. ; a unique context name. Then, in chan_dahdi.conf, this device
  34. ; should be configured to have incoming calls go to this context.
  35. ;ringtimeout=30 ; Set how long to allow this trunk to ring on an inbound call before hanging
  36. ; it up as an unanswered call. The value is in seconds.
  37. ;barge=no ; If this option is set to "no", then no station will be
  38. ; allowed to join a call that is in progress. The default
  39. ; value is "yes".
  40. ;hold=private ; This option configure hold permissions for this trunk.
  41. ; "open" - This means that any station can put this trunk
  42. ; on hold, and any station can retrieve it from
  43. ; hold. This is the default.
  44. ; "private" - This means that once a station puts the
  45. ; trunk on hold, no other station will be
  46. ; allowed to retrieve the call from hold.
  47. ;[line2]
  48. ;type=trunk
  49. ;device=DAHDI/4
  50. ;autocontext=line2
  51. ;[line3]
  52. ;type=trunk
  53. ;device=DAHDI/3
  54. ;autocontext=line3
  55. ;[line4]
  56. ;type=trunk
  57. ;device=Local/disa@line4_outbound ; A Local channel in combination with the Disa
  58. ; application can be used to support IP trunks.
  59. ; See https://wiki.asterisk.org/wiki/display/AST/SLA+Trunk+Configuration
  60. ;autocontext=line4
  61. ; --------------------------------------
  62. ; ---- Station Declarations ------------
  63. ;[station1] ; Define a name for this station.
  64. ;type=station ; This line indicates that this entry is a station.
  65. ;device=SIP/station1 ; Each station must be mapped to a device.
  66. ;autocontext=sla_stations ; This supports automatic generation of the dialplan entries if
  67. ; the autocontext option is used. All stations can use the same
  68. ; context without conflict. The device for this station should
  69. ; have its context configured to the same one listed here.
  70. ;ringtimeout=10 ; Set a timeout for how long to allow the station to ring for an
  71. ; incoming call, in seconds.
  72. ;ringdelay=10 ; Set a time for how long to wait before beginning to ring this station
  73. ; once there is an incoming call, in seconds.
  74. ;hold=private ; This option configure hold permissions for this station. Note
  75. ; that if private hold is set in the trunk entry, that will override
  76. ; anything here. However, if a trunk has open hold access, but this
  77. ; station is set to private hold, then the private hold will be in
  78. ; effect.
  79. ; "open" - This means that once this station puts a call
  80. ; on hold, any other station is allowed to retrieve
  81. ; it. This is the default.
  82. ; "private" - This means that once this station puts a
  83. ; call on hold, no other station will be
  84. ; allowed to retrieve the call from hold.
  85. ;trunk=line1 ; Individually list all of the trunks that will appear on this station. This
  86. ; order is significant. It should be the same order as they appear on the
  87. ; phone. The order here defines the order of preference that the trunks will
  88. ; be used.
  89. ;trunk=line2
  90. ;trunk=line3,ringdelay=5 ; A ring delay for the station can also be specified for a specific trunk.
  91. ; If a ring delay is specified both for the whole station and for a specific
  92. ; trunk on a station, the setting for the specific trunk will take priority.
  93. ; This value is in seconds.
  94. ;trunk=line4,ringtimeout=5 ; A ring timeout for the station can also be specified for a specific trunk.
  95. ; If a ring timeout is specified both for the whole station and for a specific
  96. ; trunk on a station, the setting for the specific trunk will take priority.
  97. ; This value is in seconds.
  98. ;[station](!) ; When there are a lot of stations that are configured the same way,
  99. ; it is convenient to use a configuration template like this so that
  100. ; the common settings stay in one place.
  101. ;type=station
  102. ;autocontext=sla_stations
  103. ;trunk=line1
  104. ;trunk=line2
  105. ;trunk=line3
  106. ;trunk=line4
  107. ;[station2](station) ; Define a station that uses the configuration from the template "station".
  108. ;device=SIP/station2
  109. ;
  110. ;[station3](station)
  111. ;device=SIP/station3
  112. ;
  113. ;[station4](station)
  114. ;device=SIP/station4
  115. ;
  116. ;[station5](station)
  117. ;device=SIP/station5
  118. ; --------------------------------------