handle invalid events
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9183 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
97a2c0c966
commit
423275120c
|
@ -1828,13 +1828,14 @@ static void conference_loop_output(conference_member_t *member)
|
|||
char *body = switch_event_get_body(event);
|
||||
char *p, *freeme = NULL;
|
||||
|
||||
if ((p = strchr(to, '+')) && strncmp(to, CONF_CHAT_PROTO, strlen(CONF_CHAT_PROTO))) {
|
||||
freeme = switch_mprintf("%s+%s@%s", CONF_CHAT_PROTO, member->conference->name, member->conference->domain);
|
||||
to = freeme;
|
||||
if (to && from && body) {
|
||||
if ((p = strchr(to, '+')) && strncmp(to, CONF_CHAT_PROTO, strlen(CONF_CHAT_PROTO))) {
|
||||
freeme = switch_mprintf("%s+%s@%s", CONF_CHAT_PROTO, member->conference->name, member->conference->domain);
|
||||
to = freeme;
|
||||
}
|
||||
chat_send(proto, from, to, subject, body, hint);
|
||||
switch_safe_free(freeme);
|
||||
}
|
||||
|
||||
chat_send(proto, from, to, subject, body, hint);
|
||||
switch_safe_free(freeme);
|
||||
switch_event_destroy(&event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue