Compare commits

...

5 Commits

Author SHA1 Message Date
Asterisk Development Team
f0ea29c135 Update for 13.31.0 2020-02-04 09:50:10 -05:00
Asterisk Development Team
c057b834ac Update for 13.31.0-rc2 2020-01-30 11:33:30 -05:00
Kevin Harwell
fb7a668d69 res_stasis: trigger cleanup after update
The cleanup code in stasis shuts down applications if they are in a deactivated
state, and no longer have explicit subscriptions. When registering an app the
cleanup code was running before calling 'update'. When it should be executed
after 'update' since a call to register may re-activate the app. We don't want
it to shutdown before the 'update' otherwise the app won't be re-activated,
or registered.

This patch makes it so the cleanup code is executed post 'update'.

ASTERISK-28679 #close

Change-Id: I8f2c0b17e33bb8128441567b97fd4c7bf74a327b
(cherry picked from commit 1051227dd9)
2020-01-30 10:20:43 -06:00
Kevin Harwell
2cacc1e7f8 stasis/app: don't lock an app before a call to send
Calling 'app_send' eventually calls the app's message handler. It's possible
for a handler to obtain a lock on another object, and then need/want to lock
the app object. If the caller of 'app_send' locks the app object prior to
calling then there's a potential for a deadlock, if another thread calls
'app_send' without locking.

This patch makes it so 'app_send' is not called with the app object locked in
the section of code doing such.

ASTERISK-28423 #close

Change-Id: I6767c6d0933c7db1b984018966eefca4c0638a27
(cherry picked from commit 78d9bc8ef6)
2020-01-30 09:41:41 -06:00
Joshua C. Colp
5def6d7e17 res_pjsip_pubsub: Increment persistence data ref when recreating.
Each subscription needs to have a reference to the persisted data
for it, as well as the main JSON contained within the tree. When
recreating a subscription this did not occur and they both shared
the same reference.

ASTERISK-28714

Change-Id: I706abd49ea182ea367a4ac3feca2706460ae9f4a
(cherry picked from commit e14fd3b22a)
2020-01-30 09:36:46 -06:00
7 changed files with 155 additions and 58 deletions

View File

@@ -1 +1 @@
13.31.0-rc1
13.31.0

View File

@@ -1,3 +1,61 @@
2020-02-04 14:50 +0000 Asterisk Development Team <asteriskteam@digium.com>
* asterisk 13.31.0 Released.
2020-01-30 16:33 +0000 Asterisk Development Team <asteriskteam@digium.com>
* asterisk 13.31.0-rc2 Released.
2020-01-27 11:44 +0000 [fb7a668d69] Kevin Harwell <kharwell@digium.com>
* res_stasis: trigger cleanup after update
The cleanup code in stasis shuts down applications if they are in a deactivated
state, and no longer have explicit subscriptions. When registering an app the
cleanup code was running before calling 'update'. When it should be executed
after 'update' since a call to register may re-activate the app. We don't want
it to shutdown before the 'update' otherwise the app won't be re-activated,
or registered.
This patch makes it so the cleanup code is executed post 'update'.
ASTERISK-28679 #close
Change-Id: I8f2c0b17e33bb8128441567b97fd4c7bf74a327b
(cherry picked from commit 1051227dd96341f6e149739c1465b2e763cc67ea)
2020-01-27 12:01 +0000 [2cacc1e7f8] Kevin Harwell <kharwell@digium.com>
* stasis/app: don't lock an app before a call to send
Calling 'app_send' eventually calls the app's message handler. It's possible
for a handler to obtain a lock on another object, and then need/want to lock
the app object. If the caller of 'app_send' locks the app object prior to
calling then there's a potential for a deadlock, if another thread calls
'app_send' without locking.
This patch makes it so 'app_send' is not called with the app object locked in
the section of code doing such.
ASTERISK-28423 #close
Change-Id: I6767c6d0933c7db1b984018966eefca4c0638a27
(cherry picked from commit 78d9bc8ef66e2d20925daf0eb597cf8a956e1029)
2020-01-28 09:18 +0000 [5def6d7e17] Joshua C. Colp <jcolp@sangoma.com>
* res_pjsip_pubsub: Increment persistence data ref when recreating.
Each subscription needs to have a reference to the persisted data
for it, as well as the main JSON contained within the tree. When
recreating a subscription this did not occur and they both shared
the same reference.
ASTERISK-28714
Change-Id: I706abd49ea182ea367a4ac3feca2706460ae9f4a
(cherry picked from commit e14fd3b22a832f1e49fbdf340727c12f0c0d2929)
2020-01-23 16:23 +0000 Asterisk Development Team <asteriskteam@digium.com>
* asterisk 13.31.0-rc1 Released.

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><title>Release Summary - asterisk-13.31.0-rc1</title><h1 align="center"><a name="top">Release Summary</a></h1><h3 align="center">asterisk-13.31.0-rc1</h3><h3 align="center">Date: 2020-01-23</h3><h3 align="center">&lt;asteriskteam@digium.com&gt;</h3><hr><h2 align="center">Table of Contents</h2><ol>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><title>Release Summary - asterisk-13.31.0</title><h1 align="center"><a name="top">Release Summary</a></h1><h3 align="center">asterisk-13.31.0</h3><h3 align="center">Date: 2020-02-04</h3><h3 align="center">&lt;asteriskteam@digium.com&gt;</h3><hr><h2 align="center">Table of Contents</h2><ol>
<li><a href="#summary">Summary</a></li>
<li><a href="#contributors">Contributors</a></li>
<li><a href="#closed_issues">Closed Issues</a></li>
@@ -6,7 +6,7 @@
<li><a href="#diffstat">Diffstat</a></li>
</ol><hr><a name="summary"><h2 align="center">Summary</h2></a><center><a href="#top">[Back to Top]</a></center><p>This release is a point release of an existing major version. The changes included were made to address problems that have been identified in this release series, or are minor, backwards compatible new features or improvements. Users should be able to safely upgrade to this version if this release series is already in use. Users considering upgrading from a previous version are strongly encouraged to review the UPGRADE.txt document as well as the CHANGES document for information about upgrading to this release series.</p><p>The data in this summary reflects changes that have been made since the previous release, asterisk-13.30.0.</p><hr><a name="contributors"><h2 align="center">Contributors</h2></a><center><a href="#top">[Back to Top]</a></center><p>This table lists the people who have submitted code, those that have tested patches, as well as those that reported issues on the issue tracker that were resolved in this release. For coders, the number is how many of their patches (of any size) were committed into this release. For testers, the number is the number of times their name was listed as assisting with testing a patch. Finally, for reporters, the number is the number of issues that they reported that were affected by commits that went into this release.</p><table width="100%" border="0">
<tr><th width="33%">Coders</th><th width="33%">Testers</th><th width="33%">Reporters</th></tr>
<tr valign="top"><td width="33%">19 Sean Bright <sean.bright@gmail.com><br/>6 Richard Mudgett <rmudgett@digium.com><br/>5 George Joseph <gjoseph@digium.com><br/>4 Joshua C. Colp <jcolp@sangoma.com><br/>4 Jaco Kroon <jaco@uls.co.za><br/>2 Kevin Harwell <kharwell@digium.com><br/>2 Pascal Cadotte Michaud <pcm@wazo.io><br/>1 Stanislav <stas.abramenkov@gmail.com><br/>1 Asterisk Development Team <asteriskteam@digium.com><br/>1 Frederic LE FOLL <frederic.lefoll@c-s.fr><br/>1 Jean Aunis <jean.aunis@prescom.fr><br/>1 Rodrigo Ramírez Norambuena <a@rodrigoramirez.com><br/>1 Boris P. Korzun <drtr0jan@yandex.ru><br/>1 Andrew Siplas <andrew@asiplas.net><br/>1 Corey Farrell <git@cfware.com><br/>1 snuffy <snuffy22@gmail.com><br/></td><td width="33%"><td width="33%">3 Sean Bright <sean.bright@gmail.com><br/>3 Joshua C. Colp <jcolp@digium.com><br/>3 cmaj <chris@penguinpbx.com><br/>2 Pascal Cadotte Michaud <pascal.cadotte@gmail.com><br/>1 Kevin Flyn<br/>1 Maciej Michno <maciej.michno@xtb.com><br/>1 AvayaXAsterisk<br/>1 Jean Aunis - Prescom <jean.aunis@prescom.fr><br/>1 George Joseph <gjoseph@digium.com><br/>1 Jaco Kroon <jaco@uls.co.za><br/>1 Joshua C. Colp<br/>1 Andrew Siplas <andrew@asiplas.net><br/>1 Frank Matano <ftalarico99@gmail.com><br/>1 Cédric Bassaget<br/>1 Kevin Harwell <kharwell@digium.com><br/>1 Dan Jenkins <dan@nimbleape.com><br/>1 Maciej Michno<br/>1 Dirk Wendland <dirk@starface.de><br/>1 Ross Beer <ross.beer@voicehost.co.uk><br/>1 Jim Van Meggelen <jim.vanmeggelen@clearlycore.com><br/>1 Stas Kobzar<br/>1 Jean-Denis Girard<br/>1 Stas Kobzar <stas@modulis.ca><br/>1 Boris P. Korzun <drtr0jan@yandex.ru><br/>1 Cedric BASSAGET <cedric@oceanet.com><br/>1 Niksa Baldun <niksa.baldun@gmail.com><br/>1 Corey Farrell <git@cfware.com><br/>1 Richard Kenner<br/>1 Frank Matano<br/>1 Joeran Vinzens <vinzens@sipgate.de><br/>1 Frederic LE FOLL <frederic.lefoll@c-s.fr><br/>1 Kevin Flyn <kevflynn69@gmail.com><br/>1 David M. Lee <dlee@digium.com><br/>1 Dirk Wendland<br/>1 Bryan Nelson <bnelson@fluentstream.com><br/>1 Richard Kenner <kenner@gnat.com><br/>1 Ross Beer<br/>1 Joeran Vinzens<br/>1 Jonathan Harris <lardconcepts@gmail.com><br/>1 Jonathan Harris<br/>1 Dan Jenkins<br/>1 AvayaXAsterisk <joh.zuerner@yahoo.de><br/>1 Sean Bright<br/>1 Jean-Denis Girard <jd.girard@sysnux.pf><br/>1 Stanislav Abramenkov <stas.abramenkov@gmail.com><br/>1 candrews <candrews@integralblue.com><br/>1 Niksa Baldun<br/>1 Mitch Claborn<br/>1 Robin Leffmann <robin@stolendata.net><br/>1 Jim Van Meggelen<br/>1 David Lee<br/></td></tr>
<tr valign="top"><td width="33%">19 Sean Bright <sean.bright@gmail.com><br/>6 Richard Mudgett <rmudgett@digium.com><br/>5 George Joseph <gjoseph@digium.com><br/>5 Joshua C. Colp <jcolp@sangoma.com><br/>4 Kevin Harwell <kharwell@digium.com><br/>4 Jaco Kroon <jaco@uls.co.za><br/>3 Asterisk Development Team <asteriskteam@digium.com><br/>2 Pascal Cadotte Michaud <pcm@wazo.io><br/>1 Stanislav <stas.abramenkov@gmail.com><br/>1 Frederic LE FOLL <frederic.lefoll@c-s.fr><br/>1 Jean Aunis <jean.aunis@prescom.fr><br/>1 Rodrigo Ramírez Norambuena <a@rodrigoramirez.com><br/>1 Boris P. Korzun <drtr0jan@yandex.ru><br/>1 Andrew Siplas <andrew@asiplas.net><br/>1 Corey Farrell <git@cfware.com><br/>1 snuffy <snuffy22@gmail.com><br/></td><td width="33%"><td width="33%">3 Sean Bright <sean.bright@gmail.com><br/>3 Ross Beer <ross.beer@voicehost.co.uk><br/>3 Joshua C. Colp <jcolp@digium.com><br/>3 cmaj <chris@penguinpbx.com><br/>2 Pascal Cadotte Michaud <pascal.cadotte@gmail.com><br/>1 Kevin Flyn<br/>1 Maciej Michno <maciej.michno@xtb.com><br/>1 AvayaXAsterisk<br/>1 Jean Aunis - Prescom <jean.aunis@prescom.fr><br/>1 George Joseph <gjoseph@digium.com><br/>1 Jaco Kroon <jaco@uls.co.za><br/>1 candrews <candrews@integralblue.com><br/>1 Andrew Siplas <andrew@asiplas.net><br/>1 Frank Matano <ftalarico99@gmail.com><br/>1 Cédric Bassaget<br/>1 Kevin Harwell <kharwell@digium.com><br/>1 Dan Jenkins <dan@nimbleape.com><br/>1 Maciej Michno<br/>1 Dirk Wendland <dirk@starface.de><br/>1 Jim Van Meggelen <jim.vanmeggelen@clearlycore.com><br/>1 Stas Kobzar<br/>1 Jean-Denis Girard<br/>1 Stas Kobzar <stas@modulis.ca><br/>1 Boris P. Korzun <drtr0jan@yandex.ru><br/>1 Cedric BASSAGET <cedric@oceanet.com><br/>1 Niksa Baldun <niksa.baldun@gmail.com><br/>1 Corey Farrell <git@cfware.com><br/>1 Richard Kenner<br/>1 Frank Matano<br/>1 Joeran Vinzens <vinzens@sipgate.de><br/>1 Frederic LE FOLL <frederic.lefoll@c-s.fr><br/>1 Kevin Flyn <kevflynn69@gmail.com><br/>1 David M. Lee <dlee@digium.com><br/>1 Dirk Wendland<br/>1 Bryan Nelson <bnelson@fluentstream.com><br/>1 Richard Kenner <kenner@gnat.com><br/>1 Ross Beer<br/>1 Francois Blackburn <fblackburn@wazo.io><br/>1 Joeran Vinzens<br/>1 Jonathan Harris <lardconcepts@gmail.com><br/>1 Jonathan Harris<br/>1 Dan Jenkins<br/>1 AvayaXAsterisk <joh.zuerner@yahoo.de><br/>1 Sean Bright<br/>1 Jean-Denis Girard <jd.girard@sysnux.pf><br/>1 Stanislav Abramenkov <stas.abramenkov@gmail.com><br/>1 Joshua C. Colp<br/>1 Niksa Baldun<br/>1 Mitch Claborn<br/>1 Robin Leffmann <robin@stolendata.net><br/>1 Jim Van Meggelen<br/>1 David Lee<br/></td></tr>
</table><hr><a name="closed_issues"><h2 align="center">Closed Issues</h2></a><center><a href="#top">[Back to Top]</a></center><p>This is a list of all issues from the issue tracker that were closed by changes that went into this release.</p><h3>New Feature</h3><h4>Category: Functions/func_curl</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-17491">ASTERISK-17491</a>: CURLOPT() needs a "followlocation" parameter / "maxredirs" doesn't do anything<br/>Reported by: candrews<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=53967ebd0f967ac2b10a5e61e8038bfa00de8e32">[53967ebd0f]</a> Sean Bright -- func_curl: Add 'followlocation' option to CURLOPT()</li>
</ul><br><h4>Category: Resources/res_pjsip_endpoint_identifier_ip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28639">ASTERISK-28639</a>: res_pjsip_endpoint_identifier_ip: Add ability to match on source port<br/>Reported by: Sean Bright<ul>
@@ -69,17 +69,23 @@
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=884b86e7c018614558a45f9f8014c2f364300457">[884b86e7c0]</a> Sean Bright -- pbx.c: Include filesystem cache in free memory calculation</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28605">ASTERISK-28605</a>: chan_dahdi: Deadlock in Hangup Scenarios with concurrent command pri show span X<br/>Reported by: Dirk Wendland<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9249c30b8747dad4c022070dd49f6207611a7a04">[9249c30b87]</a> George Joseph -- sig_pri: Fix deadlock caused by sig_pri_queue_hangup</li>
</ul><br><h4>Category: Resources/res_ari</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28679">ASTERISK-28679</a>: stasis application is destroyed after its creation<br/>Reported by: Francois Blackburn<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=fb7a668d6960efe7aed6ebe4bb2ea75bf7bf1637">[fb7a668d69]</a> Kevin Harwell -- res_stasis: trigger cleanup after update</li>
</ul><br><h4>Category: Resources/res_fax</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28660">ASTERISK-28660</a>: res_fax: wrap Asterisk initiated negotiation with config option<br/>Reported by: Kevin Harwell<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=754fca9297276085722b621a90d8c97d7056d304">[754fca9297]</a> Kevin Harwell -- res_fax: wrap v21 detected Asterisk initiated negotiation with config option</li>
</ul><br><h4>Category: Resources/res_pjsip_endpoint_identifier_ip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25429">ASTERISK-25429</a>: res_pjsip_endpoint_identifier_ip: Document support for hostnames<br/>Reported by: Joshua C. Colp<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=b8963987a6087a0210a47de62efe0755c9f13d0d">[b8963987a6]</a> Sean Bright -- res_pjsip_endpoint_identifier_ip: Document support for hostnames</li>
</ul><br><h4>Category: Resources/res_pjsip_notify</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-27775">ASTERISK-27775</a>: res_pjsip_notify: Multiple Event headers can be present instead of just one<br/>Reported by: AvayaXAsterisk<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=6648472a284b4b85e9f9585ba2739e897ed0e98d">[6648472a28]</a> Sean Bright -- res_pjsip_notify: Only allow a single Event header to be added to a NOTIFY</li>
</ul><br><h4>Category: Resources/res_pjsip_pubsub</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-27759">ASTERISK-27759</a>: res_pjsip_pubsub: Subscription persistence does not preserve XML <dialog-info> version number<br/>Reported by: Bryan Nelson<ul>
</ul><br><h4>Category: Resources/res_pjsip_pubsub</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28714">ASTERISK-28714</a>: REGRESSION: Feature subscription_persistence_recreate (ASTERISK-27759) Causes Segfaults<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=5def6d7e17b8163f4c9a4a8de7f85e4f96a26d4f">[5def6d7e17]</a> Joshua C. Colp -- res_pjsip_pubsub: Increment persistence data ref when recreating.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-27759">ASTERISK-27759</a>: res_pjsip_pubsub: Subscription persistence does not preserve XML <dialog-info> version number<br/>Reported by: Bryan Nelson<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9720b29d8e64c76bcea8b09e753a057daec746a7">[9720b29d8e]</a> Joshua C. Colp -- res_pjsip_pubsub: Add ability to persist generator state information.</li>
</ul><br><h4>Category: Resources/res_realtime</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-21794">ASTERISK-21794</a>: CLI command 'realtime update2' syntax failure when using according to usage help<br/>Reported by: Cedric BASSAGET<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=5e868fc11fac21618076ea5ee61fd5223b7a3999">[5e868fc11f]</a> Sean Bright -- res_realtime: Fix 'realtime update2' argument handling</li>
</ul><br><h4>Category: Resources/res_stasis</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28633">ASTERISK-28633</a>: stasis bridge topic leak<br/>Reported by: Joeran Vinzens<ul>
</ul><br><h4>Category: Resources/res_stasis</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28423">ASTERISK-28423</a>: ARI causes STASIS Deadlock<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=2cacc1e7f872267228cbfb8179d6d07f8ba57feb">[2cacc1e7f8]</a> Kevin Harwell -- stasis/app: don't lock an app before a call to send</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28633">ASTERISK-28633</a>: stasis bridge topic leak<br/>Reported by: Joeran Vinzens<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=e4e5e07e3dcc1183c032fadae67bf2750b33ee93">[e4e5e07e3d]</a> George Joseph -- stasis.c: Use correct topic name in stasis_topic_pool_delete_topic</li>
</ul><br><h4>Category: Resources/res_statsd</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-24484">ASTERISK-24484</a>: Update documentation for statsd module - usage requirements unclear<br/>Reported by: Dan Jenkins<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9382718f509b6804e852e68f40102a3695900935">[9382718f50]</a> Sean Bright -- res_statsd: Document that res_statsd does nothing on its own</li>
@@ -97,6 +103,8 @@
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=0d252feab60fcf6fca10502c6a33eacb45277957">[0d252feab6]</a> Sean Bright -- res_agi: Improve GET FULL VARIABLE documentation</li>
</ul><br><hr><a name="commits"><h2 align="center">Commits Not Associated with an Issue</h2></a><center><a href="#top">[Back to Top]</a></center><p>This is a list of all changes that went into this release that did not reference a JIRA issue.</p><table width="100%" border="1">
<tr><th>Revision</th><th>Author</th><th>Summary</th></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c057b834acaabbd52b3e90db3c6c005226d04f95">c057b834ac</a></td><td>Asterisk Development Team</td><td>Update for 13.31.0-rc2</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=58cd3f896c29dea0a8ecb61ecbadf0cfa53efce3">58cd3f896c</a></td><td>Asterisk Development Team</td><td>Update for 13.31.0-rc1</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=fe72f4e2167a770815249af85934d5defa23a3e2">fe72f4e216</a></td><td>Asterisk Development Team</td><td>Update CHANGES and UPGRADE.txt for 13.31.0</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=14de6b9ba78b74a5f7947b44cd8c5055b0e0c51f">14de6b9ba7</a></td><td>Sean Bright</td><td>func_odbc.conf.sample: Add example lookup</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=5c5bf49cb1322eb2ddd2dd5c6cb061e3b9bf64c1">5c5bf49cb1</a></td><td>Rodrigo Ramírez Norambuena</td><td>queue_log: Add alembic script for generate db table for queue_log</td></tr>
@@ -109,14 +117,13 @@
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=401056fd278c40ea15e5d9c8f7bc2b30a2000526">401056fd27</a></td><td>Sean Bright</td><td>db: Initialize condition primitive before use</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=e8ca2af82023606652bdfcf796f63522f8c0b567">e8ca2af820</a></td><td>Jaco Kroon</td><td>netsock2: backport ast_sockaddr_copy_sockaddr to asterisk 13.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=6e79028020c8024dfff5408cce6399adfc186767">6e79028020</a></td><td>Jaco Kroon</td><td>ACL: ast_apply_acl_nolog - identical to ast_apply_acl but without logging.</td></tr>
</table><hr><a name="diffstat"><h2 align="center">Diffstat Results</h2></a><center><a href="#top">[Back to Top]</a></center><p>This is a summary of the changes to the source code that went into this release that was generated using the diffstat utility.</p><pre>.lastclean | 1
.version | 1
ChangeLog |68174 ----------
asterisk-13.30.0-summary.html | 264
asterisk-13.30.0-summary.txt | 670
</table><hr><a name="diffstat"><h2 align="center">Diffstat Results</h2></a><center><a href="#top">[Back to Top]</a></center><p>This is a summary of the changes to the source code that went into this release that was generated using the diffstat utility.</p><pre>asterisk-13.30.0-summary.html | 264 --
asterisk-13.30.0-summary.txt | 670 -------
b/.version | 2
b/CHANGES | 55
b/ChangeLog | 791 ++++++++
b/apps/app_agent_pool.c | 4
b/apps/app_chanisavail.c | 133
b/apps/app_chanisavail.c | 133 -
b/apps/app_chanspy.c | 3
b/apps/app_confbridge.c | 2
b/apps/app_dial.c | 51
@@ -124,9 +131,11 @@ b/apps/app_page.c
b/apps/app_queue.c | 2
b/apps/app_record.c | 3
b/apps/app_softhangup.c | 2
b/apps/app_voicemail.c | 410
b/apps/app_voicemail.c | 410 ++--
b/apps/confbridge/conf_config_parser.c | 17
b/apps/confbridge/include/confbridge.h | 1
b/asterisk-13.31.0-rc2-summary.html | 15
b/asterisk-13.31.0-rc2-summary.txt | 96 +
b/bridges/bridge_softmix.c | 18
b/channels/chan_dahdi.c | 2
b/channels/chan_sip.c | 32
@@ -161,7 +170,7 @@ b/main/db.c
b/main/features.c | 28
b/main/http.c | 56
b/main/pbx.c | 12
b/main/say.c | 956
b/main/say.c | 956 +++++-----
b/main/stasis.c | 17
b/main/translate.c | 8
b/res/res_agi.c | 20
@@ -174,11 +183,6 @@ b/res/res_pjsip_nat.c
b/res/res_pjsip_notify.c | 22
b/res/res_pjsip_pubsub.c | 87
b/res/res_realtime.c | 56
b/res/res_statsd.c | 29
contrib/realtime/mysql/mysql_cdr.sql | 33
contrib/realtime/mysql/mysql_config.sql | 1189
contrib/realtime/mysql/mysql_voicemail.sql | 35
contrib/realtime/postgresql/postgresql_cdr.sql | 37
contrib/realtime/postgresql/postgresql_config.sql | 1287
contrib/realtime/postgresql/postgresql_voicemail.sql | 39
72 files changed, 1875 insertions(+), 72717 deletions(-)</pre><br></html>
b/res/res_stasis.c | 8
b/res/res_statsd.c | 31
68 files changed, 2768 insertions(+), 1942 deletions(-)</pre><br></html>

View File

@@ -1,8 +1,8 @@
Release Summary
asterisk-13.31.0-rc1
asterisk-13.31.0
Date: 2020-01-23
Date: 2020-02-04
<asteriskteam@digium.com>
@@ -51,24 +51,24 @@
Coders Testers Reporters
19 Sean Bright 3 Sean Bright
6 Richard Mudgett 3 Joshua C. Colp
5 George Joseph 3 cmaj
4 Joshua C. Colp 2 Pascal Cadotte Michaud
6 Richard Mudgett 3 Ross Beer
5 George Joseph 3 Joshua C. Colp
5 Joshua C. Colp 3 cmaj
4 Kevin Harwell 2 Pascal Cadotte Michaud
4 Jaco Kroon 1 Kevin Flyn
2 Kevin Harwell 1 Maciej Michno
3 Asterisk Development Team 1 Maciej Michno
2 Pascal Cadotte Michaud 1 AvayaXAsterisk
1 Stanislav 1 Jean Aunis - Prescom
1 Asterisk Development Team 1 George Joseph
1 Frederic LE FOLL 1 Jaco Kroon
1 Jean Aunis 1 Joshua C. Colp
1 Rodrigo RamÃrez Norambuena 1 Andrew Siplas
1 Boris P. Korzun 1 Frank Matano
1 Andrew Siplas 1 Cédric Bassaget
1 Corey Farrell 1 Kevin Harwell
1 snuffy 1 Dan Jenkins
1 Frederic LE FOLL 1 George Joseph
1 Jean Aunis 1 Jaco Kroon
1 Rodrigo RamÃrez Norambuena 1 candrews
1 Boris P. Korzun 1 Andrew Siplas
1 Andrew Siplas 1 Frank Matano
1 Corey Farrell 1 Cédric Bassaget
1 snuffy 1 Kevin Harwell
1 Dan Jenkins
1 Maciej Michno
1 Dirk Wendland
1 Ross Beer
1 Jim Van Meggelen
1 Stas Kobzar
1 Jean-Denis Girard
@@ -87,6 +87,7 @@
1 Bryan Nelson
1 Richard Kenner
1 Ross Beer
1 Francois Blackburn
1 Joeran Vinzens
1 Jonathan Harris
1 Jonathan Harris
@@ -95,7 +96,7 @@
1 Sean Bright
1 Jean-Denis Girard
1 Stanislav Abramenkov
1 candrews
1 Joshua C. Colp
1 Niksa Baldun
1 Mitch Claborn
1 Robin Leffmann
@@ -323,6 +324,12 @@
* [9249c30b87] George Joseph -- sig_pri: Fix deadlock caused by
sig_pri_queue_hangup
Category: Resources/res_ari
ASTERISK-28679: stasis application is destroyed after its creation
Reported by: Francois Blackburn
* [fb7a668d69] Kevin Harwell -- res_stasis: trigger cleanup after update
Category: Resources/res_fax
ASTERISK-28660: res_fax: wrap Asterisk initiated negotiation with config
@@ -349,6 +356,11 @@
Category: Resources/res_pjsip_pubsub
ASTERISK-28714: REGRESSION: Feature subscription_persistence_recreate
(ASTERISK-27759) Causes Segfaults
Reported by: Ross Beer
* [5def6d7e17] Joshua C. Colp -- res_pjsip_pubsub: Increment persistence
data ref when recreating.
ASTERISK-27759: res_pjsip_pubsub: Subscription persistence does not
preserve XML version number
Reported by: Bryan Nelson
@@ -365,6 +377,10 @@
Category: Resources/res_stasis
ASTERISK-28423: ARI causes STASIS Deadlock
Reported by: Ross Beer
* [2cacc1e7f8] Kevin Harwell -- stasis/app: don't lock an app before a
call to send
ASTERISK-28633: stasis bridge topic leak
Reported by: Joeran Vinzens
* [e4e5e07e3d] George Joseph -- stasis.c: Use correct topic name in
@@ -434,6 +450,14 @@
+------------------------------------------------------------------------+
| Revision | Author | Summary |
|------------+-----------------+-----------------------------------------|
| | Asterisk | |
| c057b834ac | Development | Update for 13.31.0-rc2 |
| | Team | |
|------------+-----------------+-----------------------------------------|
| | Asterisk | |
| 58cd3f896c | Development | Update for 13.31.0-rc1 |
| | Team | |
|------------+-----------------+-----------------------------------------|
| | Asterisk | Update CHANGES and UPGRADE.txt for |
| fe72f4e216 | Development | 13.31.0 |
| | Team | |
@@ -483,14 +507,13 @@
This is a summary of the changes to the source code that went into this
release that was generated using the diffstat utility.
.lastclean | 1
.version | 1
ChangeLog |68174 ----------
asterisk-13.30.0-summary.html | 264
asterisk-13.30.0-summary.txt | 670
asterisk-13.30.0-summary.html | 264 --
asterisk-13.30.0-summary.txt | 670 -------
b/.version | 2
b/CHANGES | 55
b/ChangeLog | 791 ++++++++
b/apps/app_agent_pool.c | 4
b/apps/app_chanisavail.c | 133
b/apps/app_chanisavail.c | 133 -
b/apps/app_chanspy.c | 3
b/apps/app_confbridge.c | 2
b/apps/app_dial.c | 51
@@ -498,9 +521,11 @@
b/apps/app_queue.c | 2
b/apps/app_record.c | 3
b/apps/app_softhangup.c | 2
b/apps/app_voicemail.c | 410
b/apps/app_voicemail.c | 410 ++--
b/apps/confbridge/conf_config_parser.c | 17
b/apps/confbridge/include/confbridge.h | 1
b/asterisk-13.31.0-rc2-summary.html | 15
b/asterisk-13.31.0-rc2-summary.txt | 96 +
b/bridges/bridge_softmix.c | 18
b/channels/chan_dahdi.c | 2
b/channels/chan_sip.c | 32
@@ -535,7 +560,7 @@
b/main/features.c | 28
b/main/http.c | 56
b/main/pbx.c | 12
b/main/say.c | 956
b/main/say.c | 956 +++++-----
b/main/stasis.c | 17
b/main/translate.c | 8
b/res/res_agi.c | 20
@@ -548,11 +573,6 @@
b/res/res_pjsip_notify.c | 22
b/res/res_pjsip_pubsub.c | 87
b/res/res_realtime.c | 56
b/res/res_statsd.c | 29
contrib/realtime/mysql/mysql_cdr.sql | 33
contrib/realtime/mysql/mysql_config.sql | 1189
contrib/realtime/mysql/mysql_voicemail.sql | 35
contrib/realtime/postgresql/postgresql_cdr.sql | 37
contrib/realtime/postgresql/postgresql_config.sql | 1287
contrib/realtime/postgresql/postgresql_voicemail.sql | 39
72 files changed, 1875 insertions(+), 72717 deletions(-)
b/res/res_stasis.c | 8
b/res/res_statsd.c | 31
68 files changed, 2768 insertions(+), 1942 deletions(-)

View File

@@ -1287,7 +1287,7 @@ static struct ast_sip_subscription *allocate_subscription(const struct ast_sip_s
*/
if (tree->persistence && tree->persistence->generator_data) {
sub->persistence_data = ast_json_object_get(tree->persistence->generator_data, resource);
sub->persistence_data = ast_json_ref(ast_json_object_get(tree->persistence->generator_data, resource));
}
sub->handler = handler;

View File

@@ -1688,12 +1688,11 @@ static int __stasis_app_register(const char *app_name, stasis_app_cb handler, vo
if (app) {
/*
* We need to unlock the apps_registry before calling app_update to
* prevent the possibility of a deadlock with the session. We'll still
* run the lazy cleanup first though.
* prevent the possibility of a deadlock with the session.
*/
cleanup();
ao2_unlock(apps_registry);
app_update(app, handler, data);
cleanup();
return 0;
}
@@ -1718,11 +1717,12 @@ static int __stasis_app_register(const char *app_name, stasis_app_cb handler, vo
}
ao2_link_flags(apps_registry, app, OBJ_NOLOCK);
ao2_unlock(apps_registry);
/* We lazily clean up the apps_registry, because it's good enough to
* prevent memory leaks, and we're lazy.
*/
cleanup();
ao2_unlock(apps_registry);
return 0;
}

View File

@@ -1169,8 +1169,23 @@ void app_update(struct stasis_app *app, stasis_app_cb handler, void *data)
"timestamp", ast_json_timeval(ast_tvnow(), NULL),
"application", app->name);
if (msg) {
/*
* The app must be unlocked before calling 'send' since a handler may
* subsequently attempt to grab the app lock after first obtaining a
* lock for another object, thus causing a deadlock.
*/
ao2_unlock(app);
app_send(app, msg);
ao2_lock(app);
ast_json_unref(msg);
if (!app->handler) {
/*
* If the handler disappeared then the app was deactivated. In that
* case don't replace. Re-activation will reset the handler later.
*/
ao2_unlock(app);
return;
}
}
} else {
ast_verb(1, "Activating Stasis app '%s'\n", app->name);