When reloading dialplan, hints created dynamically would lose any dash
characters. Now we ignore those dashes if we are dealing with a hint
during a reload.
ASTERISK-28040 #close
Change-Id: I95e48f5a268efa3c6840ab69798525d3dce91636
}
}
- exten_fluff = ext_fluff_count(extension);
+ if (priority == PRIORITY_HINT) {
+ /* Fluff in a hint is fine. This prevents the removal of dashes from dynamically
+ * created hints during a reload. */
+ exten_fluff = 0;
+ } else {
+ exten_fluff = ext_fluff_count(extension);
+ }
+
callerid_fluff = callerid ? ext_fluff_count(callerid) : 0;
length = sizeof(struct ast_exten);