From 123a628279be61999e847ebab8126a72f08824b8 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Thu, 24 Sep 2020 17:12:18 -0400 Subject: [PATCH] pbx.c: Allow dashes in hint extensions Change-Id: Ie746ab11087bc0189a5cfc2bcb364e1c487515dc --- main/pbx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/pbx.c b/main/pbx.c index 8728f2c86b..e7c84382f4 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -7292,6 +7292,11 @@ static int ast_add_extension2_lockopt(struct ast_context *con, } exten_fluff = ext_fluff_count(extension); + if (priority == PRIORITY_HINT) { + /* Fluff in a hint is fine */ + exten_fluff = 0; + } + callerid_fluff = callerid ? ext_fluff_count(callerid) : 0; length = sizeof(struct ast_exten); -- 2.25.1