Ooh323<->pjsip audio call

When I configured GNUGK and Asterisk on a cloud server, I got this weird situation. They work fine on LAN. I have yate softphone, polycom RPD softphone and microsip softphone in my local VMware machine behind nat. I install GNUGK and Asterisk on one cloud server with a different port.
There 2 calls succeeded, and 2 calls failed, all audio calls.

yate h323 softphone(support faststart) => gnugk => asterisk.ooh323(faststart=yes) => asterisk.pjsip => microsip softphone (this h323 → sip call succeed)
yate h323 softphone(support faststart) <= gnugk <= asterisk.ooh323(faststart=yes) <= asterisk.pjsip <= microsip softphone (this sip → h323 call failed)
polycom RPD h323 softphone(not support faststart) => gnugk => asterisk.ooh323(faststart=no) => asterisk.pjsip => microsip softphone (this h323 → sip call failed)
polycom RPD h323 software(not support faststart) <= gnugk <= asterisk.ooh323(faststart=no) <= asterisk.pjsip <= microsip softphone (this sip → h323 call succeed)

I attached two failed call logs that came from GNUGK. It seems GNUGK can not establish a h245 connection with Asterisk. Could you give me some tips on this? Thanks.

========================ooh323.conf======================
[general]
port=1730
bindaddr=0.0.0.0
gateway=yes

;polycom
faststart=no
h245tunneling=yes
mediawaitforconnect=yes

;yate
;faststart=yes
;h245tunneling=yes
;mediawaitforconnect=no

;lan
;directmedia=yes
;directrtpsetup=yes

h323id=ObjSysAsterisk
callerid=asterisk
gatekeeper = 172.16.0.4
logfile=/var/log/asterisk/h323_log
context=default

disallow=all
allow=ulaw
dtmfmode=h245signal

[8001] ;yate 8001
type=user
context=h323context
disallow=all
allow=ulaw

[Win10-2021KVQWA] ;polycom 8001
type=user
context=h323context
disallow=all
allow=ulaw

[h323peer] ;h323 outgoing
IP=172.16.0.4
port=1720
type=peer
h323id=gnugk
disallow=all
allow=ulaw
dtmfmode=h245signal

=============================extensions.conf================
[general]
static=yes
writeprotect=no
autofallthrough=no
clearglobalvars=no

[globals]
TRUNKMSD=1

[from-internal]
exten => 1001,1,Dial(PJSIP/1001)
exten => 1002,1,Dial(PJSIP/1002)
exten => 8001,1,Dial(OOH323/8001/h323peer)

[h323context]
exten => 1001,1,Dial(PJSIP/1001)

==============================gnugk.ini======================
[Gatekeeper::Main]
Name=GnuGk
TimeToLive=600
CompareAliasType=0
CompareAliasCase=0
externalip=106.13.51.69

[GkStatus::Auth]
rule=explicit
127.0.0.1=allow
default=forbid
Shutdown=allow

[RoutedMode]
GKRouted=1
H245Routed=1
CallSignalPort=1720
AcceptUnregisteredCalls=0
DropCallsByReleaseComplete=1
SupportNATedEndpoints=1
EnableH46018=1
EnableH46026=1

[RasSrv::GWPrefixes]
ObjSysAsterisk=70

[RoutingPolicy]
default=internal,explicit,srv,dns

==============================pjsip.conf========================
[transport-tcp-nat]
type=transport
protocol=tcp
bind=0.0.0.0
local_net=172.16.0.0/24
external_media_address=106.13.51.69
external_signaling_address=106.13.51.69

[1001]
type=endpoint
context=from-internal
disallow=all
allow=g729,ulaw,h264
auth=1001
aors=1001
transport=transport-tcp-nat
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
ice_support=yes

[1001]
type=auth
auth_type=userpass
password=1001
username=1001

[1001]
type=aor
max_contacts=1

[1002]
type=endpoint
context=from-internal
disallow=all
allow=g729,ulaw,h264
auth=1002
aors=1002
transport=transport-tcp-nat
direct_media=no
rtp_symmetric=yes
force_rport=yes
rewrite_contact=yes
ice_support=yes

[1002]
type=auth
auth_type=userpass
password=1002
username=1002

[1002]
type=aor
max_contacts=1

gnugk log fie: polycom RPD h323softphone call microSip softphone

2021/08/02 23:57:08.194 3 ProxyChannel.cxx(2238) Q931d Received: CallProceeding CRV=19825 from 106.13.51.69:1730
2021/08/02 23:57:08.268 3 ProxyChannel.cxx(2238) Q931d Received: Alerting CRV=19825 from 106.13.51.69:1730
2021/08/02 23:57:08.269 2 gkacct.cxx(984) GKACCT Successfully logged event 64 for call no. 6
2021/08/02 23:57:08.269 3 ProxyChannel.cxx(2238) Q931d Received: Progress CRV=19825 from 106.13.51.69:1730
2021/08/02 23:57:08.269 3 ProxyChannel.cxx(10151) H245 Set h245Address to 106.13.51.69:45956 (CallID: b4 c5 76 b8 02 1d 00 1f 1b ed 22 b3 70 e9 6e 0f)
2021/08/02 23:57:08.269 3 ProxyChannel.cxx(2238) Q931d Received: Facility CRV=19825 from 106.13.51.69:1730
2021/08/02 23:57:08.269 3 ProxyChannel.cxx(10151) H245 Set h245Address to 106.13.51.69:45956 (CallID: b4 c5 76 b8 02 1d 00 1f 1b ed 22 b3 70 e9 6e 0f)
2021/08/02 23:57:08.339 3 ProxyChannel.cxx(10018) H245 Connected from 103.57.12.21:51215 on 172.16.0.4:45956 (CallID: b4 c5 76 b8 02 1d 00 1f 1b ed 22 b3 70 e9 6e 0f)
2021/08/02 23:57:08.339 3 ProxyChannel.cxx(10049) H245 Invalid address
2021/08/02 23:57:08.339 1 ProxyChannel.cxx(9709) Error: Establishing the H.245 channel failed, disconnecting
2021/08/02 23:57:08.339 2 RasTbl.cxx(5840) CDR ignore not connected call
2021/08/02 23:57:08.339 2 gkacct.cxx(984) GKACCT Successfully logged event 2 for call no. 6
2021/08/02 23:57:08.339 3 yasocket.cxx(895) Q931d 106.13.51.69:1730 Error(0): Interrupted system call (10:9)
2021/08/02 23:57:08.340 1 ProxyChannel.cxx(16155) ProxyH(1) Trying to add an already existing socket to the handler

gnugk log file: microSip softphone call yate h323softphone

2021/08/02 23:52:56.857 3 ProxyChannel.cxx(2238) Q931s Received: Setup CRV=14 from 106.13.51.69:12030
2021/08/02 23:52:56.857 1 ProxyChannel.cxx(4728) Removing External IP from destCallSignalAddr in Setup
2021/08/02 23:52:56.857 2 gkacct.cxx(984) GKACCT Successfully logged event 1 for call no. 5
2021/08/02 23:52:56.858 3 ProxyChannel.cxx(5833) calling=0.0.0.0
2021/08/02 23:52:56.858 3 ProxyChannel.cxx(5834) peerAddr=103.57.12.21
2021/08/02 23:52:56.858 3 ProxyChannel.cxx(5937) Q931s Call 5 is NAT type 1
2021/08/02 23:52:56.858 1 ProxyChannel.cxx(2018) Call 5: h245Routed=1 proxy=0
2021/08/02 23:53:02.861 1 ProxyChannel.cxx(9269) Q931d Could not open/connect Q.931 socket at 172.16.0.4:0 - error 9/110: Resource temporarily unavailable remote addr: 103.57.12.21
2021/08/02 23:53:02.862 3 ProxyChannel.cxx(8666) Q931 103.57.12.21:1720 DIDN’T ACCEPT THE CALL
2021/08/02 23:53:02.862 2 RasTbl.cxx(5840) CDR ignore not connected call
2021/08/02 23:53:02.862 2 gkacct.cxx(984) GKACCT Successfully logged event 2 for call no. 5
2021/08/02 23:53:02.862 3 yasocket.cxx(804) Q931d Delete socket 103.57.12.21:1720
2021/08/02 23:53:02.862 3 yasocket.cxx(804) Q931s Delete socket 106.13.51.69:12030

disconnecting

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.