From 8f0b94435cf87e40075262c2d459f1073d3bc87e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 5 Mar 2007 20:55:41 +0000 Subject: [PATCH] add TRAP event git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4453 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_types.h | 2 ++ src/switch_event.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/include/switch_types.h b/src/include/switch_types.h index 042e893be5..5fac010ec2 100644 --- a/src/include/switch_types.h +++ b/src/include/switch_types.h @@ -816,6 +816,7 @@ typedef enum { SWITCH_EVENT_DETECTED_SPEECH - Detected Speech SWITCH_EVENT_PRIVATE_COMMAND - A private command event SWITCH_EVENT_HEARTBEAT - Machine is alive + SWITCH_EVENT_TRAP - Error Trap SWITCH_EVENT_ALL - All events at once @@ -857,6 +858,7 @@ typedef enum { SWITCH_EVENT_DETECTED_SPEECH, SWITCH_EVENT_PRIVATE_COMMAND, SWITCH_EVENT_HEARTBEAT, + SWITCH_EVENT_TRAP, SWITCH_EVENT_ALL } switch_event_types_t; diff --git a/src/switch_event.c b/src/switch_event.c index 4413da2821..3d7652ff42 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -132,6 +132,7 @@ static char *EVENT_NAMES[] = { "DETECTED_SPEECH", "PRIVATE_COMMAND", "HEARTBEAT", + "TRAP", "ALL" };