mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Make a NOTICE about an invalid channel name more useful.
........ Merged revisions 406918 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 406919 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3656,7 +3656,8 @@ static int action_hangup(struct mansession *s, const struct message *m)
|
||||
|
||||
if (name_or_regex[0] != '/') {
|
||||
if (!(c = ast_channel_get_by_name(name_or_regex))) {
|
||||
ast_log(LOG_NOTICE, "!!!!!!!!!! Can't find channel to hang up!\n");
|
||||
ast_log(LOG_NOTICE, "Request to hangup non-existent channel: %s\n",
|
||||
name_or_regex);
|
||||
astman_send_error(s, m, "No such channel");
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user