Project "FreeSWITCH Source" received a push.

branch: master updated

       via: 0444626b721fdd3a5400a86883d5668fa8678cd8 (commit)
      from: 4020a202d7e5c34cb1912ff5fa6824fde9544355 (commit)


= COMMIT LOG ===========================================================
committer: Anthony Minessale
comments: 
fix linger support in esl client lib

diff --git a/libs/esl/src/esl.c b/libs/esl/src/esl.c
index cd103ec..b0bc311 100644
--- a/libs/esl/src/esl.c
+++ b/libs/esl/src/esl.c
@@ -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) {
========================================================================

Summary of changes:
 libs/esl/src/esl.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

this email was generated because of /git/your-repo.git/hooks/post-receive by the file /git-core/contrib/hooks/post-receive-email
For more info, see http://blog.chomperstomp.com/?p=630 --
FreeSWITCH Source