H323 inter-asterisk connection fail

Does any body try to connect two asterisk box with ooh.323?

I can install the ooh323 from the asterisk-addons.
However, I have never sucesfully make a call to each other box by ooh323.

I take a look at the log file(/var/log/asterisk/h323_log).
It seems that the message format incorrect. But I am wonder why the message format is umcompatable? The two asterisk boxs is new install.
The versions of the asterisk are 1.4.22 and 1.4.14.
The addons version both are addons-1.4.7.

Is the codec problem? Do I need to recompile the libpri(Q.931)?
Do I need to install PWLib?
Do I need to configure the h323.conf?

By the way, I have tried to connect to other h323 end-point. I can make a call sucessfully. But the problem is still there. Why?

There is a H323 plus open source packages. It is possible to use H323 plus in asterisk?

Here is the ooh323.conf and the message in h323_log

ooh323.conf
[general]
port=1720
bindaddr=XXX.XXX.XXX.XXX
h323id=ObjSysAsterisk
e164=100
callerid=asterisk
gatekeeper = DISABLE
faststart=no
context=default
; when we’re not on hold
disallow=all ;Note order of disallow/allow is important.
allow=ulaw
allow=gsm
dtmfmode=rfc2833

[myfriend1]
type=friend
context=default
ip=XXX.XXX.XXX.XXX ; UPDATE with appropriate ip address
port=1720 ; UPDATE with appropriate port
disallow=all
allow=ulaw
e164=12345
rtptimeout=60
dtmfmode=rfc2833

Error Message
---------Date 11/27/08---------
10:50:13:067 Signalling IP address is set to xxx.xxx.xxx.xxx
10:50:13:067 Listen port number is set to 1720
10:50:13:067 Added alias: DialedDigits - 100
10:50:13:067 Added alias: H323ID - ObjSysAsterisk
10:50:13:067 Added alias: DialedDigits - 12345
10:50:13:067 Added alias: DialedDigits - 101
10:50:13:067 Adding endpoint capability OO_G711ULAW64K.
10:50:13:067 Enabled RFC2833 DTMF capability for end-point
10:50:13:067 H323 listener creation - successful
10:50:13:068 H.323 Endpoint Configuration is as follows:
10:50:13:068 Trace File: /var/log/asterisk/h323_log
10:50:13:068 FastStart - disabled
10:50:13:068 H245 Tunneling - enabled
10:50:13:068 MediaWaitForConnect - disabled
10:50:13:068 AutoAnswer - disabled
10:50:13:068 Terminal Type - 50
10:50:13:068 T35 CountryCode - 1
10:50:13:068 T35 Extension - 0
10:50:13:068 Manufacturer Code - 71
10:50:13:068 ProductID - objsys
10:50:13:068 VersionID - v0.8.3
10:50:13:068 Local signalling IP address - xxx.xxx.xxx.xxx
10:50:13:068 H225 ListenPort - 1720
10:50:13:068 CallerID - asterisk
10:50:13:068 Call Establishment Timeout - 60 seconds
10:50:13:068 MasterSlaveDetermination Timeout - 30 seconds
10:50:13:068 TerminalCapabilityExchange Timeout - 30 seconds
10:50:13:068 LogicalChannel Timeout - 30 seconds
10:50:13:068 Session Timeout - 15 seconds
12:13:59:308 Processing MakeCall command ooh323c_o_1
12:13:59:308 Created a new call (outgoing, ooh323c_o_1)
12:13:59:308 Added local alias to call. (outgoing, ooh323c_o_1)
12:13:59:308 Added remote alias 1833 to call. (outgoing, ooh323c_o_1)
12:13:59:308 Enabled RFC2833 DTMF capability for (outgoing, ooh323c_o_1)
12:13:59:308 Adding call specific capability OO_G711ULAW64K. (outgoing, ooh323c_o_1)
12:13:59:308 Adding call specific capability OO_GSMFULLRATE. (outgoing, ooh323c_o_1)
12:13:59:308 Configured mediainfo for cap OO_G711ULAW64K (outgoing, ooh323c_o_1)
12:13:59:308 Configured mediainfo for cap OO_G711ULAW64K (outgoing, ooh323c_o_1)
12:13:59:308 Configured mediainfo for cap OO_GSMFULLRATE (outgoing, ooh323c_o_1)
12:13:59:308 Configured mediainfo for cap OO_GSMFULLRATE (outgoing, ooh323c_o_1)
12:13:59:308 Parsing destination 202.126.214.30
12:13:59:308 Generated callRef 38
12:13:59:308 Trying to connect to remote endpoint(202.126.214.30:1720) to setup H2250 channel (outgoing, ooh323c_o_1)
12:13:59:322 H2250 transmiter channel creation - succesful (outgoing, ooh323c_o_1)
12:13:59:323 Built SETUP message (outgoing, ooh323c_o_1)
12:13:59:323 Asn1Error: -23 at ooh323c/src/encode.c:516
12:13:59:323 Asn1Error: -23 at ooh323c/src/encode.c:969
12:13:59:323 Asn1Error: -23 at ooh323c/src/encode.c:237
12:13:59:323 ERROR: UserInfo encoding failed
12:13:59:323 Error:Failed to encode uuie. (outgoing, ooh323c_o_1)
12:13:59:323 Error:Failed to encode H225 message. (outgoing, ooh323c_o_1)
12:13:59:323 Error:Failed to enqueue SETUP message to outbound queue. (outgoing, ooh323c_o_1)
12:14:21:885 Processing Hang call command ooh323c_o_1
12:14:21:885 Hanging up call (outgoing, ooh323c_o_1)
12:14:21:885 In ooEndCall call state is - OO_CALL_CLEAR (outgoing, ooh323c_o_1)
12:14:21:885 Building Release Complete message to send(outgoing, ooh323c_o_1)
12:14:21:885 Built Release Complete message (outgoing, ooh323c_o_1)
12:14:21:885 UserInfo encoding - successful
12:14:21:885 Q931 Message = {
12:14:21:885 protocolDiscriminator = 8
12:14:21:885 callReference = 38
12:14:21:885 from = originator
12:14:21:885 messageType = 5a
12:14:21:885 Cause IE = {
12:14:21:885 Q931NormalUnspecified
12:14:21:885 }
12:14:21:885 h323_uu_pdu = {
12:14:21:885 h323_message_body = {
12:14:21:885 releaseComplete = {
12:14:21:886 protocolIdentifier = {
12:14:21:886 {
12:14:21:886 0 0 8 2250 0 }
12:14:21:886 }
12:14:21:886 reason = {
12:14:21:886 noBandwidth = {
12:14:21:887 NULL
12:14:21:887 }
12:14:21:887 }
12:14:21:887 Asn1Error: -2 at ooh323c/src/decode.c:64
12:14:21:887 Error: UserUser IE decode failed
12:14:21:887 Error:Failed decoding Q931 message. (outgoing, ooh323c_o_1)
12:14:21:887 }
12:14:21:887 ERROR: unbalanced structure
12:14:21:887 Sending H225 message (outgoing, ooh323c_o_1)
12:14:21:887 Sending Q931 message (outgoing, ooh323c_o_1)
12:14:21:887 H2250/Q931 Message sent successfully (outgoing, ooh323c_o_1)
12:14:21:887 Sent Message - ReleaseComplete (outgoing, ooh323c_o_1)
12:14:21:887 In ooEndCall call state is - OO_CALL_CLEAR_RELEASESENT (outgoing, ooh323c_o_1)
12:14:21:988 In ooEndCall call state is - OO_CALL_CLEAR_RELEASESENT (outgoing, ooh323c_o_1)
12:14:22:087 In ooEndCall call state is - OO_CALL_CLEAR_RELEASESENT (outgoing, ooh323c_o_1)
12:14:36:694 In ooEndCall call state is - OO_CALL_CLEAR_RELEASESENT (outgoing, ooh323c_o_1)
12:14:36:794 In ooEndCall call state is - OO_CALL_CLEAR_RELEASESENT (outgoing, ooh323c_o_1)
12:14:36:888 SessionTimer expired. (outgoing, ooh323c_o_1)
12:14:36:888 In ooEndCall call state is - OO_CALL_CLEARED (outgoing, ooh323c_o_1)
12:14:36:889 Cleaning Call (outgoing, ooh323c_o_1)- reason:OO_REASON_UNKNOWN
12:14:36:889 Closing H.245 connection (outgoing, ooh323c_o_1)
12:14:36:889 Removed call (outgoing, ooh323c_o_1) from list

I would stay far away from ooh323. It crashes asterisk way to often. I was using asterisk for SIP -> H323 and the H323 module caused asterisk to crash several times a day (at least).

But how to make the h323 work?
SIP -> H323 means connect the H323 using SIP?

I found there is a package call h323plus in the bug report.
It just release a few days ago.
Does any body try?

Can you post a URL to it ? I would be interested in testing it.

bugs.digium.com/view.php?id=11261

I wasnt able to compile it. Did you install it ? (Could be the lack of sleep that didn’t let me set it up).

I can compile the H323plus and the ptlib.
But I found that the H323plus require the pwlib(the older version 1.0 ~ 1.1).
However, even though I install the pwlib, the H323plus is still compliant
about the pwlib.
So I create a link from /usr/local/share/pwlib/make to /usr/local/share/ptlib/make.
At last I can compile the H323plus.

But … I can’t compile the asterisk.