Emit a warning if REDIRECTING(reason) is set to an invalid
reason, consistent with what happens when
REDIRECTING(orig-reason) is set to an invalid reason.
Resolves: #683
(cherry picked from commit
9ba6875a3f7b55c0349deee3586b8747bfe43990)
* reason, so we can just set the reason string to what was given and set the
* code to be unknown
*/
+ ast_log(LOG_WARNING, "Unknown redirecting reason '%s', defaulting to unknown\n", val);
redirecting.reason.code = AST_REDIRECTING_REASON_UNKNOWN;
redirecting.reason.str = val;
set_it(chan, &redirecting, NULL);