Title update
[asterisk/asterisk.git] / funcs / func_frame_trace.c
index 4488577..8e12aaf 100644 (file)
@@ -140,7 +140,7 @@ static struct ast_frame *hook_event_cb(struct ast_channel *chan, struct ast_fram
        }
 
        if (show_frame) {
-               ast_verbose("%s on Channel %s\n", event == AST_FRAMEHOOK_EVENT_READ ? "<--Read" : "--> Write", chan->name);
+               ast_verbose("%s on Channel %s\n", event == AST_FRAMEHOOK_EVENT_READ ? "<--Read" : "--> Write", ast_channel_name(chan));
                print_frame(frame);
        }
        return frame;
@@ -324,6 +324,9 @@ static void print_frame(struct ast_frame *frame)
                case AST_CONTROL_UPDATE_RTP_PEER:
                        ast_verbose("SubClass: UPDATE_RTP_PEER\n");
                        break;
+               case AST_CONTROL_PVT_CAUSE_CODE:
+                       ast_verbose("SubClass: PVT_CAUSE_CODE\n");
+                       break;
                }
                
                if (frame->subclass.integer == -1) {