# Ooh323\<-\>pjsip audio call

**URL:** <https://community.asterisk.org/t/ooh323-pjsip-audio-call/89426>\
**Category:** Asterisk Support\
**Created:** [August 3, 2021, 11:15am UTC](https://community.asterisk.org/t/ooh323-pjsip-audio-call/89426 "2021-08-03T11:15:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thzjy](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@thzjy](https://community.asterisk.org/u/thzjy)\
**Post date:** [August 3, 2021, 11:15am UTC](https://community.asterisk.org/t/ooh323-pjsip-audio-call/89426/1 "2021-08-03T11:15:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [September 2, 2021, 11:15am UTC](https://community.asterisk.org/t/ooh323-pjsip-audio-call/89426/2 "2021-09-02T11:15:12Z")

</div>

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