[asterisk-commits] twilson: branch 10 r336313 - in /branches/10: ./ funcs/func_frame_trace.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 16 17:07:02 CDT 2011
Author: twilson
Date: Fri Sep 16 17:07:00 2011
New Revision: 336313
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=336313
Log:
Merged revisions 336312 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8
........
r336312 | twilson | 2011-09-16 17:04:25 -0500 (Fri, 16 Sep 2011) | 5 lines
Add missing frame types to func_frame_trace
Also casts control frames to the proper enum so that the compile will catch
new additions.
........
Modified:
branches/10/ (props changed)
branches/10/funcs/func_frame_trace.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/funcs/func_frame_trace.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/funcs/func_frame_trace.c?view=diff&rev=336313&r1=336312&r2=336313
==============================================================================
--- branches/10/funcs/func_frame_trace.c (original)
+++ branches/10/funcs/func_frame_trace.c Fri Sep 16 17:07:00 2011
@@ -227,7 +227,7 @@
break;
case AST_FRAME_CONTROL:
ast_verbose("FrameType: CONTROL\n");
- switch (frame->subclass.integer) {
+ switch ((enum ast_control_frame_type) frame->subclass.integer) {
case AST_CONTROL_HANGUP:
ast_verbose("SubClass: HANGUP\n");
break;
@@ -318,7 +318,14 @@
case AST_CONTROL_INCOMPLETE:
ast_verbose("SubClass: INCOMPLETE\n");
break;
- }
+ case AST_CONTROL_END_OF_Q:
+ ast_verbose("SubClass: END_OF_Q\n");
+ break;
+ case AST_CONTROL_UPDATE_RTP_PEER:
+ ast_verbose("SubClass: UPDATE_RTP_PEER\n");
+ break;
+ }
+
if (frame->subclass.integer == -1) {
ast_verbose("SubClass: %d\n", frame->subclass.integer);
}
More information about the asterisk-commits
mailing list