]> 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)
committerSven Kube <mail@sven-kube.de>
Wed, 30 Jul 2025 15:35:59 +0000 (15:35 +0000)
commit0ba07ac7c374cc42885e7fd35f15ab5284c2826d
tree54b525535a0559d1cd5a36a7e3aa7d8b6ab29f9d
parent74e002277c6579cd9ca87be4ca0cf741f4620b7e
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.
res/ari/resource_channels.c