diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index e469eaca22..aad3caad5f 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -2633,7 +2633,7 @@ static int sofia_presence_sub_callback(void *pArg, int argc, char **argv, char * if (in) { open = "open"; - if (!strcasecmp(astate, "terminated") && switch_false(resub)) { + if (switch_false(resub)) { int term; const char *direction = switch_event_get_header(helper->event, "Caller-Direction");