[Home]

Summary:ASTERISK-27122: chan_iax2: On reload MWI taskprocessors keep adding up
Reporter:Sergej Kasumovic (sergej)Labels:
Date Opened:2017-07-11 02:28:08Date Closed:2017-07-18 19:23:27
Priority:MajorRegression?
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:13.17.0 GIT Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) chan_iax2_mwi_taskprocessors.diff
Description:Another reload bug, git version of Asterisk 13.
It is very easy to replicate this one.
Have at least one IAX2 friend defined in iax.conf.
The important bit is that mailbox is defined.

Perform the following commands:
{noformat}
core show taskprocessors
module reload chan_iax2.so
core show taskprocessors
{noformat}

What you will notice is that the following taskprocessors keep adding up:
{noformat}
subp:{accountcode}@default-0000006a
{noformat}
Comments:By: Asterisk Team (asteriskteam) 2017-07-11 02:28:13.717-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: Sean Bright (seanbright) 2017-07-12 15:20:35.428-0500

[~sergej], rather than unsubscribing, could you just skip the subscription if the subscription already exists? Something like:

{noformat}
if (!peer->mwi_event_sub) {
   peer->mwi_event_sub = stasis_subscribe_pool(mailbox_specific_topic, stasis_subscription_cb_noop, NULL);
}
{noformat}


By: Sergej Kasumovic (sergej) 2017-07-14 01:25:25.008-0500

Ok, submitted to Gerrit and cherry-picked to all branches - 13, 14, master.