mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-26 20:48:21 +00:00
only treat the right event types as a message (MODAPP-116)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9196 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
ca44d9af17
commit
24cef98170
@ -1820,6 +1820,7 @@ static void conference_loop_output(conference_member_t *member)
|
|||||||
|
|
||||||
|
|
||||||
if (switch_core_session_dequeue_event(member->session, &event) == SWITCH_STATUS_SUCCESS) {
|
if (switch_core_session_dequeue_event(member->session, &event) == SWITCH_STATUS_SUCCESS) {
|
||||||
|
if (event->event_id == SWITCH_EVENT_MESSAGE) {
|
||||||
char *from = switch_event_get_header(event, "from");
|
char *from = switch_event_get_header(event, "from");
|
||||||
char *to = switch_event_get_header(event, "to");
|
char *to = switch_event_get_header(event, "to");
|
||||||
char *proto = switch_event_get_header(event, "proto");
|
char *proto = switch_event_get_header(event, "proto");
|
||||||
@ -1836,6 +1837,7 @@ static void conference_loop_output(conference_member_t *member)
|
|||||||
chat_send(proto, from, to, subject, body, hint);
|
chat_send(proto, from, to, subject, body, hint);
|
||||||
switch_safe_free(freeme);
|
switch_safe_free(freeme);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
switch_event_destroy(&event);
|
switch_event_destroy(&event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user