[Home]

Summary:ASTERISK-27208: res_ari_bridges: Announcer channel in ChannelLeftBridge event
Reporter:Hajek Michal (hajekmi)Labels:
Date Opened:2017-08-21 03:39:28Date Closed:
Priority:MinorRegression?
Status:Open/NewComponents:Resources/res_ari_bridges
Versions:13.17.0 Frequency of
Occurrence
Related
Issues:
Environment:CentOS release 6.9 (Final) 2.6.32-696.1.1.el6.x86_64Attachments:( 0) debug_log_20170824.txt
Description:Steps I use to reproduce:
1. chan_sip channel run Stasis app
2. create bridge of type dtmf_events, mixing
3. add channel to bridge
4. start music on hold on bridge
5. When ask asterisk on channels on bridge, receive only one channel (chan_sip)
5. channel hangup
6. Incoming event channelLeftBridge contain wrong channelID in  bridge.channels object. This channelId is for Announcer/ARI_MOH and this is maybe bug.

Call API when channel listening MOH
{noformat}
[root@stasis ~]# curl  -u x:y -X GET "http://localhost:8088/ari/bridges/5995ad73d508a"
{"creator":"Stasis","bridge_class":"stasis","bridge_type":"mixing","id":"5995ad73d508a","technology":"simple_bridge","name":"bridgename","video_mode":"talker","channels":["1502981491.88"]}

stasis*CLI> core show channels concise
Announcer/ARI_MOH-0000001c;2!default!s!1!Up!(None)!!!!!3!22!5995ad73d508a!1502981492.90
Announcer/ARI_MOH-0000001c;1!default!s!1!Up!(None)!!!!!3!22!!1502981492.89
SIP/proxy-00000020!ext-queues!2000!9!Up!Stasis!incall,wait!491200163!!!3!22!5995ad73d508a!1502981491.88
{noformat}

When channel hangup, asterisk send event channelLeftBridge, which looks like this:
{noformat}
{"channel":{"id":"1502981491.88","name":"SIP/proxy-00000020","connected":{"number":"","name":""},"state":"Up","caller":{"number":"491200163","name":"ZVEDEJ"},"creationtime":"2017-08-17T16:51:31.779+0200","accountcode":"","dialplan":{"context":"ext-queues","exten":"2000","priority":9},"language":"cs"},"bridge":{"creator":"Stasis","bridge_class":"stasis","bridge_type":"mixing","id":"5995ad73d508a","technology":"simple_bridge","name":"bridgename","video_mode":"talker","channels":["1502981492.90"]},"type":"ChannelLeftBridge","timestamp":"2017-08-17T16:51:58.611+0200","asterisk_id":"00:60:a8:58:ad:fd","application":"incall"}
{noformat}

The "channels" attribute should be empty, but it contains {{\["1502981492.90"]}}.




Comments:By: Asterisk Team (asteriskteam) 2017-08-21 03:39:30.857-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Rusty Newton (rnewton) 2017-08-23 15:39:07.409-0500

I've looked into this a bit, but I'm still unclear on a few events.

Can you gather a debug log during your reproduction of the entire issue, from step 1 to step 6?

https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

It needs to have, warning, error, notice, verbose, debug. With verbose and debug levels both turned up to 5 or above.

By: Hajek Michal (hajekmi) 2017-08-24 03:27:00.667-0500

Line 1477: Incorrect channelId 1503562379.2 on bridge.channels.