summaryrefslogtreecommitdiffstats
path: root/src/msntab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msntab.c')
-rw-r--r--src/msntab.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/msntab.c b/src/msntab.c
index 09709cc..cf84ec8 100644
--- a/src/msntab.c
+++ b/src/msntab.c
@@ -118,6 +118,9 @@ static int parse_options(const char *s, struct tabentry *t) {
else if (!strcmp(o, "shbuf")) {
t->shbuf = 1;
continue;
+ } else if (!strcmp(o, "pipehack")) {
+ t->pipehack = 1;
+ continue;
} else if (!strncmp(o, "rings=", 6)) {
t->rings = atoi(o+6);
continue;
@@ -294,12 +297,13 @@ static void dump_entry(struct tabentry *t) {
} else
strncpy(s, "NOARGS", sizeof(s));
- daemon_log(LOG_INFO, "[%s:%02u] %-12s -> %-12s; shbuf=%-3s; rings=%u; action=%s; args=<%s>",
+ daemon_log(LOG_INFO, "[%s:%02u] %-12s -> %-12s; shbuf=%c; pipehack=%c; rings=%u; action=%s; args=<%s>",
t->filename,
t->line,
t->local,
t->remote,
- t->shbuf ? "yes" : "no",
+ t->shbuf ? 'y' : 'n',
+ t->pipehack ? 'y' : 'n',
t->rings,
t->action == CALL_ACTION_ACCEPT ? "ACCEPT" : (t->action == CALL_ACTION_HANGUP ? "HANGUP" : "IGNORE"),
s);