mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
change api to return event on filter command
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12488 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -189,9 +189,18 @@ ESLevent *ESLconnection::recvEventTimed(int ms)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int ESLconnection::filter(const char *header, const char *value)
|
||||
ESLevent *ESLconnection::filter(const char *header, const char *value)
|
||||
{
|
||||
return esl_filter(&handle, header, value);
|
||||
esl_status_t status = esl_filter(&handle, header, value);
|
||||
|
||||
if (status == ESL_SUCCESS && handle.last_sr_event) {
|
||||
esl_event_t *event;
|
||||
esl_event_dup(&event, handle.last_sr_event);
|
||||
return new ESLevent(event, 1);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
}
|
||||
|
||||
int ESLconnection::events(const char *etype, const char *value)
|
||||
|
||||
Reference in New Issue
Block a user