[asterisk-commits] branch oej/zfonepassthrough r21736 -
/team/oej/zfonepassthrough/rtp.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Apr 19 19:37:34 MST 2006
Author: oej
Date: Wed Apr 19 21:37:29 2006
New Revision: 21736
URL: http://svn.digium.com/view/asterisk?rev=21736&view=rev
Log:
Recognize ZRTP
Modified:
team/oej/zfonepassthrough/rtp.c
Modified: team/oej/zfonepassthrough/rtp.c
URL: http://svn.digium.com/view/asterisk/team/oej/zfonepassthrough/rtp.c?rev=21736&r1=21735&r2=21736&view=diff
==============================================================================
--- team/oej/zfonepassthrough/rtp.c (original)
+++ team/oej/zfonepassthrough/rtp.c Wed Apr 19 21:37:29 2006
@@ -492,10 +492,19 @@
}
if (ext) {
+ int profile;
/* RTP Extension present */
hdrlen += 4;
hdrlen += (ntohl(rtpheader[3]) & 0xffff) << 2;
- }
+ profile = (ntohl(rtpheader[3]) & 0xffff0000) >> 16;
+ if (profile == 0x505a)
+ ast_log(LOG_DEBUG, "Found Zfone extension in RTP stream - zrtp (not yet supported)\n");
+ else
+ ast_log(LOG_DEBUG, "Found RTP Extension %x\n", profile);
+
+
+ }
+
if (res < hdrlen) {
ast_log(LOG_WARNING, "RTP Read too short (%d, expecting %d)\n", res, hdrlen);
More information about the asterisk-commits
mailing list