...
|
...
|
@@ -289,6 +289,7 @@ int StatsUDPServer::execute(char* msg_buf, string& reply,
|
289
|
289
|
reply =
|
290
|
290
|
"calls - number of active calls (Session Container size)\n"
|
291
|
291
|
"which - print available commands\n"
|
|
292
|
+ "version - return SEMS version\n"
|
292
|
293
|
"set_loglevel <loglevel> - set log level\n"
|
293
|
294
|
"get_loglevel - get log level\n"
|
294
|
295
|
"set_cpslimit <limit> - set maximum allowed CPS\n"
|
...
|
...
|
@@ -306,6 +307,9 @@ int StatsUDPServer::execute(char* msg_buf, string& reply,
|
306
|
307
|
"new INVITE and OPTIONS requests.\n"
|
307
|
308
|
;
|
308
|
309
|
}
|
|
310
|
+ else if (cmd_str == "version") {
|
|
311
|
+ reply = SEMS_VERSION;
|
|
312
|
+ }
|
309
|
313
|
else if (cmd_str.length() > 4 && cmd_str.substr(0, 4) == "set_") {
|
310
|
314
|
// setters
|
311
|
315
|
if (cmd_str.substr(4, 8) == "loglevel") {
|