You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is, SSRC in request and response are the same: 1754653800 (0x6895E468).
But, because of transcoding, SSRC of input RTP packet and output RTP packet are different, this can be seen in rtpengine logs, for instance, in my case:
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [core] Handling packet on: 10.99.9.227:46745
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [core] Handling packet: remote 10.99.9.227:46745 (expected: 1
0.99.9.227:46745) -> local 10.120.30.191:17868 (RTP seq 17565 TS 3785228561 SSRC c53dde1a)
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [transcoding] Received RTP packet: SSRC c53dde1a, PT 109, seq
17565, TS 3785228561, len 161
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [internals] returning in-sequence packet (seq 17565)
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [transcoding] Processing RTP packet: seq 17565, TS 3785228561
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [transcoding] Decoding RTP packet now
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [internals] 0x7f01d226b7e0 dec pts 306240 rtp_ts 184467440731
99811921 incoming ts 18446744073199812881
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [transcoding] RTP media decoded for audio player: TS 307200,
samples 960
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [internals] packet queue empty
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [core] stream 10.99.9.227:46745 NO_KERNEL_SUPPORT
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [internals] 0x7f01d226b690 dec pts 354240 rtp_ts 354240 incoming ts 3552
00
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [internals] send packet ret 0
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [internals] receive frame ret 0
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [internals] raw frame from decoder pts 355200 samples 960
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [internals] receive frame ret -11
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [transcoding] RTP media successfully decoded: TS 355200, samples 960
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [internals] output fifo pts 355200
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [internals] 0x7f01d226b540 dec pts 354240 rtp_ts 354240 incoming ts 355200
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [internals] send packet ret 0
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [internals] receive frame ret 0
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [internals] raw frame from decoder pts 355200 samples 960
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [internals] receive frame ret -11
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [transcoding] RTP media successfully decoded: TS 355200, samples 960
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [internals] output fifo pts 355200
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [transcoding] RTP media successfully encoded: TS 355200, len 60
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [transcoding] Adding 60 bytes to packetizer
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [transcoding] Received packet of 60 bytes from packetizer
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1]: [transcoding] Scheduling to send RTP packet (seq 26152 TS 656655238985036605) in 0.0 ms (at 1702389847.252262)
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [transcoding] RTP media successfully encoded: TS 355200, len 45
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [transcoding] Adding 45 bytes to packetizer
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [transcoding] Received packet of 45 bytes from packetizer
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1]: [transcoding] Scheduling to send RTP packet (seq 5490 TS 9865353438681979474) in 0.0 ms (at 1702389847.252455)
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1 port 16504]: [core] Forward to sink endpoint: local 10.120.30.191:16504 -> remote 10.120.31.40:15003 (RTP seq 5490 TS 5331538 SSRC 807016)
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/WEBRTC_DIRECT_0/1 port 17868]: [core] Forward to sink endpoint: local 10.120.30.191:17868 -> remote 10.99.9.227:46745 (RTP seq 26152 TS 4086969149 SSRC defee39e)
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1 port 16504]: [core] Handling packet on: 10.120.31.40:15003
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1 port 16504]: [core] Handling packet: remote 10.120.31.40:15003 (expected: 10.120.31.40:15003) -> local 10.120.30.191:16504 (RTP seq 29782 TS 359040 SSRC 6895e468)
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1 port 16504]: [transcoding] Received RTP packet: SSRC 6895e468, PT 109, seq 29782, TS 359040, len 140
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1 port 16504]: [internals] returning in-sequence packet (seq 29782)
Dec 12 17:04:07 rtpengine_host rtpengine[4335] DEBUG: [5317bafb-afa2-47dc-9e26-a799a6847ab8/SIP_0/1 port 16504]: [transcoding] Processing RTP packet: seq 29782, TS 359040
That is, we have 4 SSRCs (and this is true, I've checked it with tcpdump and wireshark):
from caller to rtpengine SSRC id = 3309166106 (0xc53dde1a)
from rtpengine to callee SSRC id = 8417302 (0x807016)
from callee to rtpengine SSRC id = 1754653800 (0x6895e468)
from rtpengine to caller SSRC id = 3741246366 (0xdefee39e)
So, it seems, that in response to offer request, we expect to see a=ssrc:8417302, but we see a=ssrc:3309166106.
The same for response to answer request, we expect to see a=ssrc:3741246366, but we see a=ssrc:1754653800.
That is RTPEngine doesn't change SSRC attribute in response and use the same, that it received in request, but input and output RTP packets have different SSRCs.
Expected bevaviour in this case, that RTPEngine changes SSRC attribute in SDP in response according to changes in RTP packets.
Unexpected behaviour you saw
Response from RTPEngine has SDP with the same SSRC attribute as in request, but transcoding changes SSRC in RTP packets.
Steps to reproduce the problem
No response
Additional program output to the terminal or logs illustrating the issue
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered:
rtpengine version the issue has been seen with
rtpengine-mr11.5.1.15
Used distribution and its version
Oracle 9
Linux kernel version used
5.15.62-13.el7.x86_64
CPU architecture issue was seen on (see
uname -m
)amd64
Expected behaviour you didn't see
My setup has such rtpengine.conf:
that is, transcoding is always enabled.
I've sent offer request to rtpengine:
In SDP we have id 3309166106 (0xc53dde1a).
Response from RTPEngine, that I've received:
Response has the same SSRC 3309166106 (0xc53dde1a).
The same is for answer. I've sent:
And response, I've received:
That is, SSRC in request and response are the same: 1754653800 (0x6895E468).
But, because of transcoding, SSRC of input RTP packet and output RTP packet are different, this can be seen in rtpengine logs, for instance, in my case:
That is, we have 4 SSRCs (and this is true, I've checked it with tcpdump and wireshark):
So, it seems, that in response to offer request, we expect to see
a=ssrc:8417302
, but we seea=ssrc:3309166106
.The same for response to answer request, we expect to see
a=ssrc:3741246366
, but we seea=ssrc:1754653800
.That is RTPEngine doesn't change SSRC attribute in response and use the same, that it received in request, but input and output RTP packets have different SSRCs.
Expected bevaviour in this case, that RTPEngine changes SSRC attribute in SDP in response according to changes in RTP packets.
Unexpected behaviour you saw
Response from RTPEngine has SDP with the same SSRC attribute as in request, but transcoding changes SSRC in RTP packets.
Steps to reproduce the problem
No response
Additional program output to the terminal or logs illustrating the issue
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: