Module: kamailio
Branch: master
Commit: 41841dfc153894a97609bdc95d78a12cb2b304ca
URL:
https://github.com/kamailio/kamailio/commit/41841dfc153894a97609bdc95d78a12…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-03-14T18:16:34+01:00
kamctl: cmd trap output file with txt extension
- easier to view inline when sent via email, without extensions being
binary encoding and requiring explicit download
---
Modified: utils/kamctl/kamctl
---
Diff:
https://github.com/kamailio/kamailio/commit/41841dfc153894a97609bdc95d78a12…
Patch:
https://github.com/kamailio/kamailio/commit/41841dfc153894a97609bdc95d78a12…
---
diff --git a/utils/kamctl/kamctl b/utils/kamctl/kamctl
index 7fd9197a35..ffac93065c 100755
--- a/utils/kamctl/kamctl
+++ b/utils/kamctl/kamctl
@@ -2918,7 +2918,7 @@ kamailio_trap() {
exit
fi
DATE=`/bin/date +%Y%m%d_%H%M%S`
- LOG_FILE=/tmp/gdb_kamailio_$DATE
+ LOG_FILE=/tmp/gdb_kamailio_${DATE}.txt
minfo "Trap file: $LOG_FILE"
ctl_cmd_run core.psx > $LOG_FILE
echo -n "Trapping Kamailio with gdb: "