Add a patch from Enzo to fix an incompatibility between Asterisk and Sipura SPA-3000...
[openwrt.git] / package / asterisk / patches / asterisk-1.0.7-sipura-rtp.patch
1 diff -ruN asterisk-1.0.7-old/rtp.c asterisk-1.0.7-new/rtp.c
2 --- asterisk-1.0.7-old/rtp.c    2005-01-19 03:33:54.000000000 +0100
3 +++ asterisk-1.0.7-new/rtp.c    2005-05-16 19:40:02.000000000 +0200
4 @@ -1048,6 +1048,7 @@
5                         rtpheader[3] |= htonl((800));
6                         /* Set the End bit for the last 3 */
7                         rtpheader[3] |= htonl((1 << 23));
8 +                       rtpheader[1] = htonl(++(rtp->lastts)); /* added for Sipura SPA-3000 compat. */
9                 } else if ( x < 5) {
10                         rtpheader[0] = htonl((2 << 30) | (payload << 16) | (rtp->seqno++));
11                 }