diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-10-15 21:42:00 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-10-15 23:09:36 +0200 |
commit | 7f9ebe2e5646f4cde863439afc0b2a20a3e8dbdd (patch) | |
tree | 02e82a96a4c089ec84de835493ccfc5f3ba8cadd /src | |
parent | 8c9caa86075c1e63f5729fb7b649977d6b7ef686 (diff) |
osmux: fix DELTA_RTP_MSG
It should be 16000 and add DELTA_RTP_TIMESTAMP which is 160.
Diffstat (limited to 'src')
-rw-r--r-- | src/osmux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osmux.c b/src/osmux.c index bfac31c..4ac1975 100644 --- a/src/osmux.c +++ b/src/osmux.c @@ -29,7 +29,8 @@ #define OSMUX_BATCH_MAX 1472 /* delta time between two RTP messages */ -#define DELTA_RTP_MSG 20000 +#define DELTA_RTP_MSG 16000 +#define DELTA_RTP_TIMESTAMP 160 struct osmux_hdr *osmux_xfrm_output_pull(struct msgb *msg) { @@ -93,7 +94,7 @@ osmux_rebuild_rtp(struct osmux_out_handle *h, /* bump last RTP sequence number and timestamp that has been used */ h->rtp_seq[osmuxh->circuit_id]++; - h->rtp_timestamp[osmuxh->circuit_id] += 160; + h->rtp_timestamp[osmuxh->circuit_id] += DELTA_RTP_TIMESTAMP; osmo_rtp_snprintf(buf, sizeof(buf), out_msg); LOGP(DLMIB, LOGL_DEBUG, "%s\n", buf); |