WebRTC closing call due to timeout however rtp was flowing

29 views
Skip to first unread message

vijay kumar

unread,
Nov 21, 2022, 4:15:06 PM11/21/22
to rtpengine
Hi Al,
I am implementing PBX to  WebRTC(wss/srtp), RTP(udp/rtp) and SRTP(tls/srtp)

Media is flow from party A to party B in all three scenarios, however in WebRTC scenario media is flowing intially but in rtpengine after timeout period rtpengine cleanup the call with error message Closing call due to timeout.


for Offer to  WebRTC from PBX
RTP/SAVP replace-origin replace-session-connection SRTP ICE=force SDES-off DTLS=passive rtcp-mux-require

for Answer from webRTC to PBX
RTP/AVP replace-origin replace-session-connection RTP ICE=remove SDES-off DTLS=off rtcp-mux-demux 

RTPEngine Logs

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: Final packet stats:

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: --- Tag 'as5459bf75', created 0:25 ago for branch '', in dialogue

 with 'c6h17u854e'

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: ------ Media #1 (audio over RTP/AVP) using PCMA/8000

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: --------- Port       x.x.x.x:10346 <>   x.x.x.x:19130, SS

RC 412566f4, 925 p, 159100 b, 0 e, 2 ts

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: --------- Port       x.x.x.x:10347 <>   x.x.x.x:19131 (RT

CP), SSRC 412566f4, 4 p, 256 b, 0 e, 1 ts

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: --- Tag 'c6h17u854e', created 0:25 ago for branch '', in dialogue

 with 'as5459bf75'

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: ------ Media #1 (audio over UDP/TLS/RTP/SAVPF) using PCMA/8000

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: --------- Port       x.x.x.x:10336 <>   x.x.x.x:7481 , SS

RC ac21ff8, 1006 p, 180130 b, 0 e, 0 ts

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: --- SSRC ac21ff8

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: ------ Average MOS 4.3, lowest MOS 4.3 (at 0:10), highest MOS 4.3

 (at 0:10)

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: --- SSRC 412566f4

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: INFO: [48015deb01ce041f...@x.x.x.x]: ------ Average MOS 4.3, lowest MOS 4.3 (at 0:14), highest MOS 4.3

 (at 0:14)

Nov 22 02:30:17 media-engine-1 rtpengine[2509]: DEBUG: [48015deb01ce041f...@x.x.x.x]: freeing send_timer

Thank you.

Regards,
Vijay


Richard Fuchs

unread,
Nov 21, 2022, 4:28:56 PM11/21/22
to rtpe...@googlegroups.com
Just you post a more complete log? Just the "final packet stats" doesn't say very much.

Cheers
CONFIDENTIALITY NOTE: This e-mail is intended only for the person or entity to which it is addressed and contains information that is privileged, confidential, or otherwise protected from disclosure. Dissemination, distribution, or copying of this e-mail or the information contained herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is prohibited. If you have received this e-mail in error, please delete this message and immediately notify the sender by e-mail. 
NOTE: This e-mail does not constitute an electronic signature and the sender does not intend to enter into any agreement by way of this e-mail, unless otherwise expressly provided by the sender within this e-mail.
--
You received this message because you are subscribed to the Google Groups "rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/20e193db-109b-4f6a-8598-dedc011acc97n%40googlegroups.com.

vijay kumar

unread,
Nov 21, 2022, 4:47:50 PM11/21/22
to rtpe...@googlegroups.com
Hi Richard,
Attaching the rtpengine.log attachment for this call-id.
also, webrtc is behind the NAT.

rtpengine.log

Richard Fuchs

unread,
Nov 22, 2022, 9:38:18 AM11/22/22
to rtpe...@googlegroups.com
On 21/11/2022 16.47, [EXT] vijay kumar wrote:
> Hi Richard,
> Attaching the rtpengine.log attachment for this call-id.
> also, webrtc is behind the NAT.

What version is this, and what is the config?

Can you confirm that packet counters in /proc/rtpengine/0/list are
increasing while a call is running?

Cheers

vijay kumar

unread,
Nov 24, 2022, 9:03:58 AM11/24/22
to rtpe...@googlegroups.com
This issue was due to a custom patch, as per the patch event when no RTCP then RTPTimeout was implemented. As webrtc use rtcp-mux hence it does not explicitly send RTCP on a different port.
After removing that custom patch it's working fine.

--
You received this message because you are subscribed to the Google Groups "rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages