diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-30 16:59:02 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-10-30 16:59:02 +0000 |
commit | 219bc91e3a03279fbb7c4e2aeb768e79d0a182d2 (patch) | |
tree | b3b121d56bb2204761181dc829b9d44a3c6eef6c /main | |
parent | b43a258a32bc153197c6242c85afafa6a9b6edd6 (diff) |
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: http://svn.digium.com/svn/asterisk/trunk@46439 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/rtp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/rtp.c b/main/rtp.c index f21a5afbd..4570c2fcc 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) { |