... | ... |
@@ -36,6 +36,8 @@ |
36 | 36 |
#include "AmPlugIn.h" |
37 | 37 |
#include "AmApi.h" |
38 | 38 |
|
39 |
+#include "sip/trans_table.h" |
|
40 |
+ |
|
39 | 41 |
#include <string> |
40 | 42 |
using std::string; |
41 | 43 |
|
... | ... |
@@ -301,6 +303,8 @@ int StatsUDPServer::execute(char* msg_buf, string& reply, |
301 | 303 |
"get_cpsavg - get calls per second (5 sec average)\n" |
302 | 304 |
"get_cpsmax - get maximum of CPS since the last query\n" |
303 | 305 |
|
306 |
+ "dump_transactions - dump transaction table to log (loglevel debug)\n" |
|
307 |
+ |
|
304 | 308 |
"DI <factory> <function> (<args>)* - invoke DI command\n" |
305 | 309 |
"\n" |
306 | 310 |
"When in shutdown mode, SEMS will answer with the configured 5xx errorcode to\n" |
... | ... |
@@ -310,6 +314,10 @@ int StatsUDPServer::execute(char* msg_buf, string& reply, |
310 | 314 |
else if (cmd_str == "version") { |
311 | 315 |
reply = SEMS_VERSION; |
312 | 316 |
} |
317 |
+ else if (cmd_str == "dump_transactions") { |
|
318 |
+ dumps_transactions(); |
|
319 |
+ reply = "200 OK"; |
|
320 |
+ } |
|
313 | 321 |
else if (cmd_str.length() > 4 && cmd_str.substr(0, 4) == "set_") { |
314 | 322 |
// setters |
315 | 323 |
if (cmd_str.substr(4, 8) == "loglevel") { |