The sequence number rollover is happening within the life of the second SSRC. The call flow has an immediate re-INVITE to a recording media server, which results in the new SSRC. But it's later on within that new SSRC where we see the change in the sequence numbers.
So, in the last log that I attached, it looks like this:
21:55:39 - Initial outbound INVITE
** SSRC 6bbe9b4: receive from BroadWorks, send to webRTC **
2024-01-02T21:55:41.512577+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] New ingress SSRC for: :0 SSRC: 6bbe9b4
2024-01-02T21:55:41.512954+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] New egress (direct) SSRC for:
192.168.1.145:49743 SSRC: 6bbe9b4
2024-01-02T21:55:42.078872+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] Handling packet: remote
10.103.114.192:23526 (expected:
10.103.114.192:23526) -> local
10.103.114.27:21110 (RTP seq 28 TS 4480 SSRC 6bbe9b4)
2024-01-02T21:55:42.079000+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 20496]: [core] Forward to sink endpoint: local
208.89.108.16:20496 -> remote
68.5.242.25:49743 (RTP seq 28 TS 4480 SSRC 6bbe9b4)
** SSRC 5f06bf7c: receive from webRTC, send to BroadWorks**
2024-01-02T21:55:42.232051+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 20496]: [core] New ingress SSRC for:
68.5.242.25:49743 SSRC: 5f06bf7c
2024-01-02T21:55:42.232509+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 20496]: [core] New egress (direct) SSRC for:
10.103.114.192:23526 SSRC: 5f06bf7c
2024-01-02T21:55:42.232675+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 20496]: [core] Handling packet: remote
68.5.242.25:49743 (expected:
68.5.242.25:49743) -> local
208.89.108.16:20496 (RTP seq 3190 TS 3994006908 SSRC 5f06bf7c)
2024-01-02T21:55:42.232757+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] Forward to sink endpoint: local
10.103.114.27:21110 -> remote
10.103.114.192:23526 (RTP seq 3190 TS 3994006908 SSRC 5f06bf7c)
2024-01-02T21:55:43.997120+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21111]: [core] New ingress SSRC for:
10.103.114.192:23527 SSRC: 6bbe9b4
2024-01-02T21:55:43.997311+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21111]: [core] Handling packet: remote
10.103.114.192:23527 (expected:
10.103.114.192:23527) -> local
10.103.114.27:211112024-01-02T21:55:43.997405+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21111]: [core] New egress (direct) SSRC for:
192.168.1.145:60143 SSRC: 6bbe9b4
2024-01-02T21:55:43.998968+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] Handling packet: remote
10.103.114.192:23526 (expected:
10.103.114.192:23526) -> local
10.103.114.27:21110 (RTP seq 124 TS 19840 SSRC 6bbe9b4)
2024-01-02T21:55:43.999094+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 20496]: [core] Forward to sink endpoint: local
208.89.108.16:20496 -> remote
68.5.242.25:49743 (RTP seq 124 TS 19840 SSRC 6bbe9b4)
2024-01-02T21:55:44.653666+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 20496]: [core] New ingress SSRC for:
192.168.1.145:60143 SSRC: 5f06bf7c
2024-01-02T21:55:44.653865+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 20496]: [core] New egress (direct) SSRC for:
10.103.114.192:23527 SSRC: 5f06bf7c
2024-01-02T21:55:44.654147+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 20496]: [core] Handling packet: remote
68.5.242.25:49743 (expected:
68.5.242.25:49743) -> local
208.89.108.16:20496 (RTP seq 3315 TS 3994026908 SSRC 5f06bf7c)
2024-01-02T21:55:44.654193+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] Forward to sink endpoint: local
10.103.114.27:21110 -> remote
10.103.114.192:23526 (RTP seq 3315 TS 3994026908 SSRC 5f06bf7c)
21:55:47 - INVITE to recording
** new SSRC 30a67c: receive from BroadWorks, send to webRTC **
024-01-02T21:55:48.197049+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] New ingress SSRC for:
10.103.114.192:23526 SSRC: 30a67c
2024-01-02T21:55:48.197141+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] Handling packet: remote
10.103.114.192:23526 (expected:
10.103.114.192:23526) -> local
10.103.114.27:21110 (RTP seq 65255 TS 1072075752 SSRC 30a67c)
2024-01-02T21:55:48.197174+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] New egress (direct) SSRC for:
68.5.242.25:49743 SSRC: 30a67c
2024-01-02T21:55:48.197210+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 20496]: [core] Forward to sink endpoint: local
208.89.108.16:20496 -> remote
68.5.242.25:49743 (RTP seq 65255 TS 1072075752 SSRC 30a67c)
21:55:53 - INVITE on hold
** last packet before hold **
2024-01-02T21:55:53.658632+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] Handling packet: remote
10.103.114.192:23526 (expected:
10.103.114.192:23526) -> local
10.103.114.27:21110 (RTP seq 65528 TS 1072119432 SSRC 30a67c)
2024-01-02T21:55:53.658687+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 20496]: [core] Forward to sink endpoint: local
208.89.108.16:20496 -> remote
68.5.242.25:49743 (RTP seq 65528 TS 1072119432 SSRC 30a67c)
22:06:59 - INVITE off hold
2024-01-02T22:07:02.977260+00:00 rtpengine02-dev-s03 rtpengine[2750852]: DEBUG: [n3uhohjsanumk2qlc51o port 21110]: [core] Handling packet: remote
10.103.114.192:23526 (expected:
10.103.114.192:23526) -> local
10.103.114.27:21110 (RTP seq 33457 TS 1077473992 SSRC 30a67c)