RTP endpoint does not work in full duplex mode
I am trying to create an RTP to webrtc gateway between two devices. At one end device is RTP capable of generating Audio/Video and consume Audio At other end device is webrtc capable and generates Audio and consume Audio/Video
I am able to get one-way audio and video working and looking through the webrtc packets i can see that reverse audio from webrtc capable device to webrtc endpoint is also working But the RTP endpoint is not sending any audio back to rtp capable device.
Below is the SDP offer and Answer for RTP endpoint:
OFFER from RTP capable device:
v=0 o=- 0 0 IN IP4 127.0.0.1 s=RTP Receiver c=IN IP4 127.0.0.1 t=0 0 m=audio 9078 RTP/AVP 0 a=rtpmap:0 PCMU/8000 a=rtcp-fb:99 goog-remb a=sendrecv a=ssrc:445566 cname:[email protected] m=video 7076 RTP/AVPF 99 a=rtpmap:99 H264/90000 a=rtcp-fb:99 goog-remb a=sendonly a=ssrc:112233 cname:[email protected]
ANSWER from RTP endpoint:
v=0 o=- 3798176112 3798176112 IN IP4 10.17.0.6 s=Kurento Media Server c=IN IP4 10.17.0.6 t=0 0 m=audio 2310 RTP/AVP 0 a=sendrecv a=rtpmap:0 PCMU/8000 a=ssrc:2798521049 cname:user3977227853@host-ea398a68 a=rtcp:2311 m=video 64574 RTP/AVPF 99 a=recvonly a=rtpmap:99 H264/90000 a=rtcp-fb:99 goog-remb a=ssrc:2754281816 cname:user3977227853@host-ea398a68 a=rtcp:64575
One more thing there is transcoding happening between at audio level from PCMU to OPUS and from OPUS to PCMU. kmsagnosticbin.c:729 kms_agnostic_bin2_find_or_create_bin_for_caps() TRANSCODING ACTIVE for audio
On JSON RPC front I did this: created a media pipeline connected webrtc endpoint to it connected rtp endpoint to it Sink audio from RTP to webrtc Sink video from RTP to webrtc Sink audio from webrtc to RTP
There are no error or warnings i am getting in the logs.
I'm facing similar issue too with RTP Endpoint. I'm creating a loopback system, asterisk -> kurento -> asterisk. (RTP Endpoint is connected to itself.)
Media is going to kurento from asterisk. Nothing on kurento -> asterisk. I've captured the tcpdump on kurento server. Kurento is only receiving not sending.
Kurento offer:
o=- 3802310787 3802310787 IN IP4 52.221.69.98 s=Kurento Media Server c=IN IP4 52.221.69.98 t=0 0 m=audio 46690 RTP/AVPF 96 0 97 a=setup:actpass a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=rtpmap:96 opus/48000/2 a=rtpmap:97 AMR/8000 a=rtcp:46691 a=sendrecv a=mid:audio0 a=ssrc:2343359893 cname:user2834670824@host-9c3a6c4f m=video 48478 RTP/AVPF 102 103 a=setup:actpass a=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time a=rtpmap:102 VP8/90000 a=rtpmap:103 H264/90000 a=rtcp:48479 a=sendrecv a=mid:video0 a=rtcp-fb:102 nack a=rtcp-fb:102 nack pli a=rtcp-fb:102 goog-remb a=rtcp-fb:102 ccm fir a=rtcp-fb:103 nack a=rtcp-fb:103 nack pli a=rtcp-fb:103 ccm fir a=ssrc:3271227064 cname:user2834670824@host-9c3a6c4f
Asterisk answer: o=root 2134991486 2134991486 IN IP4 127.0.0.1 s=Asterisk PBX 17.5.1 c=IN IP4 127.0.0.1 b=CT:384 t=0 0 m=audio 25382 RTP/AVPF 0 96 a=rtpmap:0 PCMU/8000 a=rtpmap:96 opus/48000/2 a=maxptime:20 a=sendrecv m=video 25272 RTP/AVPF 102 a=rtpmap:102 VP8/90000 a=rtcp-fb:* ccm fir a=sendrecv