[asterisk-bugs] [JIRA] (ASTERISK-27797) channel.c: BUG! Must supply a channel name or partial name to match!
Abhay Gupta (JIRA)
noreply at issues.asterisk.org
Fri Apr 13 05:59:50 CDT 2018
[ https://issues.asterisk.org/jira/browse/ASTERISK-27797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243016#comment-243016 ]
Abhay Gupta commented on ASTERISK-27797:
----------------------------------------
I find this code wrong .
In channels.c , struct ast_channel *ast_channel_get_by_name_prefix we call ast_channel_by_name_cb first and then check for lname
if (ast_strlen_zero(l_name)) {
/* We didn't have a name to search for so quit. */
return NULL;
}
now in the function ast_channnel_by_name_cb if arg i.e name is of length zero then we have this code
if (ast_strlen_zero(name)) {
ast_log(LOG_ERROR, "BUG! Must supply a channel name or partial name to match!\n");
return CMP_STOP;
}
The placement of function calling is obviously wrong .
> channel.c: BUG! Must supply a channel name or partial name to match!
> --------------------------------------------------------------------
>
> Key: ASTERISK-27797
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27797
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: pjproject/pjsip
> Affects Versions: 15.3.0
> Environment: ubuntu 16.04,ARI,webrtc
> Reporter: shaurya jain
> Assignee: Unassigned
> Severity: Minor
> Labels: webrtc
> Attachments: 1523426524.229297, AGI_log.txt
>
>
> Hi Team,
> We are still facing the concern although there is no call disconnection or major issue regarding this but it leads to unwanted ERRORS on console.
> [Apr 11 14:02:23] NOTICE[32364][C-00011eaa] res_stasis_playback.c: 1523426524.229297: Playback stopped for sound:11/mixivr
> [Apr 11 14:02:24] ERROR[32444] channel.c: BUG! Must supply a channel name or partial name to match!
> [Apr 11 14:02:24] ERROR[32623] channel.c: BUG! Must supply a channel name or partial name to match!
> Attached are the ARI logs as you asked in previous note which can show you the exact ARI request and call flow.
> Let me know the proceedings in this regards.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list