--- 1/res/res_pjsip/pjsip_configuration.c 2021-08-05 16:28:34.000000000 +0200 +++ 2/res/res_pjsip/pjsip_configuration.c 2021-08-14 20:05:30.340882000 +0200 @@ -217,12 +217,14 @@ static int timers_handler(const struct a /* set only the specified flag and let pjsip normalize if needed */ if (ast_true(var->value)) { endpoint->extensions.flags |= PJSIP_INV_SUPPORT_TIMER; - } else if (!strcasecmp(var->value, "required")) { - endpoint->extensions.flags |= PJSIP_INV_REQUIRE_TIMER; - } else if (!strcasecmp(var->value, "always") || !strcasecmp(var->value, "forced")) { - endpoint->extensions.flags |= PJSIP_INV_ALWAYS_USE_TIMER; - } else if (!ast_false(var->value)) { - return -1; + + if (!strcasecmp(var->value, "required")) { + endpoint->extensions.flags |= PJSIP_INV_REQUIRE_TIMER; + } else if (!strcasecmp(var->value, "always") || !strcasecmp(var->value, "forced")) { + endpoint->extensions.flags |= PJSIP_INV_ALWAYS_USE_TIMER; + } else if (!ast_false(var->value)) { + return -1; + } } return 0;