]> git.ipfire.org Git - thirdparty/asterisk.git/commit
resource_channels.c: Don't call ast_channel_get_by_name on empty optional arguments
authorSven Kube <mail@sven-kube.de>
Wed, 30 Jul 2025 10:26:13 +0000 (12:26 +0200)
committerAsterisk Development Team <asteriskteam@digium.com>
Wed, 10 Sep 2025 19:55:23 +0000 (19:55 +0000)
commit4924fa3c1ddeb32e4c77a5bb7412a4fd784c9a4c
tree19d754c01276e12b6fafbaeec4e50a6252a83129
parent88aa9ed305d7425b49c5ab72b68a8ec6254c7f95
resource_channels.c: Don't call ast_channel_get_by_name on empty optional arguments

`ast_ari_channels_create` and `ast_ari_channels_dial` called the
`ast_channel_get_by_name` function with optional arguments. Since
8f1982c4d6, this function logs an error for empty channel names.
This commit adds checks for empty optional arguments that are used
to call `ast_channel_get_by_name` to prevent these error logs.

(cherry picked from commit 3f6e60239212be71e469621dc43f997b52fa954d)
res/ari/resource_channels.c