From: Olle Johansson Date: Mon, 30 Oct 2006 16:59:02 +0000 (+0000) Subject: In debug mode, recognize that someone is sending zrtp, even though we X-Git-Tag: 1.6.0-beta1~3^2~4225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cb07fbaa45618752a56ddb7f2164eb6dea3d2f9;p=thirdparty%2Fasterisk.git In debug mode, recognize that someone is sending zrtp, even though we can't do anything with it yet. Ideally a first step would be a passthrough mode. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46439 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/rtp.c b/main/rtp.c index f21a5afbdc..4570c2fcc9 100644 --- a/main/rtp.c +++ b/main/rtp.c @@ -1198,6 +1198,14 @@ struct ast_frame *ast_rtp_read(struct ast_rtp *rtp) /* RTP Extension present */ hdrlen += 4; hdrlen += (ntohl(rtpheader[3]) & 0xffff) << 2; + if (option_debug) { + int profile; + profile = (ntohl(rtpheader[3]) & 0xffff0000) >> 16; + if (profile == 0x505a) + ast_log(LOG_DEBUG, "Found Zfone extension in RTP stream - zrtp - not supported.\n"); + else + ast_log(LOG_DEBUG, "Found unknown RTP Extensions %x\n", profile); + } } if (res < hdrlen) {