Debian Codegraph @

configs/samples/ooh323.conf.sample

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