Just to be on the safe side, don't update timestamps against anything but voice packets.
[asterisk/asterisk.git] / channels / chan_iax2.c
index ba3c557..657687e 100755 (executable)
@@ -4574,7 +4574,7 @@ static int socket_read(int *id, int fd, short events, void *cbdata)
                fr.oseqno = fh->oseqno;
                fr.iseqno = fh->iseqno;
                fr.ts = ntohl(fh->ts);
-               if (ntohs(fh->dcallno) & IAX_FLAG_RETRANS)
+               if ((ntohs(fh->dcallno) & IAX_FLAG_RETRANS) || (f.frametype != AST_FRAME_VOICE))
                        updatehistory = 0;
                if ((iaxs[fr.callno]->iseqno != fr.oseqno) &&
                        (iaxs[fr.callno]->iseqno ||