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

Author: Václav Kubart <[email protected]>
Committer: Stefan Sayer <[email protected]>
Date:   Tue Jun  3 13:07:08 2014 +0200

stats: added command for printing sems version

---

 core/plug-in/stats/StatsUDPServer.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/core/plug-in/stats/StatsUDPServer.cpp 
b/core/plug-in/stats/StatsUDPServer.cpp
index 25b5df7..7115bba 100644
--- a/core/plug-in/stats/StatsUDPServer.cpp
+++ b/core/plug-in/stats/StatsUDPServer.cpp
@@ -289,6 +289,7 @@ int StatsUDPServer::execute(char* msg_buf, string& reply,
     reply = 
       "calls                              -  number of active calls (Session 
Container size)\n"
       "which                              -  print available commands\n"
+      "version                            -  return SEMS version\n"
       "set_loglevel <loglevel>            -  set log level\n"
       "get_loglevel                       -  get log level\n"
       "set_cpslimit <limit>               -  set maximum allowed CPS\n"
@@ -306,6 +307,9 @@ int StatsUDPServer::execute(char* msg_buf, string& reply,
       "new INVITE and OPTIONS requests.\n"
       ;
   }
+  else if (cmd_str == "version") {
+    reply = SEMS_VERSION;
+  }
   else if (cmd_str.length() > 4 && cmd_str.substr(0, 4) == "set_") {
     // setters 
     if (cmd_str.substr(4, 8) == "loglevel") {

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to