Module: kamailio
Branch: master
Commit: 1856ed85008b837fdc29ee2b156c26ff3b5a54aa
URL: 
https://github.com/kamailio/kamailio/commit/1856ed85008b837fdc29ee2b156c26ff3b5a54aa

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2021-03-26T09:34:30+01:00

lwsc: LWS_CALLBACK_EVENT_WAIT_CANCELLED event is available from v3

---

Modified: src/modules/lwsc/lwsc_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/1856ed85008b837fdc29ee2b156c26ff3b5a54aa.diff
Patch: 
https://github.com/kamailio/kamailio/commit/1856ed85008b837fdc29ee2b156c26ff3b5a54aa.patch

---

diff --git a/src/modules/lwsc/lwsc_mod.c b/src/modules/lwsc/lwsc_mod.c
index 9572d859fe..a30179c13b 100644
--- a/src/modules/lwsc/lwsc_mod.c
+++ b/src/modules/lwsc/lwsc_mod.c
@@ -243,11 +243,13 @@ static int ksr_lwsc_callback(struct lws *wsi, enum 
lws_callback_reasons reason,
                                LM_DBG("LWS_CALLBACK_PROTOCOL_DESTROY: %d\n", 
reason);
                        }
                        break;
+#if LWS_LIBRARY_VERSION_MAJOR >= 3
                case LWS_CALLBACK_EVENT_WAIT_CANCELLED:
                        if(_lwsc_verbosity>0) {
                                LM_DBG("LWS_CALLBACK_EVENT_WAIT_CANCELLED: 
%d\n", reason);
                        }
                        break;
+#endif
 
                case LWS_CALLBACK_CLIENT_CONNECTION_ERROR:
                        LM_ERR("CLIENT_CONNECTION_ERROR: %s\n", in ? (char *)in 
: "(null)");


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to