asterisk / asterisk

The official Asterisk Project repository.
https://www.asterisk.org
Other
1.97k stars 924 forks source link

[improvement]: func_callerid: Warn if invalid redirecting reason is set #683

Closed InterLinked1 closed 1 month ago

InterLinked1 commented 1 month ago

Improvement Description

Currently, setting REDIRECTING(reason) to an invalid reason will fail silently. If REDIRECTING(orig-reason) is set to an invalid value, a warning is emitted; however, if REDIRECTING(reason) is set to an invalid value, no warning is emitted (likely a copy/paste omission at some point).

This adds a warning if the redirecting reason provided is invalid.