h323.conf.sample 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. ; The NuFone Network's
  2. ; Open H.323 driver configuration
  3. ;
  4. [general]
  5. port = 1720
  6. ;bindaddr = 1.2.3.4 ; this SHALL contain a single, valid IP address for this machine
  7. ;
  8. ; See https://wiki.asterisk.org/wiki/display/AST/IP+Quality+of+Service for a description of these parameters.
  9. ;tos_audio=ef ; Sets TOS for RTP audio packets.
  10. ;cos_audio=5 ; Sets 802.1p priority for RTP audio packets.
  11. ;
  12. ; You may specify a global default AMA flag for iaxtel calls. It must be
  13. ; one of 'default', 'omit', 'billing', or 'documentation'. These flags
  14. ; are used in the generation of call detail records.
  15. ;
  16. ;amaflags = default
  17. ;
  18. ; You may specify a default account for Call Detail Records in addition
  19. ; to specifying on a per-user basis
  20. ;
  21. ;accountcode=lss0101
  22. ;
  23. ; You can fine tune codecs here using "allow" and "disallow" clauses
  24. ; with specific codecs. Use "all" to represent all formats.
  25. ;
  26. ;disallow=all
  27. ;allow=all ; turns on all installed codecs
  28. ;disallow=g723.1 ; Hm... Proprietary, don't use it...
  29. ;allow=gsm ; Always allow GSM, it's cool :)
  30. ;allow=ulaw ; see https://wiki.asterisk.org/wiki/display/AST/RTP+Packetization
  31. ; for framing options
  32. ;autoframing=yes ; Set packetization based on the remote endpoint's (ptime)
  33. ; preferences. Defaults to no.
  34. ;
  35. ; User-Input Mode (DTMF)
  36. ;
  37. ; valid entries are: rfc2833, inband, cisco, h245-signal
  38. ; default is rfc2833
  39. ;dtmfmode=rfc2833
  40. ;
  41. ; Default RTP Payload to send RFC2833 DTMF on. This is used to
  42. ; interoperate with broken gateways which cannot successfully
  43. ; negotiate a RFC2833 payload type in the TerminalCapabilitySet.
  44. ; To specify required payload type, put it after colon in dtmfmode
  45. ; option like
  46. ;dtmfmode=rfc2833:101
  47. ; or
  48. ;dtmfmode=cisco:121
  49. ;
  50. ; Set the gatekeeper
  51. ; DISCOVER - Find the Gk address using multicast
  52. ; DISABLE - Disable the use of a GK
  53. ; <IP address> or <Host name> - The acutal IP address or hostname of your GK
  54. ;gatekeeper = DISABLE
  55. ;
  56. ;
  57. ; Tell Asterisk whether or not to accept Gatekeeper
  58. ; routed calls or not. Normally this should always
  59. ; be set to yes, unless you want to have finer control
  60. ; over which users are allowed access to Asterisk.
  61. ; Default: YES
  62. ;
  63. ;AllowGKRouted = yes
  64. ;
  65. ; When the channel works without gatekeeper, there is possible to
  66. ; reject calls from anonymous (not listed in users) callers.
  67. ; Default is to allow anonymous calls.
  68. ;
  69. ;AcceptAnonymous = yes
  70. ;
  71. ; Optionally you can determine a user by Source IP versus its H.323 alias.
  72. ; Default behavour is to determine user by H.323 alias.
  73. ;
  74. ;UserByAlias=no
  75. ;
  76. ; Default context gets used in siutations where you are using
  77. ; the GK routed model or no type=user was found. This gives you
  78. ; the ability to either play an invalid message or to simply not
  79. ; use user authentication at all.
  80. ;
  81. ;context=default
  82. ;
  83. ; Use this option to help Cisco (or other) gateways to setup backward voice
  84. ; path to pass inband tones to calling user (see, for example,
  85. ; http://www.cisco.com/warp/public/788/voip/ringback.html)
  86. ;
  87. ; Add PROGRESS information element to SETUP message sent on outbound calls
  88. ; to notify about required backward voice path. Valid values are:
  89. ; 0 - don't add PROGRESS information element (default);
  90. ; 1 - call is not end-end ISDN, further call progress information can
  91. ; possibly be available in-band;
  92. ; 3 - origination address is non-ISDN (Cisco accepts this value only);
  93. ; 8 - in-band information or an appropriate pattern is now available;
  94. ;progress_setup = 3
  95. ;
  96. ; Add PROGRESS information element (IE) to ALERT message sent on incoming
  97. ; calls to notify about required backwared voice path. Valid values are:
  98. ; 0 - don't add PROGRESS IE (default);
  99. ; 8 - in-band information or an appropriate pattern is now available;
  100. ;progress_alert = 8
  101. ;
  102. ; Generate PROGRESS message when H.323 audio path has established to create
  103. ; backward audio path at other end of a call.
  104. ;progress_audio = yes
  105. ;
  106. ; Specify how to inject non-standard information into H.323 messages. When
  107. ; the channel receives messages with tunneled information, it automatically
  108. ; enables the same option for all further outgoing messages independedly on
  109. ; options has been set by the configuration. This behavior is required, for
  110. ; example, for Cisco CallManager when Q.SIG tunneling is enabled for a
  111. ; gateway where Asterisk lives.
  112. ; The option can be used multiple times, one option per line.
  113. ;tunneling=none ; Totally disable tunneling (default)
  114. ;tunneling=cisco ; Enable Cisco-specific tunneling
  115. ;tunneling=qsig ; Enable tunneling via Q.SIG messages
  116. ;
  117. ; Specify how to pass hold notification to remote party. Default is to
  118. ; use H.450.4 supplementary service message.
  119. ;hold=none ; Do not pass hold/retrieve notifications
  120. ;hold=notify ; Use H.225 NOTIFY message
  121. ;hold=q931only ; Use stripped H.225 NOTIFY message (Q.931 part
  122. ; ; only, usable for Cisco CallManager)
  123. ;hold=h450 ; Pass notification as H.450.4 supplementary
  124. ; ; service
  125. ;
  126. ;------------------------------ JITTER BUFFER CONFIGURATION --------------------------
  127. ; jbenable = yes ; Enables the use of a jitterbuffer on the receiving side of a
  128. ; H323 channel. Defaults to "no". An enabled jitterbuffer will
  129. ; be used only if the sending side can create and the receiving
  130. ; side can not accept jitter. The H323 channel can accept jitter,
  131. ; thus an enabled jitterbuffer on the receive H323 side will only
  132. ; be used if the sending side can create jitter and jbforce is
  133. ; also set to yes.
  134. ; jbforce = no ; Forces the use of a jitterbuffer on the receive side of a H323
  135. ; channel. Defaults to "no".
  136. ; jbmaxsize = 200 ; Max length of the jitterbuffer in milliseconds.
  137. ; jbresyncthreshold = 1000 ; Jump in the frame timestamps over which the jitterbuffer is
  138. ; resynchronized. Useful to improve the quality of the voice, with
  139. ; big jumps in/broken timestamps, usualy sent from exotic devices
  140. ; and programs. Defaults to 1000.
  141. ; jbimpl = fixed ; Jitterbuffer implementation, used on the receiving side of a H323
  142. ; channel. Two implementations are currenlty available - "fixed"
  143. ; (with size always equals to jbmax-size) and "adaptive" (with
  144. ; variable size, actually the new jb of IAX2). Defaults to fixed.
  145. ; jblog = no ; Enables jitterbuffer frame logging. Defaults to "no".
  146. ;-----------------------------------------------------------------------------------
  147. ;
  148. ; H.323 Alias definitions
  149. ;
  150. ; Type 'h323' will register aliases to the endpoint
  151. ; and Gatekeeper, if there is one.
  152. ;
  153. ; Example: if someone calls time@your.asterisk.box.com
  154. ; Asterisk will send the call to the extension 'time'
  155. ; in the context default
  156. ;
  157. ; [default]
  158. ; exten => time,1,Answer
  159. ; exten => time,2,Playback,current-time
  160. ;
  161. ; Keyword's 'prefix' and 'e164' are only make sense when
  162. ; used with a gatekeeper. You can specify either a prefix
  163. ; or E.164 this endpoint is responsible for terminating.
  164. ;
  165. ; Example: The H.323 alias 'det-gw' will tell the gatekeeper
  166. ; to route any call with the prefix 1248 to this alias. Keyword
  167. ; e164 is used when you want to specifiy a full telephone
  168. ; number. So a call to the number 18102341212 would be
  169. ; routed to the H.323 alias 'time'.
  170. ;
  171. ;[time]
  172. ;type=h323
  173. ;e164=18102341212
  174. ;context=default
  175. ;
  176. ;[det-gw]
  177. ;type=h323
  178. ;prefix=1248,1313
  179. ;context=detroit
  180. ;
  181. ;
  182. ; Inbound H.323 calls from BillyBob would land in the incoming
  183. ; context with a maximum of 4 concurrent incoming calls
  184. ;
  185. ;
  186. ; Note: If keyword 'incominglimit' are omitted Asterisk will not
  187. ; enforce any maximum number of concurrent calls.
  188. ;
  189. ;[BillyBob]
  190. ;type=user
  191. ;host=192.168.1.1
  192. ;context=incoming
  193. ;incominglimit=4
  194. ;h245Tunneling=no
  195. ;
  196. ;
  197. ; Outbound H.323 call to Larry using SlowStart
  198. ;
  199. ;[Larry]
  200. ;type=peer
  201. ;host=192.168.2.1
  202. ;fastStart=no