git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7444
d0543943-73ff-0310-b7d9-
9358b9ac24b2
char *rpid = switch_event_get_header(event, "rpid");
char *type = switch_event_get_header(event, "event_subtype");
char *sql;
-
-
+
+ if (globals.running != 1) {
+ return;
+ }
+
if (!proto) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error Missing 'proto' header\n");
return;
void *val;
char *sql;
+ if (globals.running != 1) {
+ return;
+ }
if (status && !strcasecmp(status, "n/a")) {
status = NULL;