Module: sip-router
Branch: master
Commit: caf4769ec0f243df71e79ee3c0781afbe5884bac
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=caf4769ec0f243df71e79ee3c0781afbe5884bac

Author: Juha Heinanen <[email protected]>
Committer: Juha Heinanen <[email protected]>
Date:   Fri Apr  5 15:17:07 2013 +0300

modules/websocket: b/f defined missing ws_keepalive_mechanism variable

---

 modules/websocket/ws_mod.c |    2 ++
 modules/websocket/ws_mod.h |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/websocket/ws_mod.c b/modules/websocket/ws_mod.c
index 4159a47..7ac4316 100644
--- a/modules/websocket/ws_mod.c
+++ b/modules/websocket/ws_mod.c
@@ -50,6 +50,8 @@ static void destroy(void);
 
 sl_api_t ws_slb;
 
+int ws_keepalive_mechanism = KEEPALIVE_MECHANISM_PING;
+
 #define DEFAULT_KEEPALIVE_INTERVAL     1
 static int ws_keepalive_interval = DEFAULT_KEEPALIVE_INTERVAL;
 
diff --git a/modules/websocket/ws_mod.h b/modules/websocket/ws_mod.h
index 819d3ea..028368a 100644
--- a/modules/websocket/ws_mod.h
+++ b/modules/websocket/ws_mod.h
@@ -37,6 +37,7 @@ enum
 extern sl_api_t ws_slb;
 extern gen_lock_t *ws_stats_lock;
 
+extern int ws_keepalive_mechanism;
 extern int ws_ping_interval;   /* time (in seconds) between sending Pings */
 
 #endif /* _WS_MOD_H */


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to