Index: rtp.c =================================================================== RCS file: /usr/cvsroot/asterisk/rtp.c,v retrieving revision 1.114 diff -u -r1.114 rtp.c --- rtp.c 17 Mar 2005 23:12:15 -0000 1.114 +++ rtp.c 24 Mar 2005 19:14:40 -0000 @@ -1271,8 +1271,6 @@ put_uint32(rtpheader + 4, htonl(rtp->lastts)); put_uint32(rtpheader + 8, htonl(rtp->ssrc)); - rtp->seqno++; - if (rtp->them.sin_port && rtp->them.sin_addr.s_addr) { res = sendto(rtp->s, (void *)rtpheader, f->datalen + hdrlen, 0, (struct sockaddr *)&rtp->them, sizeof(rtp->them)); if (res <0) @@ -1281,6 +1279,9 @@ ast_verbose("Sent RTP packet to %s:%d (type %d, seq %d, ts %d, len %d)\n" , ast_inet_ntoa(iabuf, sizeof(iabuf), rtp->them.sin_addr), ntohs(rtp->them.sin_port), codec, rtp->seqno, rtp->lastts,res - hdrlen); } + + rtp->seqno++; + return 0; }