Stun-server has been disabled all the time. But I found a bug in the router config documentation:
The router configs that I've read (Cisco + WRT54GC) says that only TCP port 5090 should be forwarded. But UDP port 5090 should also be forwarded. I found this by looking at the logs in my Cisco-ASA where I could see that the Firewall Checker tried to build an outbound UDP connection on port 5090. This explains why I get a WARNING on step 3 when running Firewall Checker (see previous post).
So now when I've enabled UDP 5090 then Firewall Checker returns "Application exit code is 0"
But the disconnect still occurs after 32 seconds. Note that it doesn't always disconnect, but perhaps 50% of the incoming calls are disconnected, and the following log is then seen:
12:44:26.329 [CM503008]: Call(5): Call is terminated
12:44:26.283 [CM503008]: Call(5): Call is terminated
12:44:26.173 [CM503008]: Call(5): Call is terminated
12:44:26.173 [CM503020]: Call(5): ACK is not received
12:43:54.282 [CM503007]: Call(5): Device joined: sip:
[email protected]:5060
12:43:54.220 [CM503007]: Call(5): Device joined: sip:
[email protected]:5060;transport=tcp
12:43:54.095 [MS210003] C:5.1:Answer provided. Connection(transcoding mode):82.182.66.7:9008(9009)
12:43:54.079 [MS210001] C:5.2:Answer received. RTP connection: 192.168.100.25:7200(7201)
12:43:54.079 Remote SDP is set for legC:5.2
12:43:49.938 [CM505001]: Ext.11: Device info: Device Identified: [Man: Snom;Mod: 3xx series;Rev: General] Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [snom370/7.3.14] Transport: [sip:192.168.100.23:5060]
12:43:49.938 [CM503002]: Call(5): Alerting sip:
[email protected]:1024;line=i5ww7gif
12:43:49.782 [CM505001]: Ext.15: Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [Grandstream GXW-4008 V1.3A 1.0.1.35] Transport: [sip:192.168.100.23:5060]
12:43:49.782 [CM503002]: Call(5): Alerting sip:
[email protected]:5062
12:43:49.735 [CM505001]: Ext.14: Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [Grandstream GXW-4008 V1.3A 1.0.1.35] Transport: [sip:192.168.100.23:5060]
12:43:49.735 [CM503002]: Call(5): Alerting sip:
[email protected]:5060
12:43:49.641 [CM503024]: Call(5): Calling RingAll64:14Ext.1424Ext.2425Ext.2511Ext.1115Ext.15@[Dev:sip:
[email protected]:5062]
12:43:49.641 [MS210002] C:5.4:Offer provided. Connection(transcoding mode): 192.168.100.23:7024(7025)
12:43:49.595 [CM503024]: Call(5): Calling RingAll64:14Ext.1424Ext.2425Ext.2511Ext.1115Ext.15@[Dev:sip:
[email protected]:1024;line=i5ww7gif]
12:43:49.595 [MS210002] C:5.3:Offer provided. Connection(transcoding mode): 192.168.100.23:7022(7023)
12:43:49.563 [CM503024]: Call(5): Calling RingAll64:14Ext.1424Ext.2425Ext.2511Ext.1115Ext.15@[Dev:sip:
[email protected]:5060]
12:43:49.548 [MS210002] C:5.2:Offer provided. Connection(transcoding mode): 192.168.100.23:7020(7021)
12:43:49.423 [CM503004]: Call(5): Route 1: RingAll64:14Ext.1424Ext.2425Ext.2511Ext.1115Ext.15@[Dev:sip:
[email protected]:5060, Dev:sip:
[email protected]:1024;line=i5ww7gif, Dev:sip:
[email protected]:5062]
12:43:49.407 [CM503010]: Making route(s) to <sip:
[email protected]:5060>
12:43:49.407 [MS210000] C:5.1:Offer received. RTP connection: 217.10.96.68:44168(44169)
12:43:49.407 Remote SDP is set for legC:5.1
12:43:49.407 [CM505003]: Provider:[NETatONCE privat] Device info: Device Not Identified: User Agent not matched; Capabilities:[reinvite, replaces, able-no-sdp, recvonly] UserAgent: [LEICA-1.8.28] Transport: [sip:192.168.100.23:5060]
12:43:49.313 [CM503001]: Call(5): Incoming call from +46705399857@(Ln.10002@NETatONCE privat) to <sip:
[email protected]:5060>
12:43:49.298 [CM503012]: Inbound out-of-office hours rule (unnamed) for 10002 forwards to DN:64
12:43:49.298 Looking for inbound target: called=+46856474000; caller=+46705399857
12:43:49.220 [CM500002]: Info on incoming INVITE:
INVITE sip:
[email protected]:5060;rinstance=4fa5683e507d6a13 SIP/2.0
Via: SIP/2.0/UDP 217.10.96.45;branch=z9hG4bK6cdd.585868e2.0
Via: SIP/2.0/UDP kst-sipp.sipgw.tdcsong.se:5060;rport=5060;received=213.50.75.168;branch=z9hG4bK-yxa-rxkzsynhgwckakimdjzkjq-UAC-olfwrse0qaynt9kfgtlyf6w
Via: SIP/2.0/TCP 213.50.75.172:5060;branch=z9hG4bK-d8754z-32dade19f1db1c2b-1---d8754z-;received=213.50.75.172;rport=46398
Max-Forwards: 68
Record-Route: <sip:217.10.96.68:5060;nat=yes;ftag=67ae5933;lr=on>
Record-Route: <sip:sipgw.tdcsong.se;lr>
Contact: <sip:
[email protected]:5060;transport=tcp>
To: "0856474000"<sip:
[email protected];user=phone>
From: "0705399857"<sip:
[email protected];user=phone>;tag=67ae5933
Call-ID: ZmNmYmIyOTQyM2UxZDAyNTk0NGJiNmNmMGNiMzczNDE.
CSeq: 1 INVITE
Session-Expires: 9200;refresher=uac
Min-SE: 9200
Allow: INVITE, ACK, BYE, CANCEL
Supported: timer
User-Agent: LEICA-1.8.28
Content-Length: 0
Remote-Party-ID: "705399857"<sip:
[email protected]>;privacy=off
X-Ecan: On
12:43:34.547 [CM503008]: Call(4): Call is terminated