[Asterisk-Users] Asterisk with ooh323 registers with a cisco gatekeeper but disconnects after 300

Bukoka Budoka budoka806 at hotmail.com
Thu Dec 1 15:51:38 MST 2005


Hi,

after  installing ooh323 i tried to register the Asterisk box to a cisco 
gatekeeper.

In fact the Asterisk registers with the Cisco Gatekeeper. However after 300 
sec (the default TTL) the Asterisk gets unregistered and never  registers 
again.

What follows is the h323_log:

[root at localhost ~]# more /var/log/asterisk/h323_log
---------Date 11/30/05---------
23:44:21:290  Signalling IP address is set to 10.10.10.10
23:44:21:290  Listen port number is set to 1720
23:44:21:290  Gatekeeper Mode - RasUseSpecificGatekeeper
23:44:21:290  Gatekeeper IP:port set to - 10.10.10.20:1719
23:44:21:290  Enabled RFC2833 DTMF capability for end-point
23:44:21:290  H323 listener creation - successful
23:44:21:290  Creating CMD listener at 10.10.10.10:7575
23:44:21:290  CMD listener creation - successful
23:44:21:296  H.323 Endpoint Configuration is as follows:
23:44:21:296    Trace File: /var/log/asterisk/h323_log
23:44:21:296    FastStart - enabled
23:44:21:296    H245 Tunneling - enabled
23:44:21:296    AutoAnswer - disabled
23:44:21:296    Terminal Type - 50
23:44:21:296    T35 CountryCode - 1
23:44:21:296    T35 Extension - 0
23:44:21:296    Manufacturer Code - 71
23:44:21:296    ProductID - objsys
23:44:21:296    VersionID - v0.8
23:44:21:296    Local signalling IP address - 10.10.10.10
23:44:21:297    H225 ListenPort - 1720
23:44:21:297    CallerID - asterisk
23:44:21:297    Call Establishment Timeout - 60 seconds
23:44:21:297    MasterSlaveDetermination Timeout - 30 seconds
23:44:21:297    TerminalCapabilityExchange Timeout - 30 seconds
23:44:21:297    LogicalChannel  Timeout - 30 seconds
23:44:21:297    Session Timeout - 15 seconds
23:44:21:297  Gatekeeper Client Configuration:
23:44:21:297    Gatekeeper mode - UseSpecificGatekeeper
23:44:21:297    Gatekeeper To Use - 10.10.10.20:1719
23:44:21:297  H323 RAS channel creation - successful
23:44:21:298  Sent GRQ message
23:44:21:314  Gatekeeper Confirmed (GCF) message received.
23:44:21:314  Gatekeeper Confirmed
23:44:21:314  Sent RRQ message
23:44:21:326  Registration Confirm (RCF) message received
23:44:21:327  Gatekeeper supports KeepAlive, Registration TTL is 300
23:49:01:328  Sent RRQ message   <----------------------------Here it tries 
to register again but fails----
23:49:01:336  Registration Reject (RRJ) message received.
23:49:01:336  RRQ Rejected - Undefined Reason
23:49:01:336  Error: Gatekeeper error. Either Gk not responding or Gk 
sending invalid messages
23:49:01:336  Error: Gatekeeper error detected. Closing GkClient as Gk mode 
is UseSpecifcGatekeeper
23:49:01:336  Destroying Gatekeeper Client
23:49:01:336  Closed RAS channel

My ooh323.conf is as follows:

[general]

port=1720

bindaddr = 10.10.10.10

gateway = yes

;Whether asterisk should use fast-start and tunneling for H323 connections.
;Default - yes
;faststart=no
;h245tunneling=no


;H323-ID to be used for asterisk server
;Default - Asterisk PBX

h323id=ObjSysAsterisk
e164=1234567

;CallerID to use for calls
;Default - Same as h323id

callerid=asterisk

;Whether this asterisk server will use gatekeeper.
;Default - DISABLE
;gatekeeper = DISCOVER
;gatekeeper = a.b.c.d
;gatekeeper = DISABLE

gatekeeper = 10.10.10.20

;Location for H323 log file
;Default - /var/log/asterisk/h323_log
;logfile=/var/log/asterisk/h323_log

;Following values apply to all users/peers/friends defined below, unless
;overridden within their client definition

;Sets default context all clients will be placed in.
;Default - default

context = voip-h323

;Sets rtptimeout for all clients, unless overridden
;Default - 60 seconds
;rtptimeout=60      ; Terminate call if 60 seconds of no RTP activity
                   ; when we're not on hold

;Type of Service
;Default - none (lowdelay, thoughput, reliability, mincost, none)
;tos=lowdelay

;amaflags = default

;The account code used by default for all clients.
;accountcode=h3230101

;The codecs to be used for all clients.Only ulaw and gsm supported as of 
now.
;Default - ulaw
; ONLY ulaw, gsm, g729 and g7231 supported as of now
disallow=all     ;Note order of disallow/allow is important.
;allow=gsm
allow=ulaw


; dtmf mode to be used by default for all clients. Supports rfc2833, 
q931keypad
; h245alphanumeric, h245signal.
;Default - rfc 2833
dtmfmode=rfc2833

; User/peer/friend definitions:
; User config options                    Peer config options
; ------------------                     -------------------
; context
; disallow                               disallow
; allow                                  allow
; accountcode                            accountcode
; amaflags                               amaflags
; dtmfmode                               dtmfmode
; rtptimeout                             ip
;                                        port
;                                        h323id
;                                        email
;                                        url
;                                        e164
;                                        rtptimeout

;

;Define users here
;Section header is extension

;[myuser1]
;type=user
;context=context1
;disallow=all
;allow=gsm
;allow=ulaw



;[mypeer1]
;type=peer
;context=context2
;ip=a.b.c.d   ; UPDATE with appropriate ip address
;port=1720    ; UPDATE with appropriate port
;e164=101

When the Asterisk is registered to the Cisco Gatekeeper i get the following 
from the Cisco box:

gk#sh gatekeeper endpoints
                   GATEKEEPER ENDPOINT REGISTRATION
                   ================================
CallSignalAddr  Port  RASSignalAddr   Port  Zone Name         Type    Flags
--------------- ----- --------------- ----- ---------         ----    -----
10.10.10.10   1720  10.10.10.10   13030 gk.mydoimain.com UNKN-GW
   H323-ID: ObjSysAsterisk
   E164-ID: 1234567

Total number of active registrations = 1

After the Asterisk gets unregistered i get the following:

gk#sh gatekeeper endpoints
                   GATEKEEPER ENDPOINT REGISTRATION
                   ================================
CallSignalAddr  Port  RASSignalAddr   Port  Zone Name         Type    Flags
--------------- ----- --------------- ----- ---------         ----    -----

Thank you,

Budoka.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




More information about the asterisk-users mailing list