diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 1d8d9e648a..391ae9019f 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -817,7 +817,7 @@ static int rtp_common_read(switch_rtp_t *rtp_session, switch_payload_t *payload_ /* RFC2833 ... TBD try harder to honor the duration etc.*/ if (*payload_type == 101) { - unsigned char *packet = rtp_session->recv_msg.body; + unsigned char *packet = (unsigned char *) rtp_session->recv_msg.body; int end = packet[1]&0x80; int duration = (packet[2]<<8) + packet[3]; char key = switch_rfc2833_to_char(packet[0]);