iax tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@577 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ef6d92ae7d
commit
e6c9685879
|
@ -2237,12 +2237,14 @@ static struct iax_event *schedule_delivery(struct iax_event *e, unsigned int ts,
|
||||||
this can be a negative number, too */
|
this can be a negative number, too */
|
||||||
ms = calc_rxstamp(e->session) - ts;
|
ms = calc_rxstamp(e->session) - ts;
|
||||||
|
|
||||||
/* Drop voice frame if timestamp is way off */
|
/*
|
||||||
|
Drop voice frame if timestamp is way off
|
||||||
if ((e->etype == IAX_EVENT_VOICE) && ((ms > 65536) || (ms < -65536))) {
|
if ((e->etype == IAX_EVENT_VOICE) && ((ms > 65536) || (ms < -65536))) {
|
||||||
DEBU(G "Dropping a voice packet with odd ts (ts = %d; ms = %d)\n", ts, ms);
|
DEBU(G "Dropping a voice packet with odd ts (ts = %d; ms = %d)\n", ts, ms);
|
||||||
free(e);
|
free(e);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
/* Adjust if voice frame timestamp is off by a step */
|
/* Adjust if voice frame timestamp is off by a step */
|
||||||
if (ms > 32768) {
|
if (ms > 32768) {
|
||||||
|
|
Loading…
Reference in New Issue