mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-06 12:56:17 +00:00
xmas presence
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3721 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
55d0882f90
commit
375f1b38fd
@ -306,7 +306,8 @@ static void pres_event_handler(switch_event_t *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch(event->event_id) {
|
switch(event->event_id) {
|
||||||
case SWITCH_EVENT_PRESENCE_PROBE: {
|
case SWITCH_EVENT_PRESENCE_PROBE:
|
||||||
|
if (proto && !strcasecmp(proto, MDL_CHAT_PROTO)) {
|
||||||
char *sql;
|
char *sql;
|
||||||
switch_core_db_t *db;
|
switch_core_db_t *db;
|
||||||
char *errmsg;
|
char *errmsg;
|
||||||
|
@ -5326,7 +5326,8 @@ static void pres_event_handler(switch_event_t *event)
|
|||||||
|
|
||||||
|
|
||||||
switch(event->event_id) {
|
switch(event->event_id) {
|
||||||
case SWITCH_EVENT_PRESENCE_PROBE: {
|
case SWITCH_EVENT_PRESENCE_PROBE:
|
||||||
|
if (proto && !strcasecmp(proto, SOFIA_CHAT_PROTO)) {
|
||||||
switch_core_db_t *db;
|
switch_core_db_t *db;
|
||||||
char *to = switch_event_get_header(event, "to");
|
char *to = switch_event_get_header(event, "to");
|
||||||
char *user, *host;
|
char *user, *host;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user