summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/menu/menu.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/menu/menu.c b/modules/menu/menu.c
index 0ea87b7..aab9661 100644
--- a/modules/menu/menu.c
+++ b/modules/menu/menu.c
@@ -1130,7 +1130,13 @@ static int module_init(void)
start_ticks = tmr_jiffies();
tmr_init(&tmr_alert);
- statmode = STATMODE_CALL;
+ if (0 == conf_get(conf_cur(), "statmode_default", &val) &&
+ 0 == pl_strcasecmp(&val, "off")) {
+ statmode = STATMODE_OFF;
+ }
+ else {
+ statmode = STATMODE_CALL;
+ }
err = cmd_register(baresip_commands(), cmdv, ARRAY_SIZE(cmdv));
err |= cmd_register(baresip_commands(), dialcmdv,