Merge pull request #1777 from greenbea/patch-15

[mod_sofia] Fix PRESENCE_PROBE firing on rejection
This commit is contained in:
Andrey Volk 2022-08-30 02:42:26 +03:00 committed by GitHub
commit 7c18cc08d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -4325,7 +4325,6 @@ void sofia_presence_handle_sip_i_subscribe(int status,
switch_event_fire(&event);
}
end:
if (strcasecmp(event, "call-info") && strcasecmp(event, "line-seize")) {
@ -4407,6 +4406,8 @@ void sofia_presence_handle_sip_i_subscribe(int status,
}
}
end:
if (event) {
su_free(nua_handle_get_home(nh), event);
}