h323.conf.sample 7.9 KB

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