Skip to content

Commit 9b50bec

Browse files
InterLinked1Friendly Automation
authored and
Friendly Automation
committed
func_callerid: Warn about invalid redirecting reason.
Currently, if a user attempts to set a Caller ID related function to an invalid value, a warning is emitted, except for when setting the redirecting reason. We now emit a warning if we were unable to successfully parse the user-provided reason. ASTERISK-30332 #close Change-Id: Ic341f5d5f7303b6f1115549be64db58a85944f5a
1 parent d60bd09 commit 9b50bec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

funcs/func_callerid.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,6 +1611,7 @@ static int redirecting_write(struct ast_channel *chan, const char *cmd, char *da
16111611
* reason, so we can just set the reason string to what was given and set the
16121612
* code to be unknown
16131613
*/
1614+
ast_log(LOG_WARNING, "Unknown redirecting reason '%s', defaulting to unknown\n", val);
16141615
redirecting.orig_reason.code = AST_REDIRECTING_REASON_UNKNOWN;
16151616
redirecting.orig_reason.str = val;
16161617
set_it(chan, &redirecting, NULL);

0 commit comments

Comments
 (0)