No, the order of flags should not may a difference (with some exceptions, e.g. codecs requested for transcoding will be presented in the order given).
The two flags strings are not equivalent though, one lists `codec-accept-pcma` and the other lists `codec-accept-opus`
You need to explain what "repeatedly restart" means. Does it
crash? If so, you should have a core dump. As always, pull it up
in gdb and post a full back trace together with all other relevant
information (most importantly the version).
Cheers
"repeatedly restart" I mean rtpengine restarted every 1-2 hours (depend on the load, 20 - 30 minutes in busy hour ) and it restarted without any error print out.
I run with version mr11.5.1.2
this is log in at the time rtpengine restart, I think it crash but no error or coredump found then I can't say (if possible can you point me the document show me how to enable & collect codedump?)
I can't tell you that because it depends on your system. On a modern systemd based system for example (and assuming you're running rtpengine under systemd) it might need installation and/or enabling of the systemd-coredump service. Consult the documentation of your distro/vendor.
Cheers
I just tested and found that `codec-accept-pcma` is an invalid, the correct one should be `codec-accept-PCMA`. (coincidentally, as black box testing, the behavior is the same as expected. )
Do you think it could be the cause of the crash rtpengine?
I really don't know. The way to find out is to look at the core dump.
Cheers
--
You received this message because you are subscribed to the Google Groups "Sipwise rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/rtpengine/CAGBhiAnCLXTjtTJs%2BAdwXW7mX7V%2BnT3Wqp5O4X62kcr7d-OdVw%40mail.gmail.com.
There is no issue with version 11, or when transcoding is not used.
- Outbound RTP is delayed by more than 2 seconds.
- Audio exhibits crackling, sounding robotic.
Do you have any insight into what might be causing this problem? I am not sure if any changes introduced in rtpengine 12/13 could be affecting this.
I am available to provide logs if needed, please let me know which logs would be most helpful.
That would be the first report of such serious issues, especially for an established LTS version.
Typically an investigation of audio problems involves enabling full debug logging and pulling a pcap off the wire and inspecting it. Wireshark can be very helpful in analysing RTP flows.
Ideally you'd be able to pinpoint where exactly the problem is before reporting it, or at least come up with a minimal example that allows one to reproduce it. That would be a lot more helpful than just posting raw logs and pcaps with a report of "audio is bad."
FTR the 11.5 branch also has the relevant fixes.
Cheers
Hello Richard,
RTPENGINE and client agreed to use OPUS, however wireshark shows RTPENGINE sent PCMA, CLIENT sent OPUS.
Can I send pcap and rtpengine log privately to you if you require them for debugging?
RTPENGINE v13:
OFFER
v=0
o=- 1757070846 1757070847 IN IP4 MY_SERVER_IP
s=-
t=0 0
m=audio 65270 RTP/AVP 96 8 0 97 101
c=IN IP4 MY_SERVER_IP
a=rtpmap:96 opus/48000/2
a=fmtp:96 useinbandfec=1
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:97 telephone-event/48000
a=fmtp:97 0-15
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=rtcp:65271
a=ptime:20
OFFER
v=0
o=1746193290194-de9d3f150150-0001 3321 1053 IN IP4 192.0.2.1
s=Talk
c=IN IP4 192.0.2.1
b=AS:576
t=0 0
m=audio 7244 RTP/AVP 96 8 0 97 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 useinbandfec=1
a=rtpmap:97 telephone-event/48000
a=rtpmap:101 telephone-event/8000
RTPENGINE v11: f008a5a2-0517-123f-acae-7a962613abe9
OFFER
v=0
o=- 1757063533 1757063534 IN IP4
MY_SERVER_IPs=-
c=IN IP4
MY_SERVER_IPt=0 0
m=audio 44704 RTP/AVP 96 8 0 97 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 useinbandfec=1
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:97 telephone-event/48000
a=fmtp:97 0-15
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=rtcp:44705
a=ptime:20
ANSWER
v=0
o=1746193290194-de9d3f150150-0001 3389 1690 IN IP4 192.0.2.1
s=Talk
c=IN IP4 192.0.2.1
b=AS:576
t=0 0
m=audio 7242 RTP/AVP 96 8 0 97 101
a=rtpmap:96 opus/48000/2
a=fmtp:96 useinbandfec=1
a=rtpmap:97 telephone-event/48000
a=rtpmap:101 telephone-event/8000
--
You received this message because you are subscribed to the Google Groups "Sipwise rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/rtpengine/CAGBhiAkzr4RqHz8ikUMdnvR6dHzuuTzVV2UuQfJNskTg6ZP4cw%40mail.gmail.com.
For minimal example, I think it should be:
A (offer PCMA only) ---> RTPENGINE (codec-strip=all codec-transcode=opus codec-transcode=PCMA codec-transcode=PCMU) ---> B (answer with OPUS, PCMA, PCMU)
The crucial part actually is the `reuse-codecs` flag being used in the answer. It enables a different code path and as it turns out some flags were not being set there.
I'll have a fix submitted soon, but as a workaround I suggest you only use this flag when and if you really need it.
Cheers
--
You received this message because you are subscribed to the Google Groups "Sipwise rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/rtpengine/CAGBhiAkLvhfTQNeLXWwUDEOC%3DDHh8vJhdOCcQZDKSH0%3DiGDL2A%40mail.gmail.com.