ooh323.conf.sample 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. ; ---------------------------------------------------------------------------------
  2. ; --- ******* IMPORTANT NOTE ***********
  3. ; ---
  4. ; --- This module is currently unsupported. Use it at your own risk.
  5. ; ---
  6. ; ---------------------------------------------------------------------------------
  7. ; Objective System's H323 Configuration example for Asterisk
  8. ; ooh323c driver configuration
  9. ;
  10. ; [general] section defines global parameters
  11. ;
  12. ; This is followed by profiles which can be of three types - user/peer/friend
  13. ; Name of the user profile should match with the h323id of the user device.
  14. ; For peer/friend profiles, host ip address must be provided as "dynamic" is
  15. ; not supported as of now.
  16. ;
  17. ; Syntax for specifying a H323 device in extensions.conf is
  18. ; For Registered peers/friends profiles:
  19. ; OOH323/name where name is the name of the peer/friend profile.
  20. ;
  21. ; For unregistered H.323 phones:
  22. ; OOH323/ip[:port] OR if gk is used OOH323/alias where alias can be any H323
  23. ; alias
  24. ;
  25. ; For dialing into another asterisk peer at a specific exten
  26. ; OOH323/exten/peer OR OOH323/exten@ip
  27. ;
  28. ; Domain name resolution is not yet supported.
  29. ;
  30. ; When a H.323 user calls into asterisk, his H323ID is matched with the profile
  31. ; name and context is determined to route the call
  32. ;
  33. ; The channel driver will register all global aliases and aliases defined in
  34. ; peer profiles with the gatekeeper, if one exists. So, that when someone
  35. ; outside our pbx (non-user) calls an extension, gatekeeper will route that
  36. ; call to our asterisk box, from where it will be routed as per dial plan.
  37. [general]
  38. ;Define the asetrisk server h323 endpoint
  39. ;The port asterisk should listen for incoming H323 connections.
  40. ;Default - 1720
  41. ;port=1720
  42. ;The dotted IP address asterisk should listen on for incoming H323
  43. ;connections
  44. ;Default - tries to find out local ip address on it's own
  45. bindaddr=0.0.0.0
  46. ;This parameter indicates whether channel driver should register with
  47. ;gatekeeper as a gateway or an endpoint.
  48. ;Default - no
  49. ;gateway=no
  50. ;Whether asterisk should use fast-start and tunneling for H323 connections.
  51. ;Default - yes
  52. ;faststart=no
  53. ;h245tunneling=no
  54. ;Whether media wait for connect
  55. ;Default - No
  56. ;mediawaitforconnect=yes
  57. ;H323-ID to be used for asterisk server
  58. ;Default - Asterisk PBX
  59. h323id=ObjSysAsterisk
  60. e164=100
  61. ;CallerID to use for calls
  62. ;Default - Same as h323id
  63. callerid=asterisk
  64. ; Whether asterisk send back to caller own connected line id on incoming call as called number
  65. ; Default - no
  66. aniasdni=no
  67. ;Whether this asterisk server will use gatekeeper.
  68. ;Default - DISABLE
  69. ;gatekeeper = DISCOVER
  70. ;gatekeeper = a.b.c.d
  71. gatekeeper = DISABLE
  72. ;Location for H323 log file
  73. ;Default - /var/log/asterisk/h323_log
  74. ;logfile=/var/log/asterisk/h323_log
  75. ;Following values apply to all users/peers/friends defined below, unless
  76. ;overridden within their client definition
  77. ;Sets default context all clients will be placed in.
  78. ;Default - default
  79. context=default
  80. ;Sets rtptimeout for all clients, unless overridden
  81. ;Default - 60 seconds
  82. ;rtptimeout=60 ; Terminate call if 60 seconds of no RTP activity
  83. ; when we're not on hold
  84. ;Type of Service
  85. ;Default - none (lowdelay, thoughput, reliability, mincost, none)
  86. ;tos=lowdelay
  87. ;amaflags = default
  88. ;The account code used by default for all clients.
  89. ;accountcode=h3230101
  90. ;The codecs to be used for all clients.Only ulaw and gsm supported as of now.
  91. ;Default - ulaw
  92. ; ONLY ulaw, gsm, g729 and g7231 supported as of now
  93. disallow=all ;Note order of disallow/allow is important.
  94. allow=gsm
  95. allow=ulaw
  96. ; dtmf mode to be used by default for all clients. Supports rfc2833, q931keypad
  97. ; h245alphanumeric, h245signal.
  98. ;Default - rfc 2833
  99. dtmfmode=rfc2833
  100. ;
  101. ; round trip delay request, default = 0,0 (not send)
  102. ; x - count of unreplied requests before hangup, y - interval in sec between requests
  103. ;
  104. ;roundtrip=x,y
  105. ;
  106. ; FAX detection will cause the OOH323 channel to jump to the 'fax' extension (if it exists)
  107. ; based one or more events being detected. The events that can be detected are an incoming
  108. ; CNG tone or an incoming T.38 RequestMode packet
  109. ;
  110. ; yes - enable both detection (CNG & T.38)
  111. ; no - disable both
  112. ; cng - enable CNG detection (default)
  113. ; t38 - enable T.38 request detection
  114. ;
  115. faxdetect = cng
  116. ; User/peer/friend definitions:
  117. ; User config options Peer config options
  118. ; ------------------ -------------------
  119. ; context
  120. ; disallow disallow
  121. ; allow allow
  122. ; accountcode accountcode
  123. ; amaflags amaflags
  124. ; dtmfmode dtmfmode
  125. ; rtptimeout ip
  126. ; port
  127. ; h323id
  128. ; email
  129. ; url
  130. ; e164
  131. ; rtptimeout
  132. ;
  133. ;
  134. ; direct rtp between two remote peers, disabled by default
  135. ; can be specified globally or per peer/user section
  136. ;
  137. directmedia=no
  138. ;
  139. ; early direct rtp (try to establish direct rtp before asnwer)
  140. ; disabled by default, auto enabled by directmedia is enabled
  141. ; can be disabled escpecially if directmedia is enabled.
  142. ; can be specified globally or per peer/user section
  143. ;
  144. ;
  145. directrtpsetup=no
  146. ;Define users here
  147. ;Section header is extension
  148. [myuser1]
  149. type=user
  150. context=context1
  151. disallow=all
  152. allow=gsm
  153. allow=ulaw
  154. [mypeer1]
  155. type=peer
  156. context=context2
  157. ip=a.b.c.d ; UPDATE with appropriate ip address
  158. port=1720 ; UPDATE with appropriate port
  159. e164=101
  160. [myfriend1]
  161. type=friend
  162. context=default
  163. ip=10.0.0.82 ; UPDATE with appropriate ip address
  164. port=1820 ; UPDATE with appropriate port
  165. disallow=all
  166. allow=ulaw
  167. e164=12345
  168. rtptimeout=60
  169. dtmfmode=rfc2833