[asterisk-bugs] [JIRA] (ASTERISK-30239) Prometheus plugin crashes Asterisk when using local channel

Holger Hans Peter Freyther (JIRA) noreply at issues.asterisk.org
Mon Sep 19 10:42:09 CDT 2022


    [ https://issues.asterisk.org/jira/browse/ASTERISK-30239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=260263#comment-260263 ] 

Holger Hans Peter Freyther commented on ASTERISK-30239:
-------------------------------------------------------

Indeed. It does look like a duplicate. It seems the code doesn't handle "AST_BRIDGE_FLAG_INVISIBLE" flags and then crashes with a null snapshot. Taking the check from res/ari/resource_bridges.c seems to make it stop crashing and I will push a fix tomorrow (unless somebody beats me).

> Prometheus plugin crashes Asterisk when using local channel
> -----------------------------------------------------------
>
>                 Key: ASTERISK-30239
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30239
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_local, Resources/General
>    Affects Versions: 19.6.0
>         Environment: default Debian / Ubuntu no fancy stuff
>            Reporter: Joeran Vinzens
>         Attachments: ari.sh, extensions.conf, pjsip.conf
>
>
> We use ARI to create Channels. There are local Channels.
> The Asterisk crashes if there are local channel and if queried by 
> When we reproduce it it crashes ever time at the same spot.
> 1. we produce an incoming Channel by placing a call from a softphone
> 2. we create an local channel using ARI
> if we now query /metrics provided by res_prometheus asterisk will crash
> Attached is a bundle of configs and a shell script where you can see what is going on. (it is dirty just to reproduce the issue)
> the script is ment to create a local channel, two bridges and put the incoming channel into first bridge, local channel in both bridges and than create an outgoing PJSIP Channel and place this one into the the bridge, the incoming channel is not in. So at the end we would have incoming Call -> Bridge -> local Channel -> Bridge -> outgoing Channel
> Attached is the Script
> extensions.conf
> pjsip.conf



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list