diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2013-12-18 12:54:51 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-12-19 11:56:11 +0100 |
commit | 4bbddc6de986991acb4810e3120596a4c043f142 (patch) | |
tree | 5bfed678b922ebf4b664567fcacf42c92d7c1f1a /openbsc/src/libmgcp/mgcp_vty.c | |
parent | 65c7a4551a34ec560d6cf96d8613d300ea4c7c2d (diff) |
mgcp/rtp: Only patch timestamp alignment errors
Currently, all timestamps are force to SeqNo*d + C which is more than
required by the nanoBTS which seems to be sensitive to alignment
errors only (dTS != k*d, d = ptime * rate = 160).
This patch replaces the force_constant_timing feature by a
force_aligned_timing feature. The timestamp offset will only be
changed (and timestamp errors counted) when the alignment does not
match to the raster based on ptime (default 20ms).
The VTY interface does not change.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_vty.c')
-rw-r--r-- | openbsc/src/libmgcp/mgcp_vty.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/openbsc/src/libmgcp/mgcp_vty.c b/openbsc/src/libmgcp/mgcp_vty.c index 235b8bd6a..8411b4aa4 100644 --- a/openbsc/src/libmgcp/mgcp_vty.c +++ b/openbsc/src/libmgcp/mgcp_vty.c @@ -89,11 +89,11 @@ static int config_write_mgcp(struct vty *vty) vty_out(vty, " rtcp-omit%s", VTY_NEWLINE); else vty_out(vty, " no rtcp-omit%s", VTY_NEWLINE); - if (g_cfg->trunk.force_constant_ssrc || g_cfg->trunk.force_constant_timing) { + if (g_cfg->trunk.force_constant_ssrc || g_cfg->trunk.force_aligned_timing) { vty_out(vty, " %srtp-patch ssrc%s", g_cfg->trunk.force_constant_ssrc ? "" : "no ", VTY_NEWLINE); vty_out(vty, " %srtp-patch timestamp%s", - g_cfg->trunk.force_constant_timing ? "" : "no ", VTY_NEWLINE); + g_cfg->trunk.force_aligned_timing ? "" : "no ", VTY_NEWLINE); } else vty_out(vty, " no rtp-patch%s", VTY_NEWLINE); if (g_cfg->trunk.audio_payload != -1) @@ -480,7 +480,7 @@ DEFUN(cfg_mgcp_patch_rtp_ts, "Adjust RTP timestamp\n" ) { - g_cfg->trunk.force_constant_timing = 1; + g_cfg->trunk.force_aligned_timing = 1; return CMD_SUCCESS; } @@ -491,7 +491,7 @@ DEFUN(cfg_mgcp_no_patch_rtp_ts, "Adjust RTP timestamp\n" ) { - g_cfg->trunk.force_constant_timing = 0; + g_cfg->trunk.force_aligned_timing = 0; return CMD_SUCCESS; } @@ -501,7 +501,7 @@ DEFUN(cfg_mgcp_no_patch_rtp, NO_STR RTP_PATCH_STR) { g_cfg->trunk.force_constant_ssrc = 0; - g_cfg->trunk.force_constant_timing = 0; + g_cfg->trunk.force_aligned_timing = 0; return CMD_SUCCESS; } @@ -598,11 +598,11 @@ static int config_write_trunk(struct vty *vty) vty_out(vty, " rtcp-omit%s", VTY_NEWLINE); else vty_out(vty, " no rtcp-omit%s", VTY_NEWLINE); - if (trunk->force_constant_ssrc || trunk->force_constant_timing) { + if (trunk->force_constant_ssrc || trunk->force_aligned_timing) { vty_out(vty, " %srtp-patch ssrc%s", trunk->force_constant_ssrc ? "" : "no ", VTY_NEWLINE); vty_out(vty, " %srtp-patch timestamp%s", - trunk->force_constant_timing ? "" : "no ", VTY_NEWLINE); + trunk->force_aligned_timing ? "" : "no ", VTY_NEWLINE); } else vty_out(vty, " no rtp-patch%s", VTY_NEWLINE); if (trunk->audio_fmtp_extra) @@ -747,7 +747,7 @@ DEFUN(cfg_trunk_patch_rtp_ts, ) { struct mgcp_trunk_config *trunk = vty->index; - trunk->force_constant_timing = 1; + trunk->force_aligned_timing = 1; return CMD_SUCCESS; } @@ -759,7 +759,7 @@ DEFUN(cfg_trunk_no_patch_rtp_ts, ) { struct mgcp_trunk_config *trunk = vty->index; - trunk->force_constant_timing = 0; + trunk->force_aligned_timing = 0; return CMD_SUCCESS; } @@ -770,7 +770,7 @@ DEFUN(cfg_trunk_no_patch_rtp, { struct mgcp_trunk_config *trunk = vty->index; trunk->force_constant_ssrc = 0; - trunk->force_constant_timing = 0; + trunk->force_aligned_timing = 0; return CMD_SUCCESS; } |