mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
Finalization of speech detect interface and API
This changes the core to have the necessary tools to create a speech detection interface. It also changes the code in javascript (mod_spidermonkey) there are a few api changes in how it handles callbacks It also adds grammars as a system dir to store asr grammars git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3291 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -128,6 +128,7 @@ static char *EVENT_NAMES[] = {
|
||||
"ROSTER",
|
||||
"CODEC",
|
||||
"BACKGROUND_JOB",
|
||||
"DETECTED_SPEECH",
|
||||
"ALL"
|
||||
};
|
||||
|
||||
@@ -539,15 +540,17 @@ SWITCH_DECLARE(void) switch_event_destroy(switch_event_t **event)
|
||||
switch_event_t *ep = *event;
|
||||
switch_event_header_t *hp, *this;
|
||||
|
||||
for (hp = ep->headers; hp;) {
|
||||
this = hp;
|
||||
hp = hp->next;
|
||||
FREE(this->name);
|
||||
FREE(this->value);
|
||||
FREE(this);
|
||||
if (ep) {
|
||||
for (hp = ep->headers; hp;) {
|
||||
this = hp;
|
||||
hp = hp->next;
|
||||
FREE(this->name);
|
||||
FREE(this->value);
|
||||
FREE(this);
|
||||
}
|
||||
FREE(ep->body);
|
||||
FREE(ep);
|
||||
}
|
||||
FREE(ep->body);
|
||||
FREE(ep);
|
||||
*event = NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user