[Core, mod_sofia] Make the rtp-autofix-timing codec check limit configurable - #3106
Open
RicardoMDomingues wants to merge 1 commit into
Open
[Core, mod_sofia] Make the rtp-autofix-timing codec check limit configurable#3106RicardoMDomingues wants to merge 1 commit into
RicardoMDomingues wants to merge 1 commit into
Conversation
…gurable The CBR branch of the autofix-timing codec check stopped after a hardcoded 50 frames. Add a sofia profile parameter, rtp-autofix-max-codec-check-frames: > 0 inspect that many frames (default 50, unchanged) < 0 inspect for the whole call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The CBR branch of the autofix-timing codec check stopped after a hardcoded 50 frames.
Add a sofia profile parameter, rtp-autofix-max-codec-check-frames:
Type of Change
Testing
Checklist
Additional Notes
I need this change because I use FreeSWITCH (FS) with Trader turret systems. In some setupus, media is routed to a media server, and the packet rate can change dynamically between all participants (from the Turret phones, to their gateway, through the customer's SBC, and finally to our system).
When the Turret system changes the packet rate, it does not send a SIP re-INVITE or any other SIP signaling to notify the gateway or SBC. Because of this, there is no way to detect the rate change via SIP. Instead, it can only be detected and handled using the RTP timestamp and payload information.
FreeSWITCH already had a feature to handle this, but it previously only worked at the very beginning of the call. My change extends this functionality so FreeSWITCH by making configurable how many packets we want to check and, if its negative, check for entire call