[Bug 262386] net/asterisk18: RTP over IPv4 is broken (packets of negative length/ICMP port unreachable)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 06 Mar 2022 21:22:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262386

            Bug ID: 262386
           Summary: net/asterisk18: RTP over IPv4 is broken (packets of
                    negative length/ICMP port unreachable)
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: madpilot@FreeBSD.org
          Reporter: freebsd@04d.co
          Assignee: madpilot@FreeBSD.org
             Flags: maintainer-feedback?(madpilot@FreeBSD.org)

No audio is getting through. This is not a configuration (working with Debian),
firewall or NAT issue. It only happens with IPv4, RTP packets have negative
lengths (-13 bytes) and are getting returned with the ICMP error of port
unreachable. Asterisk is running in a jail with restricted addresses (behaviour
stays the same if it inherits host addresses). Symptoms are exactly as
described in this older forum post:
https://community.asterisk.org/t/13-14-0-pjsip-rtp-problem-no-audio/70244
Problem still occurs on net/asterisk16. Setting
security.jail.allow_raw_sockets=1 does not change behaviour. Asterisk was
installed as a binary package using pkg.

RTP Packet Debugging output excerpt:
[Mar  6 23:17:40] Sent RTP packet to      10.0.1.5:33024 (type 09, seq 020789,
ts 000160, len -000013)
[Mar  6 23:17:40] Sent RTP packet to      10.0.1.5:33024 (type 09, seq 020790,
ts 000320, len -000013)
[Mar  6 23:17:40] Sent RTP packet to      10.0.1.5:33024 (type 09, seq 020791,
ts 000480, len -000013)

OS version: FreeBSD 13.0-RELEASE
Asterisk version: 18.9.0

-- 
You are receiving this mail because:
You are the assignee for the bug.