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