kamctl: cmd trap output file with txt extension
authorDaniel-Constantin Mierla <miconda@gmail.com>
Sat, 14 Mar 2020 17:16:34 +0000 (18:16 +0100)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Sat, 14 Mar 2020 17:16:34 +0000 (18:16 +0100)
- easier to view inline when sent via email, without extensions being
binary encoding and requiring explicit download

utils/kamctl/kamctl

index 7fd9197..ffac930 100755 (executable)
@@ -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: "