keith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-mgw/+/28112 )
Change subject: Don't check rtp timestamps if we are not patching timestamps. ......................................................................
Don't check rtp timestamps if we are not patching timestamps.
If vty command rtp-patch timestamp is not in force, then do not check, count or log timestamp allignment errors.
Change-Id: I889fce4c86cffdcbb74b17cd36ccda89c034a824 --- M src/libosmo-mgcp/mgcp_network.c 1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/12/28112/1
diff --git a/src/libosmo-mgcp/mgcp_network.c b/src/libosmo-mgcp/mgcp_network.c index bcc6652..6843fcc 100644 --- a/src/libosmo-mgcp/mgcp_network.c +++ b/src/libosmo-mgcp/mgcp_network.c @@ -258,6 +258,9 @@ if (tsdelta_out) *tsdelta_out = tsdelta;
+ if (!rtp_end->force_aligned_timing) + return 0; + timestamp_error = ts_alignment_error(sstate, state->packet_duration, timestamp);