[Asterisk-Users] connect to gateway h323

Reli Loin kerpox at gmail.com
Mon Nov 14 08:07:46 MST 2005


Hello,

Hello, I do not arrive has to connect me has a gateway h323, in
termination of call.

i have one ip for a termination call xxx.xx.xx.xx,

I do not know if the problem comes from my parameters oh323.conf or the gateway


i using a latest version asterisk (asterisk 1.2rc1),openh323 latest
version mimas patch,
and pwlib latest version and asterisk-0h323-0.7.3

my config files.

-----oh323.conf-------------------

h245Tunnelling=yes
;
; Enable early H.245 messages in call SETUP message.
;
h245inSetup=yes
;
; Set jitter buffer (in milliseconds, 20...10000).
;
jitterMin=20
jitterMax=100
;
; Set IP Type-of-Service byte for RTP channels.
; Valid values for this option are:
;   lowdelay, throughput, reliability, mincost, none
; Moreover, an integer (in decimal or hex format) may be entered.
;
ipTos=none
;
; Set the maximum number of inbound/outbound/simultaneous
; H.323 connections.
;
outboundMax=100
inboundMax=100
simultaneousMax=100
;
; Call Rate Limiter params (ingress direction). When the total number
; of active calls is above 'crlThreshold' then the rate of the incoming
; H.323 calls is restricted in a way where no more than 'crlCallNumber'
; calls are allowed in 'crlCallTime' milliseconds, thus limiting the rate
; of incoming calls to:
;     'crlCallNumber' / ('crlCallTime' / 1000) Calls-per-Sec.
;
;crlCallNumber=20
;crlCallTime=20000
;crlThreshold=30
;
; Set the bandwidth limit for H.323 connections.
; The value is in Kbps.
;
;bandwidthLimit=1024
;
; Set tracing options for the wrapper library and for the
; OpenH323 library.
; libTraceFile can be 'stdout' or a full path name to the tracefile.

; Only the trace info for OpenH323 is logged in libTraceFile.
;
wrapLibTraceLevel=0
libTraceLevel=0
libTraceFile=stdout
;
; Disable gatekeeper or specify a gatekeeper. The gatekeeper's ID is
the zone name.
; Valid values for this option are:
;   DISABLE,
;   DISCOVER,
;   <gatekeeper's DNS name>,
;   <gatekeeper's ip>,
;   GKID:<gatekeeper's id>
;   <gatekeeper's id>@<gatekeeper's name or address>
;
;gatekeeper=192.168.1.6
gatekeeper=xxx.xxx.xxx.xx
;
; Set the gatekeeper password. If used, it enables H.235 access to gatekeeper.
;
;gatekeeperPassword=secret
;
; Set the gatekeeper registration timeout. Before the expiration of
; the timeout, a re-registration is attempted.
;
gatekeeperTTL=60
;
; Set the mode for sending user-input (DTMF)
; Valid values for this option are:
;   Q931        -   Q.931 Keypad Information Element
;   STRING      -   H.245 string
;   TONE        -   H.245 tone
;   RFC2833     -   RFC2833
;   INBAND      -
;
userInputMode=TONE
;
; AMA flags (default, omit, billing, documentation)
;
amaFlags=default
;
; Account code
;
;
accountCode=H323
;
; Default language
;
language=en
;
; Default Music-On-Hold class
;
musiconhold=default
;
; Set the default context of H.323 calls.
;
context=h323

;-----------------------------------------
; Configure H.323 aliases, prefixes and
; related ASTERISK's contexts
;-----------------------------------------
[register]
;
; Aliases/prefixes associated with the default context
; defined in section [general].
;
alias=asterisk
alias=123
;
; Aliases/prefixes routed in "all-aliases" context.
;
context=all-aliases
alias=ASTERISK
alias=666
;
; Aliases/prefixes routed in "more-aliases" context.
;
context=more-aliases
alias=665
;
; Aliases/prefixes routed in "all-prefixes" context.
;
context=all-prefixes
gwprefix=00
gwprefix=01
;


; Aliases/prefixes routed in "more-stuff" context.
;
context=more-stuff
alias=664
gwprefix=02

;-----------------------------------------
; Specify and configure CODEC related
; options
;-----------------------------------------
[codecs]
;
; Define the codec list of the channel driver.
; Every "codec" option may have a "frames" option
; associated with it.
; Valid values for the "codec" option are:
;   G711U       -   G.711 u-Law
;   G711A       -   G.711 A-Law
;   G7231       -   G.723.1(6.3k)
;   G72316K3    -   G.723.1(6.3k)
;   G72315K3    -   G.723.1(5.3k)
;   G7231A6K3   -   G.723.1A(6.3k)
;   G7231A6K3   -   G.723.1A(6.3k)
;   G726        -   G.726(32k)
;   G72616K     -   G.726(16k)
;   G72624K     -   G.726(24k)
;   G72632K     -   G.726(32k)
;   G72640K     -   G.726(40k)
;   G728        -   G.728
;   G729        -   G.729
;   G729A       -   G.729A
;   G729B       -   G.729B
;   G729AB      -   G.729AB
;   GSM0610     -   GSM 0610
;   MSGSM       -   Microsoft GSM Audio Capability
;   LPC10       -   LPC-10
; Number of frames in RTP packet (if not specified) is 1.
;
codec=G711A
frames=20
codec=G711U
frames=20
;codec=GSM0610

;frames=4
;codec=G7231
;frames=2
codec=G729
frames=2

[h323terminate]
type=peer
host=xx.xxx.xxx.xxx
dtmfcodec=99

----------------------------------------------


oh323 show conf in asterisk cli

 Configuration of OpenH323 channel driver
------------------------------------------
Version: 0.7.3
Listening on address: 0.0.0.0:1720
Gatekeeper used:  No gatekeeper
FastStart/H245Tunnelling/H245inSetup: ON/ON/ON
Supported formats in pref. order: alaw<0> ulaw<1> g729<2>
Jitter buffer limits (min/max): 20-100 ms
TCP port range: 10000 - 20000
UDP (RAS) port range: 10000 - 20000
UDP (RTP) port range: 10000 - 20000
IP Type-of-Service value: 0
User input mode: tone
Max number of inbound H.323 calls: 100
Max number of outbound H.323 calls: 100
Max number of simultaneous H.323 calls: 100
Max call rate (ingress direction): 1.00/30
Default language: en
Default music class: default
Default context: h323



More information about the asterisk-users mailing list