[asterisk-commits] oej: trunk r46439 - /trunk/main/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Oct 30 09:59:02 MST 2006


Author: oej
Date: Mon Oct 30 10:59:02 2006
New Revision: 46439

URL: http://svn.digium.com/view/asterisk?rev=46439&view=rev
Log:
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.

Modified:
    trunk/main/rtp.c

Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?rev=46439&r1=46438&r2=46439&view=diff
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Mon Oct 30 10:59:02 2006
@@ -1198,6 +1198,14 @@
 		/* 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) {



More information about the asterisk-commits mailing list