mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 15:50:59 +00:00
fix linger support in esl client lib
This commit is contained in:
parent
4020a202d7
commit
0444626b72
@ -1066,7 +1066,10 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
|
||||
hval = esl_event_get_header(revent, "content-type");
|
||||
|
||||
if (!esl_safe_strcasecmp(hval, "text/disconnect-notice") && revent->body) {
|
||||
goto fail;
|
||||
const char *dval = esl_event_get_header(revent, "content-disposition");
|
||||
if (esl_strlen_zero(dval) || strcasecmp(dval, "linger")) {
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
||||
if (revent->body) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user