NAT again?!

Hello,
I’ve got strange issue. I presume it has something with NAT, but I can’t solve it and honestly I don’t know where to start. I already read few posts about similar problems but they didn’t solve my problem.
Well, in internal network my calls work well. But I have a few extensions outside the NAT. When I call them, everything is ok. But when the other (outside) party calls me, he can’t hear me - and I can hear him.
Everything depends on who starts the call.
The router ports are opened and forwarded, I believe that my PJSIP settings, external and internal addresses are also correct (they are autodiscovered).

And I’ve got another question, but it may be connected with the first one. Sometimes I use MizuDroid client on my cellphone. I’ve got set my public IP address as SIP ip. So when I connect from external network, everything is ok, but when I call from local network, no sound can be heard. On the other hand if I changed the address to internal one, this work the opposite way (what is quite uderstandable). What to do to make possible internal and external calls?

At the Asterisk CLI,

rtp set debug on

It will likely show what asterisk sees as far as media streams are concerned, and help you identify what part of your network is misbehaving (and under what conditions…)

do that, make a failing call and post a snippet from the log.

For the one-way audio issue, confirm that the remote extension has:
RTP Symmetric, Rewrite Contact and Force rport all set to Yes, and Direct Media set to No.

For the second issue, set up a DNS name that points to your public IP address, but also set up a local DNS that resolves to the PBX LAN address. If your router/firewall acts as DNS server for your LAN, you may be able to configure a manual DNS entry to do this. Alternatively, set up the router so it handles ‘hairpinning’ properly (though many routers lack this capability).

If you still have trouble, paste a SIP trace (pjsip set logger on) in addition to the rtp debug.

The solution of second issue simple and elegant. Hats off and thank you.
The settings of external extension are correct. I will try to reproduce the call and paste the log.

	
3786	[2022-04-18 10:39:32] VERBOSE[2426] res_pjsip_logger.c: <--- Transmitting SIP request (403 bytes) to UDP:192.168.0.176:26099 --->	
3787	ACK sip:[email protected]:26099 SIP/2.0	
3788	Via: SIP/2.0/UDP 192.168.0.169:26099;rport;branch=z9hG4bKPjf0be4a88-ac2a-4f0b-8474-8171e798229a	
3789	From: "Malgorzata" <sip:[email protected]>;tag=c34cf12e-ba3d-4f35-ad91-b5f4c9506fcd	
3790	To: <sip:[email protected]>;tag=5IzN4kTOGNE	
3791	Call-ID: f3aa7e5e-46fa-4964-956b-d445456dd918	
3792	CSeq: 8807 ACK	
3793	Max-Forwards: 70	
3794	User-Agent: FPBX-16.0.19(16.24.0)	
3795	Content-Length: 0	
3796		
3797		
3798	[2022-04-18 10:39:32] VERBOSE[22716][C-00000005] app_dial.c: PJSIP/20-00000009 answered PJSIP/30-00000008	
3799	[2022-04-18 10:39:32] VERBOSE[2426] res_pjsip_logger.c: <--- Transmitting SIP response (900 bytes) to UDP:PARTY_EXTERNAL_IP:26099 --->	
3800	SIP/2.0 200 OK	
3801	Via: SIP/2.0/UDP PARTY_EXTERNAL_IP:26099;rport=26099;received=PARTY_EXTERNAL_IP;branch=z9hG4bKa8a165495156c57d	
3802	Call-ID: 170423A7B4185@PARTY_EXTERNAL_IP	
3803	From: <sip:30@MY_DOMAIN;user=phone>;tag=BFTMwYDNFND	
3804	To: <sip:20@MY_DOMAIN>;tag=26e89169-67e0-408c-a589-250bc5470049	
3805	CSeq: 2 INVITE	
3806	Server: FPBX-16.0.19(16.24.0)	
3807	Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER	
3808	Contact: <sip:MY_EXTERNAL_IP:26099>	
3809	Supported: 100rel, timer, replaces, norefersub	
3810	P-Asserted-Identity: "Jakalscy" <sip:20@MY_DOMAIN>	
3811	Content-Type: application/sdp	
3812	Content-Length: 261	
3813		
3814	v=0	
3815	o=- 65121064 65121066 IN IP4 MY_EXTERNAL_IP	
3816	s=Asterisk	
3817	c=IN IP4 MY_EXTERNAL_IP	
3818	t=0 0	
3819	m=audio 17040 RTP/AVP 0 8 100	
3820	a=rtpmap:0 PCMU/8000	
3821	a=rtpmap:8 PCMA/8000	
3822	a=rtpmap:100 telephone-event/8000	
3823	a=fmtp:100 0-16	
3824	a=ptime:20	
3825	a=maxptime:150	
3826	a=sendrecv	
3827		
3828	[2022-04-18 10:39:32] VERBOSE[22781][C-00000005] bridge_channel.c: Channel PJSIP/20-00000009 joined 'simple_bridge' basic-bridge <5a5bc7cd-e9a3-4f04-81fe-4b7c7d4cbdaa>	
3829	[2022-04-18 10:39:32] VERBOSE[22716][C-00000005] bridge_channel.c: Channel PJSIP/30-00000008 joined 'simple_bridge' basic-bridge <5a5bc7cd-e9a3-4f04-81fe-4b7c7d4cbdaa>	
3830	[2022-04-18 10:39:32] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002826, ts 448540, len 000160)	
3831	[2022-04-18 10:39:32] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003728, ts 448536, len 000160)	
3832	[2022-04-18 10:39:32] VERBOSE[2425] res_pjsip_logger.c: <--- Received SIP request (356 bytes) from UDP:PARTY_EXTERNAL_IP:26099 --->	
3833	ACK sip:MY_EXTERNAL_IP:26099 SIP/2.0	
3834	Via: SIP/2.0/UDP PARTY_EXTERNAL_IP:26099;branch=z9hG4bKa8a165495156c57d	
3835	Max-Forwards: 70	
3836	To: <sip:20@MY_DOMAIN>;tag=26e89169-67e0-408c-a589-250bc5470049	
3837	From: <sip:30@MY_DOMAIN;user=phone>;tag=BFTMwYDNFND	
3838	Call-ID: 170423A7B4185@PARTY_EXTERNAL_IP	
3839	CSeq: 2 ACK	
3840	User-Agent: P-2612HW-F1 370BLD4	
3841	Content-Length: 0	
3842		
3843		
3844	[2022-04-18 10:39:32] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002827, ts 448700, len 000160)	
3845	[2022-04-18 10:39:32] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003729, ts 448696, len 000160)	
3846	[2022-04-18 10:39:32] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002828, ts 448860, len 000160)	
3847	[2022-04-18 10:39:32] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003730, ts 448856, len 000160)	
3848	[2022-04-18 10:39:32] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002829, ts 449020, len 000160)	
3849	[2022-04-18 10:39:32] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003731, ts 449016, len 000160)	
3850	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002830, ts 449180, len 000160)	
3851	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003732, ts 449176, len 000160)	
3852	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002831, ts 449340, len 000160)	
3853	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003733, ts 449336, len 000160)	
3854	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002832, ts 449500, len 000160)	
3855	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003734, ts 449496, len 000160)	
3856	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002833, ts 449660, len 000160)	
3857	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003735, ts 449656, len 000160)	
3858	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002834, ts 449820, len 000160)	
3859	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003736, ts 449816, len 000160)	
3860	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002835, ts 449980, len 000160)	
3861	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003737, ts 449976, len 000160)	
3862	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002836, ts 450140, len 000160)	
3863	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003738, ts 450136, len 000160)	
3864	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002837, ts 450300, len 000160)	
3865	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003739, ts 450296, len 000160)	
3866	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002838, ts 450460, len 000160)	
3867	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003740, ts 450456, len 000160)	
3868	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002839, ts 450620, len 000160)	
3869	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003741, ts 450616, len 000160)	
3870	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002840, ts 450780, len 000160)	
3871	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003742, ts 450776, len 000160)	
3872	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002841, ts 450940, len 000160)	
3873	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003743, ts 450936, len 000160)	
3874	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002842, ts 451100, len 000160)	
3875	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003744, ts 451096, len 000160)	
3876	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002843, ts 451260, len 000160)	
3877	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003745, ts 451256, len 000160)	
3878	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002844, ts 451420, len 000160)	
3879	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003746, ts 451416, len 000160)	
3880	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002845, ts 451580, len 000160)	
3881	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003747, ts 451576, len 000160)	
3882	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002846, ts 451740, len 000160)	
3883	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003748, ts 451736, len 000160)	
3884	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002847, ts 451900, len 000160)	
3885	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003749, ts 451896, len 000160)	
3886	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002848, ts 452060, len 000160)	
3887	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003750, ts 452056, len 000160)	
3888	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002849, ts 452220, len 000160)	
3889	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003751, ts 452216, len 000160)	
3890	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002850, ts 452380, len 000160)	
3891	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003752, ts 452376, len 000160)	
3892	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002851, ts 452540, len 000160)	
3893	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003753, ts 452536, len 000160)	
3894	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002852, ts 452700, len 000160)	
3895	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003754, ts 452696, len 000160)	
3896	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002853, ts 452860, len 000160)	
3897	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003755, ts 452856, len 000160)	
3898	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002854, ts 453020, len 000160)	
3899	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003756, ts 453016, len 000160)	
3900	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002855, ts 453180, len 000160)	
3901	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003757, ts 453176, len 000160)	
3902	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002856, ts 453340, len 000160)	
3903	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003758, ts 453336, len 000160)	
3904	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002857, ts 453500, len 000160)	
3905	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003759, ts 453496, len 000160)	
3906	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002858, ts 453660, len 000160)	
3907	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003760, ts 453656, len 000160)	
3908	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002859, ts 453820, len 000160)	
3909	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003761, ts 453816, len 000160)	
3910	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002860, ts 453980, len 000160)	
3911	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003762, ts 453976, len 000160)	
3912	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002861, ts 454140, len 000160)	
3913	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003763, ts 454136, len 000160)	
3914	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002862, ts 454300, len 000160)	
3915	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003764, ts 454296, len 000160)	
3916	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002863, ts 454460, len 000160)	
3917	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003765, ts 454456, len 000160)	
3918	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002864, ts 454620, len 000160)	
3919	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003766, ts 454616, len 000160)	
3920	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002865, ts 454780, len 000160)	
3921	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003767, ts 454776, len 000160)	
3922	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002866, ts 454940, len 000160)	
3923	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003768, ts 454936, len 000160)	
3924	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002867, ts 455100, len 000160)	
3925	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003769, ts 455096, len 000160)	
3926	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002868, ts 455260, len 000160)	
3927	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003770, ts 455256, len 000160)	
3928	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002869, ts 455420, len 000160)	
3929	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003771, ts 455416, len 000160)	
3930	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002870, ts 455580, len 000160)	
3931	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003772, ts 455576, len 000160)	
3932	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002871, ts 455740, len 000160)	
3933	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003773, ts 455736, len 000160)	
3934	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002872, ts 455900, len 000160)	
3935	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003774, ts 455896, len 000160)	
3936	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002873, ts 456060, len 000160)	
3937	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003775, ts 456056, len 000160)	
3938	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002874, ts 456220, len 000160)	
3939	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003776, ts 456216, len 000160)	
3940	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002875, ts 456380, len 000160)	
3941	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003777, ts 456376, len 000160)	
3942	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002876, ts 456540, len 000160)	
3943	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003778, ts 456536, len 000160)	
3944	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002877, ts 456700, len 000160)	
3945	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003779, ts 456696, len 000160)	
3946	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002878, ts 456860, len 000160)	
3947	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003780, ts 456856, len 000160)	
3948	[2022-04-18 10:39:33] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002879, ts 457020, len 000160)	
3949	[2022-04-18 10:39:33] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003781, ts 457016, len 000160)	
3950	[2022-04-18 10:39:34] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002880, ts 457180, len 000160)	
3951	[2022-04-18 10:39:34] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003782, ts 457176, len 000160)	
3952	[2022-04-18 10:39:34] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002881, ts 457340, len 000160)	
3953	[2022-04-18 10:39:34] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003783, ts 457336, len 000160)	
3954	[2022-04-18 10:39:34] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002882, ts 457500, len 000160)	
3955	[2022-04-18 10:39:34] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003784, ts 457496, len 000160)	
3956	[2022-04-18 10:39:34] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002883, ts 457660, len 000160)	
3957	[2022-04-18 10:39:34] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003785, ts 457656, len 000160)	
3958	[2022-04-18 10:39:34] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002884, ts 457820, len 000160)	
3959	[2022-04-18 10:39:34] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003786, ts 457816, len 000160)	
3960	[2022-04-18 10:39:34] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002885, ts 457980, len 000160)	
3961	[2022-04-18 10:39:34] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003787, ts 457976, len 000160)	
3962	[2022-04-18 10:39:34] VERBOSE[2426] res_pjsip_logger.c: <--- Transmitting SIP request (422 bytes) to UDP:192.168.0.176:26099 --->	
3963	OPTIONS sip:[email protected]:26099 SIP/2.0	
3964	Via: SIP/2.0/UDP 192.168.0.169:26099;rport;branch=z9hG4bKPj4fa58bcc-f06e-45bb-bc1c-b7da2a01525b	
3965	From: <sip:[email protected]>;tag=7e614098-acc2-490e-9f4d-e19a2949261a	
3966	To: <sip:[email protected]>	
3967	Contact: <sip:[email protected]:26099>	
3968	Call-ID: 54743a8c-4307-4c66-a583-2248be213af1	
3969	CSeq: 50176 OPTIONS	
3970	Max-Forwards: 70	
3971	User-Agent: FPBX-16.0.19(16.24.0)	
3972	Content-Length: 0	
3973		
3974		
3975	[2022-04-18 10:39:34] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002886, ts 458140, len 000160)	
3976	[2022-04-18 10:39:34] VERBOSE[2425] res_pjsip_logger.c: <--- Received SIP response (485 bytes) from UDP:192.168.0.176:26099 --->	
3977	SIP/2.0 200 OK	
3978	Via: SIP/2.0/UDP 192.168.0.169:26099;branch=z9hG4bKPj4fa58bcc-f06e-45bb-bc1c-b7da2a01525b	
3979	To: <sip:[email protected]>	
3980	From: <sip:[email protected]>;tag=7e614098-acc2-490e-9f4d-e19a2949261a	
3981	Call-ID: 54743a8c-4307-4c66-a583-2248be213af1	
3982	CSeq: 50176 OPTIONS	
3983	Supported: timer,100rel	
3984	Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE	
3985	User-Agent: P-2612HW-F1 370BLD4	
3986	Contact: <sip:[email protected]:26099>	
3987	Content-Length: 0	
3988	Accept-Encoding: identity	
3989	Accept-Language: en	
3990		
3991		
3992	[2022-04-18 10:39:34] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003788, ts 458136, len 000160)	
3993	[2022-04-18 10:39:34] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002887, ts 458300, len 000160)	
3994	[2022-04-18 10:39:34] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003789, ts 458296, len 000160)	
3995	[2022-04-18 10:39:34] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002888, ts 458460, len 000160)	
3996	[2022-04-18 10:39:34] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 003790, ts 458456, len 000160)	
3997	[2022-04-18 10:39:34] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 002889, ts 458620, len 000160)	
5280	[2022-04-18 10:39:46] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 004431, ts 561016, len 000160)	
5281	[2022-04-18 10:39:47] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 003530, ts 561180, len 000160)	
5282	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 004432, ts 561176, len 000160)	
5283	[2022-04-18 10:39:47] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 003531, ts 561340, len 000160)	
5284	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 004433, ts 561336, len 000160)	
5285	[2022-04-18 10:39:47] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 003532, ts 561500, len 000160)	
5286	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 004434, ts 561496, len 000160)	
5287	[2022-04-18 10:39:47] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 003533, ts 561660, len 000160)		
(…)
5349	[2022-04-18 10:39:47] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 003564, ts 566620, len 000160)	
5350	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 004466, ts 566616, len 000160)	
5351	[2022-04-18 10:39:47] VERBOSE[22781][C-00000005] res_rtp_asterisk.c: Got RTP packet from 192.168.0.176:52000 (type 00, seq 003565, ts 566780, len 000160)	
5352	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] res_rtp_asterisk.c: Sent RTP packet to PARTY_EXTERNAL_IP:50000 (type 00, seq 004467, ts 566776, len 000160)	
5353	[2022-04-18 10:39:47] VERBOSE[2425] res_pjsip_logger.c: <--- Received SIP request (375 bytes) from UDP:192.168.0.176:26099 --->	
5354	BYE sip:[email protected]:26099 SIP/2.0	
5355	Via: SIP/2.0/UDP 192.168.0.176:26099;branch=z9hG4bKbd40cc7975d3d086	
5356	Max-Forwards: 70	
5357	To: "Malgorzata" <sip:[email protected]>;tag=c34cf12e-ba3d-4f35-ad91-b5f4c9506fcd	
5358	From: <sip:[email protected]>;tag=5IzN4kTOGNE	
5359	Call-ID: f3aa7e5e-46fa-4964-956b-d445456dd918	
5360	CSeq: 1 BYE	
5361	User-Agent: P-2612HW-F1 370BLD4	
5362	Content-Length: 0	
5363		
5364		
5365	[2022-04-18 10:39:47] VERBOSE[2426] res_pjsip_logger.c: <--- Transmitting SIP response (361 bytes) to UDP:192.168.0.176:26099 --->	
5366	SIP/2.0 200 OK	
5367	Via: SIP/2.0/UDP 192.168.0.176:26099;rport=26099;received=192.168.0.176;branch=z9hG4bKbd40cc7975d3d086	
5368	Call-ID: f3aa7e5e-46fa-4964-956b-d445456dd918	
5369	From: <sip:[email protected]>;tag=5IzN4kTOGNE	
5370	To: "Malgorzata" <sip:[email protected]>;tag=c34cf12e-ba3d-4f35-ad91-b5f4c9506fcd	
5371	CSeq: 1 BYE	
5372	Server: FPBX-16.0.19(16.24.0)	
5373	Content-Length: 0	
5374		
5375		
5376	[2022-04-18 10:39:47] VERBOSE[22781][C-00000005] bridge_channel.c: Channel PJSIP/20-00000009 left 'simple_bridge' basic-bridge <5a5bc7cd-e9a3-4f04-81fe-4b7c7d4cbdaa>	
5377	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] bridge_channel.c: Channel PJSIP/30-00000008 left 'simple_bridge' basic-bridge <5a5bc7cd-e9a3-4f04-81fe-4b7c7d4cbdaa>	
5378	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] app_macro.c: Spawn extension (macro-dial-one, s, 56) exited non-zero on 'PJSIP/30-00000008' in macro 'dial-one'	
5379	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] app_macro.c: Spawn extension (macro-exten-vm, s, 26) exited non-zero on 'PJSIP/30-00000008' in macro 'exten-vm'	
5380	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] pbx.c: Spawn extension (ext-local, 20, 3) exited non-zero on 'PJSIP/30-00000008'	
5381	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] pbx.c: Executing [h@ext-local:1] Macro("PJSIP/30-00000008", "hangupcall,") in new stack	
5382	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("PJSIP/30-00000008", "1?theend") in new stack	
5383	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] pbx_builtins.c: Goto (macro-hangupcall,s,3)	
5384	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("PJSIP/30-00000008", "0?Set(CDR(recordingfile)=)") in new stack	
5385	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] pbx.c: Executing [s@macro-hangupcall:4] Hangup("PJSIP/30-00000008", "") in new stack	
5386	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] app_macro.c: Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'PJSIP/30-00000008' in macro 'hangupcall'	
5387	[2022-04-18 10:39:47] VERBOSE[22716][C-00000005] pbx.c: Spawn extension (ext-local, h, 1) exited non-zero on 'PJSIP/30-00000008'	
5388	[2022-04-18 10:39:47] VERBOSE[2426] res_pjsip_logger.c: <--- Transmitting SIP request (418 bytes) to UDP:PARTY_EXTERNAL_IP:26099 --->	
5389	BYE sip:30@PARTY_EXTERNAL_IP:26099 SIP/2.0	
5390	Via: SIP/2.0/UDP MY_EXTERNAL_IP:26099;rport;branch=z9hG4bKPj2acc555b-9627-4e57-8f7a-ffd5feee594c	
5391	From: <sip:20@MY_DOMAIN>;tag=26e89169-67e0-408c-a589-250bc5470049	
5392	To: <sip:30@MY_DOMAIN;user=phone>;tag=BFTMwYDNFND	
5393	Call-ID: 170423A7B4185@PARTY_EXTERNAL_IP	
5394	CSeq: 18983 BYE	
5395	Reason: Q.850;cause=16	
5396	Max-Forwards: 70	
5397	User-Agent: FPBX-16.0.19(16.24.0)	
5398	Content-Length: 0	
5399		
5400		
5401	[2022-04-18 10:39:47] VERBOSE[2425] res_pjsip_logger.c: <--- Received SIP response (344 bytes) from UDP:PARTY_EXTERNAL_IP:26099 --->	
5402	SIP/2.0 200 OK	
5403	Via: SIP/2.0/UDP MY_EXTERNAL_IP:26099;branch=z9hG4bKPj2acc555b-9627-4e57-8f7a-ffd5feee594c	
5404	To: <sip:30@MY_DOMAIN;user=phone>;tag=BFTMwYDNFND	
5405	From: <sip:20@MY_DOMAIN>;tag=26e89169-67e0-408c-a589-250bc5470049	
5406	Call-ID: 170423A7B4185@PARTY_EXTERNAL_IP	
5407	CSeq: 18983 BYE	
5408	User-Agent: P-2612HW-F1 370BLD4	
5409	Content-Length: 0	
5410		
5411		
5412	[2022-04-18 10:39:57] VERBOSE[2426] res_pjsip_logger.c: <--- Transmitting SIP request (422 bytes) to UDP:PARTY_EXTERNAL_IP:26099 --->	
5413	OPTIONS sip:30@PARTY_EXTERNAL_IP:26099 SIP/2.0	
5414	Via: SIP/2.0/UDP MY_EXTERNAL_IP:26099;rport;branch=z9hG4bKPjaed57291-4e2a-4ac8-8be9-244577c1f335	
5415	From: <sip:[email protected]>;tag=8282a21f-f6a0-4072-9a09-f6a1f9e185bb	
5416	To: <sip:30@PARTY_EXTERNAL_IP>	
5417	Contact: <sip:30@MY_EXTERNAL_IP:26099>	
5418	Call-ID: 9f4c17bb-7fd2-4797-8f5c-6d0c595c7ab5	
5419	CSeq: 53215 OPTIONS	
5420	Max-Forwards: 70	
5421	User-Agent: FPBX-16.0.19(16.24.0)	
5422	Content-Length: 0	
5423		
5424		
5425	[2022-04-18 10:39:57] VERBOSE[2425] res_pjsip_logger.c: <--- Received SIP response (484 bytes) from UDP:PARTY_EXTERNAL_IP:26099 --->	
5426	SIP/2.0 200 OK	
5427	Via: SIP/2.0/UDP MY_EXTERNAL_IP:26099;branch=z9hG4bKPjaed57291-4e2a-4ac8-8be9-244577c1f335	
5428	To: <sip:30@PARTY_EXTERNAL_IP>	
5429	From: <sip:[email protected]>;tag=8282a21f-f6a0-4072-9a09-f6a1f9e185bb	
5430	Call-ID: 9f4c17bb-7fd2-4797-8f5c-6d0c595c7ab5	
5431	CSeq: 53215 OPTIONS	
5432	Supported: timer,100rel	
5433	Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,UPDATE	
5434	User-Agent: P-2612HW-F1 370BLD4	
5435	Contact: <sip:30@PARTY_EXTERNAL_IP:26099>	
5436	Content-Length: 0	
5437	Accept-Encoding: identity	
5438	Accept-Language: en	
5439	

Port 17040/UDP doesn’t appear to be being forwarded to you inbound.

It’s not opened indeed. But what it does?
Edit:
It’s opened, as it’s in the range 10000-20000
Do you suggest that NAT does not pass rtp?

The inbound RTP is not reaching Asterisk.

Ok, but how this can be, if all ports are forwarded from router and When I call the external party from internal network everything is ok.
Why the port does not open when the call is from outside?
Moreover, when I call from other external party (from mobile phone), everything works Well.
The problematic extension is zyxel sip gateway that is also a dls router. Should I open the ports on this device since the gateway and router are integrated in one device?

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