mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-02 19:40:08 +00:00
reduce events on many to many sla
This commit is contained in:
parent
1c6d7ce68f
commit
3cdb00a525
@ -1168,6 +1168,11 @@ static void actual_sofia_presence_event_handler(switch_event_t *event)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (hup && dh.hits > 0) {
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (zstr(call_id) && (dh.hits && presence_source && (!strcasecmp(presence_source, "register") || switch_stristr("register", status)))) {
|
if (zstr(call_id) && (dh.hits && presence_source && (!strcasecmp(presence_source, "register") || switch_stristr("register", status)))) {
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
@ -1284,7 +1289,7 @@ static void actual_sofia_presence_event_handler(switch_event_t *event)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (hup) {
|
if (hup && dh.hits < 1) {
|
||||||
/* so many phones get confused when whe hangup we have to reprobe to get them all to reset to absolute states so the lights stay correct */
|
/* so many phones get confused when whe hangup we have to reprobe to get them all to reset to absolute states so the lights stay correct */
|
||||||
switch_event_t *s_event;
|
switch_event_t *s_event;
|
||||||
|
|
||||||
@ -1299,6 +1304,7 @@ static void actual_sofia_presence_event_handler(switch_event_t *event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!zstr((char *) helper.stream.data)) {
|
if (!zstr((char *) helper.stream.data)) {
|
||||||
char *this_sql = (char *) helper.stream.data;
|
char *this_sql = (char *) helper.stream.data;
|
||||||
char *next = NULL;
|
char *next = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user