sla.conf.sample 6.6 KB

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