mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
event socket / ESL improvements
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12228 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -118,6 +118,8 @@ static const char *EVENT_NAMES[] = {
|
||||
"GENERAL",
|
||||
"COMMAND",
|
||||
"SESSION_HEARTBEAT",
|
||||
"CLIENT_DISCONNECTED",
|
||||
"SERVER_DISCONNECTED",
|
||||
"ALL"
|
||||
};
|
||||
|
||||
@@ -157,10 +159,12 @@ ESL_DECLARE(esl_status_t) esl_event_create_subclass(esl_event_t **event, esl_eve
|
||||
|
||||
(*event)->event_id = event_id;
|
||||
|
||||
esl_event_add_header_string(*event, ESL_STACK_BOTTOM, "Event-Name", esl_event_name((*event)->event_id));
|
||||
|
||||
if (subclass_name) {
|
||||
(*event)->subclass_name = DUP(subclass_name);
|
||||
esl_event_add_header_string(*event, ESL_STACK_BOTTOM, "Event-Subclass", subclass_name);
|
||||
}
|
||||
}
|
||||
|
||||
return ESL_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user