Compare commits

...

27 Commits

Author SHA1 Message Date
Joshua Colp
c30613f792 ChangeLog: Updated for 13.10.0 2016-07-21 09:54:02 -05:00
Joshua Colp
a39ab98eee Release summaries: Add summaries for 13.10.0 2016-07-21 09:53:55 -05:00
Joshua Colp
b0a2ca9133 Release summaries: Remove previous versions 2016-07-21 09:49:43 -05:00
Joshua Colp
734a7de6ff .version: Update for 13.10.0 2016-07-21 09:49:38 -05:00
Joshua Colp
cf223d2cad .lastclean: Update for 13.10.0 2016-07-21 09:49:38 -05:00
Joshua Colp
07af28131f realtime: Add database scripts for 13.10.0 2016-07-21 09:49:38 -05:00
Mark Michelson
af14215882 ChangeLog: Updated for 13.10.0-rc3 2016-07-14 12:52:01 -05:00
Mark Michelson
d456aa0519 Release summaries: Add summaries for 13.10.0-rc3 2016-07-14 12:51:48 -05:00
Mark Michelson
b3df380e56 Release summaries: Remove previous versions 2016-07-14 12:51:37 -05:00
Mark Michelson
ac5a6c8cad .version: Update for 13.10.0-rc3 2016-07-14 12:51:37 -05:00
Mark Michelson
d3c10e5de3 .lastclean: Update for 13.10.0-rc3 2016-07-14 12:51:37 -05:00
Mark Michelson
305a6dbc85 realtime: Add database scripts for 13.10.0-rc3 2016-07-14 12:51:37 -05:00
Richard Mudgett
25a42c176f res_pjsip: Fix statsd regression.
The ASTERISK-25904 change-id I8fad8aae9305481469c38d2146e1ba3a56d3108f
patch introduced several regressions when the newly created "Updated"
state goes out for each endpoint registration refresh.

1) It restarted any OPTIONS RTT ping cycle.

2) It would interfere with a currently active ping and throw off that
ping's resulting RTT calculation.

3) It cleared the RTT time each time the endpoint was refreshed.

4) The cleared RTT time was sent out as a statsd update each time.

5) It created two AMI events for each update.

* Revert the original patch and reimplement it.  Now the current contact
status state is re-sent instead of the state being momentarily toggled
every time the endpoint refreshes its registration.  The statsd events are
not created for the re-sent refresh because they are sent after every
OPTIONS ping.

ASTERISK-26160 #close
Reported by: Matt Jordan

Change-Id: Ie072be790fbb2a8f5c1c874266e4143fa31f66d1
2016-07-13 12:28:34 -05:00
Joshua Colp
21b5d56f39 func_odbc: Fix connection deadlock.
The func_odbc module was modified to ensure that the
previous behavior of using a single database connection
was maintained. This was done by getting a single database
connection and holding on to it. With the new multiple
connection support in res_odbc this will actually starve
every other thread from getting access to the database as
it also maintains the previous behavior of having only
a single database connection.

This change disables the func_odbc specific behavior if
the res_odbc module is running with only a single database
connection active. The connection is only kept for the
duration of the request.

ASTERISK-26177 #close

Change-Id: I9bdbd8a300fb3233877735ad3fd07bce38115b7f
2016-07-12 05:00:05 -05:00
Mark Michelson
9a8b4251b8 ChangeLog: Updated for 13.10.0-rc2 2016-07-05 11:07:22 -05:00
Mark Michelson
d579dce147 Release summaries: Add summaries for 13.10.0-rc2 2016-07-05 11:07:08 -05:00
Mark Michelson
486fbce3d5 Release summaries: Remove previous versions 2016-07-05 11:06:56 -05:00
Mark Michelson
fb6bd30291 .version: Update for 13.10.0-rc2 2016-07-05 11:06:56 -05:00
Mark Michelson
f6bd754584 .lastclean: Update for 13.10.0-rc2 2016-07-05 11:06:56 -05:00
Mark Michelson
40cd52de7e realtime: Add database scripts for 13.10.0-rc2 2016-07-05 11:06:56 -05:00
George Joseph
78dcdd3010 configure: Fix HAVE_PJSIP_EVSUB_GRP_LOCK not set with external pjproject
There was a typo in configure.ac preventing HAVE_PJSIP_EVSUB_GRP_LOCK
from getting set when using an external pjproject.

ASTERISK-26099 #close
Reported-by: Ross Beer

Change-Id: I709af70428e125fb5ccd44b171d25dd29141f0ae
2016-06-30 08:30:53 -05:00
George Joseph
1529e62f42 codecs: Fix ABI incompatibility created by adding format_name to ast_codec
Adding format_name even to the end of ast_codec caused issued with
binary codec modules because the pointer would be garbage in asterisk
when they registered.  So, the ast_codec structure was reverted and an
internal_ast_codec structure was created just for use in codec.c.  A new
internal-only API was also added (__ast_codec_register_with_format) so
that codec_builtin could register codecs with the format_name in a
separate parameter rather than in the ast_codec structure.

ASTERISK-26144 #close
Reported-by: Alexei Gradinari

Change-Id: I6df1b08f6a6ae089db23adfe1ebc8636330265ba
2016-06-29 09:01:22 -05:00
Mark Michelson
3c4b64351b ChangeLog: Updated for 13.10.0-rc1 2016-06-23 08:47:35 -05:00
Mark Michelson
62349ac1b4 Release summaries: Add summaries for 13.10.0-rc1 2016-06-23 08:42:48 -05:00
Mark Michelson
8da6ba4328 .version: Update for 13.10.0-rc1 2016-06-23 08:38:42 -05:00
Mark Michelson
170b85e3ae .lastclean: Update for 13.10.0-rc1 2016-06-23 08:38:42 -05:00
Mark Michelson
4af7049b8f realtime: Add database scripts for 13.10.0-rc1 2016-06-23 08:38:42 -05:00
29 changed files with 48283 additions and 62 deletions

1
.lastclean Normal file
View File

@@ -0,0 +1 @@
40

1
.version Normal file
View File

@@ -0,0 +1 @@
13.10.0

View File

@@ -75,8 +75,6 @@ res_pjsip
"contact_deny" - List of Contact header addresses to deny
"contact_permit" - List of Contact header addresses to permit
* Added new status Updated to AMI event ContactStatus on update registration
* Added "reg_server" to contacts.
If the Asterisk system name is set in asterisk.conf, it will be stored
into the "reg_server" field in the ps_contacts table to facilitate

41319
ChangeLog Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,488 @@
<!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.10.0</title><h1 align="center"><a name="top">Release Summary</a></h1><h3 align="center">asterisk-13.10.0</h3><h3 align="center">Date: 2016-07-21</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>
<li><a href="#open_issues">Open Issues</a></li>
<li><a href="#commits">Other Changes</a></li>
<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.9.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%">33 Richard Mudgett <rmudgett@digium.com><br/>23 Mark Michelson <mmichelson@digium.com><br/>20 George Joseph <gjoseph@digium.com><br/>17 Alexei Gradinari <alex2grad@gmail.com><br/>13 Joshua Colp <jcolp@digium.com><br/>8 Alexander Traud <pabstraud@compuserve.com><br/>7 Kevin Harwell <kharwell@digium.com><br/>6 Tzafrir Cohen <tzafrir.cohen@xorcom.com><br/>5 Matt Jordan <mjordan@digium.com><br/>2 Corey Farrell <git@cfware.com><br/>2 gtjoseph <george.joseph@fairview5.com><br/>1 Rusty Newton <rnewton@digium.com><br/>1 Jaco Kroon <jaco@uls.co.za><br/>1 Scott Griepentrog <sgriepentrog@digium.com><br/>1 snuffy <snuffy22@gmail.com><br/>1 Sean Bright <sean.bright@gmail.com><br/>1 Vasil Kolev <vasil.kolev@securax.org><br/>1 Chris Trobridge <chris.trobridge@ultra-aep.com><br/>1 Diederik de Groot <dkgroot@talon.nl><br/>1 Kirill Katsnelson <kkm@smartaction.com><br/>1 Timo Teräs <timo.teras@iki.fi><br/>1 darkskiez <digium@darkskiez.co.uk><br/>1 Jesper <jpl@ipnordic.dk><br/>1 Sebastian Damm <damm@sipgate.de><br/>1 Andrew Nagy <andrew.nagy@the159.com><br/>1 Torrey Searle <tsearle@gmail.com><br/></td><td width="33%">1 Rusty Newton <rnewton@digium.com><br/>1 Etienne Lessard <elessard@proformatique.com><br/>1 Andrew Nagy <andrew.nagy@the159.com><br/></td><td width="33%">18 Alexei Gradinari <alex2grad@gmail.com><br/>9 Richard Mudgett <rmudgett@digium.com><br/>8 Ross Beer <ross.beer@voicehost.co.uk><br/>8 George Joseph <gjoseph@digium.com><br/>7 Alexander Traud <pabstraud@compuserve.com><br/>6 Joshua Colp <jcolp@digium.com><br/>2 nik600 <nik600@gmail.com><br/>2 Scott Griepentrog <sgriepentrog@digium.com><br/>2 Niklas Larsson <niklas@tese.se><br/>2 Matt Jordan <mjordan@digium.com><br/>2 Javier Acosta <javier.acosta@beeonline.es><br/>2 Etienne Lessard <elessard@proformatique.com><br/>2 Tzafrir Cohen <tzafrir.cohen@xorcom.com><br/>2 Mark Michelson <mmichelson@digium.com><br/>1 John Campbell <campbellj@gordonstoun.org.uk><br/>1 Jaco Kroon <jaco@uls.co.za><br/>1 Javier Riveros <goseeped@gmail.com><br/>1 Edwin Vandamme <edwin.vandamme@telenet.be><br/>1 Private Name <sales@minixel.com><br/>1 Vasil Kolev <vasil.kolev@securax.org><br/>1 Ross Beer.<br/>1 Jesper <jpl@ipnordic.dk><br/>1 Patrick Laimbock <patrick@laimbock.com><br/>1 Corey Farrell <git@cfware.com><br/>1 Leandro Dardini <ldardini@gmail.com><br/>1 Jonathan R. Rose <jonathan.rose@motorolasolutions.com><br/>1 Kevin Scott Adams <ksatllc@att.net><br/>1 Diederik de Groot <dkgroot@talon.nl><br/>1 Badalian Vyacheslav <slavon.net@gmail.com><br/>1 Ilya Trikoz, Federico Santulli<br/>1 Kirill Katsnelson <kkm@smartaction.com><br/>1 Jonathan Rose <jrose@digium.com><br/>1 Chris Trobridge <chris.trobridge@ultra-aep.com><br/>1 Sebastian Damm <damm@sipgate.de><br/>1 Per Jensen <per.jensen@bolderthinking.com><br/>1 B. Davis <vw.jetta.dude@gmail.com><br/>1 Ilya Trikoz <jleed@me.com><br/>1 Dmitriy Serov <serov.d.p@gmail.com><br/>1 Greg Siemon <greg@siemon.id.au><br/>1 Torrey Searle <tsearle@gmail.com><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>Improvement</h3><h4>Category: Channels/chan_pjsip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25835">ASTERISK-25835</a>: Authentication using 'Username' field from Digest<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=38bed4515dc9fbb3bdf3a4fdb957bad3d3bd9cea">[38bed4515d]</a> gtjoseph -- res_pjsip: Add ability to identify by Authorization username</li>
</ul><br><h4>Category: Core/Sorcery</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26088">ASTERISK-26088</a>: Investigate heavy memory utilization by res_pjsip_pubsub<br/>Reported by: Richard Mudgett<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9c35f34301c15d1370623d6f8a59a25a723b59b6">[9c35f34301]</a> Richard Mudgett -- res_pjsip_registrar.c: Eliminate rx REGISTER request race condition.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=557333ea4c031d10bf52ceade79c32cbff801c0c">[557333ea4c]</a> Richard Mudgett -- stasis: Add setting subscription congestion levels.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=110d7724675a496dd1c338e296e0c26d96156c3e">[110d772467]</a> Richard Mudgett -- sorcery: Add setting object type congestion levels.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=610eee2a36d2d2426947784a230c31dca6b18c62">[610eee2a36]</a> Richard Mudgett -- taskprocessors: Implement high/low water mark alerts.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=26e34922469102ceb3ae93025b6b13c15fa19e8f">[26e3492246]</a> Richard Mudgett -- res_pjsip_session: Use distributor serializer for incoming calls.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ceb1007ed7b201059aafd4b8dcde8c5dd62e803d">[ceb1007ed7]</a> Richard Mudgett -- res_pjsip_pubsub.c: Recreate subscriptions using distributor serializer.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=27bafc3a8b7981051fa07ef01b9a6afe4ef37f8c">[27bafc3a8b]</a> Richard Mudgett -- res_pjsip_pubsub.c: Use distributor serializer for incoming subscriptions.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=16b08444dae47eded183f63300908b49cf6b2c1a">[16b08444da]</a> Richard Mudgett -- pjsip_distributor.c: Consistently pick a serializer for messages.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=993b769524b5e39aa5749a64e0389f01427235ee">[993b769524]</a> Richard Mudgett -- pjsip_distributor.c: Ignore messages until fully booted.</li>
</ul><br><h4>Category: Core/Stasis</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26088">ASTERISK-26088</a>: Investigate heavy memory utilization by res_pjsip_pubsub<br/>Reported by: Richard Mudgett<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9c35f34301c15d1370623d6f8a59a25a723b59b6">[9c35f34301]</a> Richard Mudgett -- res_pjsip_registrar.c: Eliminate rx REGISTER request race condition.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=557333ea4c031d10bf52ceade79c32cbff801c0c">[557333ea4c]</a> Richard Mudgett -- stasis: Add setting subscription congestion levels.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=110d7724675a496dd1c338e296e0c26d96156c3e">[110d772467]</a> Richard Mudgett -- sorcery: Add setting object type congestion levels.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=610eee2a36d2d2426947784a230c31dca6b18c62">[610eee2a36]</a> Richard Mudgett -- taskprocessors: Implement high/low water mark alerts.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=26e34922469102ceb3ae93025b6b13c15fa19e8f">[26e3492246]</a> Richard Mudgett -- res_pjsip_session: Use distributor serializer for incoming calls.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ceb1007ed7b201059aafd4b8dcde8c5dd62e803d">[ceb1007ed7]</a> Richard Mudgett -- res_pjsip_pubsub.c: Recreate subscriptions using distributor serializer.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=27bafc3a8b7981051fa07ef01b9a6afe4ef37f8c">[27bafc3a8b]</a> Richard Mudgett -- res_pjsip_pubsub.c: Use distributor serializer for incoming subscriptions.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=16b08444dae47eded183f63300908b49cf6b2c1a">[16b08444da]</a> Richard Mudgett -- pjsip_distributor.c: Consistently pick a serializer for messages.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=993b769524b5e39aa5749a64e0389f01427235ee">[993b769524]</a> Richard Mudgett -- pjsip_distributor.c: Ignore messages until fully booted.</li>
</ul><br><h4>Category: Resources/res_pjsip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26088">ASTERISK-26088</a>: Investigate heavy memory utilization by res_pjsip_pubsub<br/>Reported by: Richard Mudgett<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9c35f34301c15d1370623d6f8a59a25a723b59b6">[9c35f34301]</a> Richard Mudgett -- res_pjsip_registrar.c: Eliminate rx REGISTER request race condition.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=557333ea4c031d10bf52ceade79c32cbff801c0c">[557333ea4c]</a> Richard Mudgett -- stasis: Add setting subscription congestion levels.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=110d7724675a496dd1c338e296e0c26d96156c3e">[110d772467]</a> Richard Mudgett -- sorcery: Add setting object type congestion levels.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=610eee2a36d2d2426947784a230c31dca6b18c62">[610eee2a36]</a> Richard Mudgett -- taskprocessors: Implement high/low water mark alerts.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=26e34922469102ceb3ae93025b6b13c15fa19e8f">[26e3492246]</a> Richard Mudgett -- res_pjsip_session: Use distributor serializer for incoming calls.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ceb1007ed7b201059aafd4b8dcde8c5dd62e803d">[ceb1007ed7]</a> Richard Mudgett -- res_pjsip_pubsub.c: Recreate subscriptions using distributor serializer.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=27bafc3a8b7981051fa07ef01b9a6afe4ef37f8c">[27bafc3a8b]</a> Richard Mudgett -- res_pjsip_pubsub.c: Use distributor serializer for incoming subscriptions.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=16b08444dae47eded183f63300908b49cf6b2c1a">[16b08444da]</a> Richard Mudgett -- pjsip_distributor.c: Consistently pick a serializer for messages.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=993b769524b5e39aa5749a64e0389f01427235ee">[993b769524]</a> Richard Mudgett -- pjsip_distributor.c: Ignore messages until fully booted.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26011">ASTERISK-26011</a>: [patch]PJSIP: add "via_addr", "via_port", "call_id" to contacts<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=230686f4ec82a774e2a41aaa5e86909fd589f9b4">[230686f4ec]</a> Alexei Gradinari -- res_pjsip: add "via_addr", "via_port", "call_id" to contact</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25994">ASTERISK-25994</a>: [patch]res_pjsip: module load priority<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=72eb7c8301b046fb10dfb9afd9f145f72889b921">[72eb7c8301]</a> Alexei Gradinari -- res_pjsip: module load priority</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25931">ASTERISK-25931</a>: PJSIP: add "reg_server" to contacts.<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=fe38d21c2a2bbb3a3e9c157c39cdb46e1925737e">[fe38d21c2a]</a> Alexei Gradinari -- pjsip: Added "reg_server" to contacts (fixed alembic)</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=3cb8934de0db468d600beddd3464b44d33759cdc">[3cb8934de0]</a> Alexei Gradinari -- pjsip: Added "reg_server" to contacts.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25930">ASTERISK-25930</a>: PJSIP: disable multi domain to improve realtime performace<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=df3639700a7d7e6a9a2dd67fde74e14b4bb46a37">[df3639700a]</a> Alexei Gradinari -- res_pjsip: disable multi domain to improve realtime performace</li>
</ul><br><h4>Category: Resources/res_pjsip_pubsub</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26088">ASTERISK-26088</a>: Investigate heavy memory utilization by res_pjsip_pubsub<br/>Reported by: Richard Mudgett<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9c35f34301c15d1370623d6f8a59a25a723b59b6">[9c35f34301]</a> Richard Mudgett -- res_pjsip_registrar.c: Eliminate rx REGISTER request race condition.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=557333ea4c031d10bf52ceade79c32cbff801c0c">[557333ea4c]</a> Richard Mudgett -- stasis: Add setting subscription congestion levels.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=110d7724675a496dd1c338e296e0c26d96156c3e">[110d772467]</a> Richard Mudgett -- sorcery: Add setting object type congestion levels.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=610eee2a36d2d2426947784a230c31dca6b18c62">[610eee2a36]</a> Richard Mudgett -- taskprocessors: Implement high/low water mark alerts.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=26e34922469102ceb3ae93025b6b13c15fa19e8f">[26e3492246]</a> Richard Mudgett -- res_pjsip_session: Use distributor serializer for incoming calls.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ceb1007ed7b201059aafd4b8dcde8c5dd62e803d">[ceb1007ed7]</a> Richard Mudgett -- res_pjsip_pubsub.c: Recreate subscriptions using distributor serializer.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=27bafc3a8b7981051fa07ef01b9a6afe4ef37f8c">[27bafc3a8b]</a> Richard Mudgett -- res_pjsip_pubsub.c: Use distributor serializer for incoming subscriptions.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=16b08444dae47eded183f63300908b49cf6b2c1a">[16b08444da]</a> Richard Mudgett -- pjsip_distributor.c: Consistently pick a serializer for messages.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=993b769524b5e39aa5749a64e0389f01427235ee">[993b769524]</a> Richard Mudgett -- pjsip_distributor.c: Ignore messages until fully booted.</li>
</ul><br><h4>Category: Resources/res_pjsip_registrar</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26088">ASTERISK-26088</a>: Investigate heavy memory utilization by res_pjsip_pubsub<br/>Reported by: Richard Mudgett<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9c35f34301c15d1370623d6f8a59a25a723b59b6">[9c35f34301]</a> Richard Mudgett -- res_pjsip_registrar.c: Eliminate rx REGISTER request race condition.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=557333ea4c031d10bf52ceade79c32cbff801c0c">[557333ea4c]</a> Richard Mudgett -- stasis: Add setting subscription congestion levels.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=110d7724675a496dd1c338e296e0c26d96156c3e">[110d772467]</a> Richard Mudgett -- sorcery: Add setting object type congestion levels.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=610eee2a36d2d2426947784a230c31dca6b18c62">[610eee2a36]</a> Richard Mudgett -- taskprocessors: Implement high/low water mark alerts.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=26e34922469102ceb3ae93025b6b13c15fa19e8f">[26e3492246]</a> Richard Mudgett -- res_pjsip_session: Use distributor serializer for incoming calls.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ceb1007ed7b201059aafd4b8dcde8c5dd62e803d">[ceb1007ed7]</a> Richard Mudgett -- res_pjsip_pubsub.c: Recreate subscriptions using distributor serializer.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=27bafc3a8b7981051fa07ef01b9a6afe4ef37f8c">[27bafc3a8b]</a> Richard Mudgett -- res_pjsip_pubsub.c: Use distributor serializer for incoming subscriptions.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=16b08444dae47eded183f63300908b49cf6b2c1a">[16b08444da]</a> Richard Mudgett -- pjsip_distributor.c: Consistently pick a serializer for messages.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=993b769524b5e39aa5749a64e0389f01427235ee">[993b769524]</a> Richard Mudgett -- pjsip_distributor.c: Ignore messages until fully booted.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26011">ASTERISK-26011</a>: [patch]PJSIP: add "via_addr", "via_port", "call_id" to contacts<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=230686f4ec82a774e2a41aaa5e86909fd589f9b4">[230686f4ec]</a> Alexei Gradinari -- res_pjsip: add "via_addr", "via_port", "call_id" to contact</li>
</ul><br><h3>Bug</h3><h4>Category: Applications/app_followme</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26008">ASTERISK-26008</a>: app_followme does not delete recorded name prompt<br/>Reported by: Tzafrir Cohen<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=eec539a46e63bcaa222405d6e45e1d674061dd1f">[eec539a46e]</a> Tzafrir Cohen -- followme: delete the right recorded name file</li>
</ul><br><h4>Category: Applications/app_queue</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-16115">ASTERISK-16115</a>: [patch] problem with ringinuse=no, queue members receive sometimes two calls<br/>Reported by: nik600<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=6959f5484b3077c6cced3477dda6fe04cfb86cb9">[6959f5484b]</a> Joshua Colp -- app_queue: Fix crash when unloading module.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c345e530f4401c06d1f87a938cff3a12de84e048">[c345e530f4]</a> Kevin Harwell -- app_queue: queue members can receive multiple calls</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25954">ASTERISK-25954</a>: Manager QueueSummary and QueueStatus Actions are case sensitive to QueueName<br/>Reported by: Javier Acosta<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c0688a6398f27296ff849848a2e416e036d794e3">[c0688a6398]</a> Javier Acosta -- Fix case sensitive actions in AMI QueueSummary and QueueStatus</li>
</ul><br><h4>Category: Applications/app_voicemail</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26045">ASTERISK-26045</a>: [patch]app_voicemail: fix bugs, imap mm_status log change to debug<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c1512f4108c7b455494dfa7779bf7fe671e0e4e6">[c1512f4108]</a> Richard Mudgett -- app_voicemail.c: Fix IMAP compile error.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=859bbec09b24541b7a789adc5b815bf4406c2eb6">[859bbec09b]</a> Alexei Gradinari -- app_voicemail: fix bugs, imap mm_status log change to debug</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-24463">ASTERISK-24463</a>: Voicemail email address corrupt or not sent when message is in the process of being recorded during reload<br/>Reported by: John Campbell<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=8028fc758597f9d9233c97c4be0e229d8af7e3ab">[8028fc7585]</a> Andrew Nagy -- app_voicemail: always copy dynamic struct to avoid race condition</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25917">ASTERISK-25917</a>: [patch]app_voicemail: passwordlocation=spooldir only works if you manually add secret.conf yourself<br/>Reported by: Jonathan R. Rose<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=b38f1146e54f295c89727de4fde150ed731d5b64">[b38f1146e5]</a> gtjoseph -- config: Fix ast_config_text_file_save2 writability check for missing files</li>
</ul><br><h4>Category: Applications/app_voicemail/IMAP</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26045">ASTERISK-26045</a>: [patch]app_voicemail: fix bugs, imap mm_status log change to debug<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c1512f4108c7b455494dfa7779bf7fe671e0e4e6">[c1512f4108]</a> Richard Mudgett -- app_voicemail.c: Fix IMAP compile error.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=859bbec09b24541b7a789adc5b815bf4406c2eb6">[859bbec09b]</a> Alexei Gradinari -- app_voicemail: fix bugs, imap mm_status log change to debug</li>
</ul><br><h4>Category: CDR/cdr_custom</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26054">ASTERISK-26054</a>: Asterisk crashes (core dump)<br/>Reported by: B. Davis<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=321a9b128fdc8dd59ea720fd50691a3a32c0d934">[321a9b128f]</a> Joshua Colp -- res_odbc: Implement a connection pool.</li>
</ul><br><h4>Category: CEL/General</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25262">ASTERISK-25262</a>: Memory leak when a caller channel does multiple dials and CEL is enabled<br/>Reported by: Etienne Lessard<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=caf6cccc5c75c310f0eedbd5b01b5d6751681e0d">[caf6cccc5c]</a> Joshua Colp -- cel: Ensure only one dial status per channel exists.</li>
</ul><br><h4>Category: Channels/chan_pjsip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26063">ASTERISK-26063</a>: ${PJSIP_HEADER(read,Call-ID)} does not work - documentation needs clarification for when read/write is possible<br/>Reported by: Private Name<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=37d039fdf31b89a315ca2d76ea23a3ce1a8151ec">[37d039fdf3]</a> Rusty Newton -- res_pjsip: Add clarifying documentation to PJSIP_HEADER help text</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-24986">ASTERISK-24986</a>: keepalive INFO packages ignored by asterisk<br/>Reported by: Ilya Trikoz<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=39fedfa4235da9f2d5de63bafae0521d7591ac8e">[39fedfa423]</a> snuffy -- res_pjsip_empty_info: Respond to empty SIP INFO packets</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26005">ASTERISK-26005</a>: res_pjsip: Multiple SIP messages are combined into 1 TCP packet<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=b6f9392a122a905ebf1925c8b00ababa8ad04125">[b6f9392a12]</a> gtjoseph -- res_pjsip: Set TCP_NODELAY on TCP transports</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25990">ASTERISK-25990</a>: PJSIP TLS registration should respect client_uri scheme when generating Contact URI<br/>Reported by: Sebastian Damm<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=a94a12bbf73c7e643a77e4aa0597e4e49eb5b7ab">[a94a12bbf7]</a> Sebastian Damm -- res_pjsip_outbound_registration: generate correct Contact URI for TLS</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25826">ASTERISK-25826</a>: PJSIP / Sorcery slow load from realtime<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9c2032240e4974fc4b6212f411c86c7d673006e3">[9c2032240e]</a> Alexei Gradinari -- res_pjsip: improve realtime performance</li>
</ul><br><h4>Category: Channels/chan_sip/General</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26069">ASTERISK-26069</a>: Asterisk truncates To: header, dropping the closing '>'<br/>Reported by: Vasil Kolev<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=89cc86fc383664f91cfd0d4463c1d9de3131f794">[89cc86fc38]</a> Vasil Kolev -- chan_sip: bigger buffers for headers, better failure mode</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25950">ASTERISK-25950</a>: [patch]SIP channel does not send PeerStatus events for autocreated peers<br/>Reported by: Kirill Katsnelson<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=29bab0d1a4d6bbcdbf27fcff49b2e2262f65460e">[29bab0d1a4]</a> Kirill Katsnelson -- chan_sip: Make autocreated peers send PeerStatus events</li>
</ul><br><h4>Category: Channels/chan_sip/Interoperability</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26030">ASTERISK-26030</a>: call cut because of double Session-Expires header in re-invite after proxy authentication is required<br/>Reported by: George Joseph<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=77e8ec162b4625b144fae18203d2ac67a4f7a4eb">[77e8ec162b]</a> gtjoseph -- chan_sip: Prevent extra Session-Expires headers from being added</li>
</ul><br><h4>Category: Channels/chan_sip/Registration</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25950">ASTERISK-25950</a>: [patch]SIP channel does not send PeerStatus events for autocreated peers<br/>Reported by: Kirill Katsnelson<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=29bab0d1a4d6bbcdbf27fcff49b2e2262f65460e">[29bab0d1a4]</a> Kirill Katsnelson -- chan_sip: Make autocreated peers send PeerStatus events</li>
</ul><br><h4>Category: Channels/chan_skinny</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26029">ASTERISK-26029</a>: parking: ast_parking_park_call should return parking_space instead of parking_exten<br/>Reported by: Diederik de Groot<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9453d1187ab1258166ae2fd8185ffb7b6e2c4575">[9453d1187a]</a> Richard Mudgett -- parking.h: Update ast_parking_park_call() doxygen to reality.</li>
</ul><br><h4>Category: Channels/chan_unistim</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26138">ASTERISK-26138</a>: chan_unistim: Under FreeBSD, chan_unistim generates a compile error<br/>Reported by: George Joseph<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=bc69b033167c0fe6f2cfb71e39aaa2c73d60fa32">[bc69b03316]</a> gtjoseph -- chan_unistim: Fix memcpy in get_to_address</li>
</ul><br><h4>Category: Codecs/General</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26144">ASTERISK-26144</a>: Crash on loading codecs g729/g723<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=1529e62f421fadddca75b1d2547743da39af1db8">[1529e62f42]</a> gtjoseph -- codecs: Fix ABI incompatibility created by adding format_name to ast_codec</li>
</ul><br><h4>Category: Contrib/General</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26128">ASTERISK-26128</a>: Alembic scripts are failing<br/>Reported by: Mark Michelson<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=1b79e2deff58dbf3f98791da1715aa4a696b028c">[1b79e2deff]</a> Mark Michelson -- Fix Alembic upgrades.</li>
</ul><br><h4>Category: Core/BuildSystem</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26046">ASTERISK-26046</a>: [patch] Avoid obsolete warnings on autoconf.<br/>Reported by: Alexander Traud<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=e30602587cea1f2398c82874f964b85f27de9b8d">[e30602587c]</a> Alexander Traud -- BuildSystem: Avoid obsolete warning with AC_FUNC_SETVBUF_REVERSED on autoconf.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=cbfa9f771e0756a4c8f76b68d65a936af2a55ace">[cbfa9f771e]</a> Alexander Traud -- BuildSystem: Avoid obsolete warning with HELP_STRING on autoconf.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26091">ASTERISK-26091</a>: [patch] ar cru creates warning, instead use ar cr<br/>Reported by: Alexander Traud<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=d38b8e6399094805ad551f149ba6916ba80d7a6b">[d38b8e6399]</a> Alexander Traud -- BuildSystem: Avoid 'ar cru' and use 'ar cr' instead.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26038">ASTERISK-26038</a>: 'make install' doesn't seem to install OS/X init files<br/>Reported by: Tzafrir Cohen<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=a32616d60c380733da01c04008b84bc82086698d">[a32616d60c]</a> Tzafrir Cohen -- Makefile: remove OSARCH check for init install</li>
</ul><br><h4>Category: Core/Configuration</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25956">ASTERISK-25956</a>: Compilation error in conditionally compiled code in config_options.c<br/>Reported by: Chris Trobridge<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=dd00c71aae12ddfb8af9ca5fab41b1badd50ca5a">[dd00c71aae]</a> Chris Trobridge -- config_options.c: Expand #ifdef to contain whole if statement.</li>
</ul><br><h4>Category: Core/FileFormatInterface</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25998">ASTERISK-25998</a>: file: Crash when using nativeformats<br/>Reported by: Joshua Colp<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=fa11f4c920226da3677a4e7ff95649994036462f">[fa11f4c920]</a> Joshua Colp -- file: Ensure nativeformats remains valid for lifetime of use.</li>
</ul><br><h4>Category: Core/General</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26119">ASTERISK-26119</a>: [patch] fix: memory leaks, resource leaks, out of bounds and bugs<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=5134a8043a81b5b3d0b70ae3fbf7564f2526469a">[5134a8043a]</a> Alexei Gradinari -- fix: memory leaks, resource leaks, out of bounds and bugs</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26097">ASTERISK-26097</a>: [patch] CLI: show maximum file descriptors<br/>Reported by: Alexander Traud<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ca38a3cbb48a27160d764459123053f930a2bec6">[ca38a3cbb4]</a> Alexander Traud -- core: Not the configured but granted number of possible file descriptors.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=0d84421f9315a974de821dd5ce99ce2c8728d3a2">[0d84421f93]</a> Alexander Traud -- astfd: Not maximum size of a single file but maximum file descriptors.</li>
</ul><br><h4>Category: Core/HTTP</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26126">ASTERISK-26126</a>: [patch] leverage 'bindaddr' for TLS in http.conf<br/>Reported by: Alexander Traud<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=76516bd79d7d9c8cf51b2359c2741db29d5bc54f">[76516bd79d]</a> Alexander Traud -- http: leverage 'bindaddr' for TLS in http.conf</li>
</ul><br><h4>Category: Core/Logging</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26078">ASTERISK-26078</a>: core: Memory leak in logging<br/>Reported by: Etienne Lessard<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=e2132dd3588b10538f7c67a92aa26b9b4a5bf1b5">[e2132dd358]</a> Richard Mudgett -- logging,cdr,cel: Fix stringfield memory leak.</li>
</ul><br><h4>Category: Core/Sorcery</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26014">ASTERISK-26014</a>: res_sorcery_astdb: Make tolerant of unknown fields<br/>Reported by: Joshua Colp<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ddcf983e392c6eeeb925109961697992f341e5d5">[ddcf983e39]</a> Joshua Colp -- res_sorcery_astdb: Filter fields to only the registered ones.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25826">ASTERISK-25826</a>: PJSIP / Sorcery slow load from realtime<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9c2032240e4974fc4b6212f411c86c7d673006e3">[9c2032240e]</a> Alexei Gradinari -- res_pjsip: improve realtime performance</li>
</ul><br><h4>Category: Core/UDPTL</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26034">ASTERISK-26034</a>: T.38 passthrough problem behind firewall due to early nosignal packet<br/>Reported by: George Joseph<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=935e0496c4b10604c100005cb3ebff594380486b">[935e0496c4]</a> gtjoseph -- udptl: Don't eat sequence numbers until OK is received</li>
</ul><br><h4>Category: Features/Parking</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26029">ASTERISK-26029</a>: parking: ast_parking_park_call should return parking_space instead of parking_exten<br/>Reported by: Diederik de Groot<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9453d1187ab1258166ae2fd8185ffb7b6e2c4575">[9453d1187a]</a> Richard Mudgett -- parking.h: Update ast_parking_park_call() doxygen to reality.</li>
</ul><br><h4>Category: Functions/func_curl</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25669">ASTERISK-25669</a>: [patch]CURL incorrect trim for non ASCII characters<br/>Reported by: Jesper<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9ddaab789eb1ac5afc440ab751ad1b2288ce35e0">[9ddaab789e]</a> Jesper -- func_curl: Don't trim response text on non-ASCII characters</li>
</ul><br><h4>Category: Functions/func_odbc</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26177">ASTERISK-26177</a>: func_odbc: Database handle is kept when it should be released<br/>Reported by: Leandro Dardini<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=21b5d56f398a4a3918cb77cae3bb29a61dcd926f">[21b5d56f39]</a> Joshua Colp -- func_odbc: Fix connection deadlock.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25938">ASTERISK-25938</a>: res_odbc: MySQL/MariaDB statement LAST_INSERT_ID() always returns zero.<br/>Reported by: Edwin Vandamme<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=cd89501d48b516ef03957bd39cdd8180b4684a56">[cd89501d48]</a> Alexei Gradinari -- func_odbc: single database connection should be optional</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25963">ASTERISK-25963</a>: func_odbc requires reconnect checks for stale connections<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=677d5b515151b51ed8be5e760ce0c7b99dae2761">[677d5b5151]</a> Mark Michelson -- func_odbc: Check connection status before executing queries.</li>
</ul><br><h4>Category: Functions/func_strings</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25669">ASTERISK-25669</a>: [patch]CURL incorrect trim for non ASCII characters<br/>Reported by: Jesper<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9ddaab789eb1ac5afc440ab751ad1b2288ce35e0">[9ddaab789e]</a> Jesper -- func_curl: Don't trim response text on non-ASCII characters</li>
</ul><br><h4>Category: Resources/res_ari</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25941">ASTERISK-25941</a>: chan_pjsip: Crash on an immediate SIP final response<br/>Reported by: Javier Riveros <ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c0b190dd9ab71904b0e0e8492edfdbd6e538e9e1">[c0b190dd9a]</a> Mark Michelson -- res_pjsip: Match dialogs on responses better.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25964">ASTERISK-25964</a>: Outbound registrations created via ARI/push configuration do not clean up outbound registrations currently in flight<br/>Reported by: Matt Jordan<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=3f6ef63099d58d0aa74895156e8038eb44180ea8">[3f6ef63099]</a> gtjoseph -- res_pjsip_outbound_registration: Clean up state when registration is deleted</li>
</ul><br><h4>Category: Resources/res_ari_channels</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26070">ASTERISK-26070</a>: ari/channels: Creating a local channel without an originator adds all audio formats to it's capabilities<br/>Reported by: George Joseph<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c27c2320574902117b1c2e66f210640eb606a736">[c27c232057]</a> gtjoseph -- ari/resource_channels: Add 'formats' to channel create/originate</li>
</ul><br><h4>Category: Resources/res_fax</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26141">ASTERISK-26141</a>: res_fax: fax_v21_session_new leaks reference to v21_details<br/>Reported by: Corey Farrell<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=3d904659ec3aa23565aa54690961048be7ec7f4c">[3d904659ec]</a> Corey Farrell -- res_fax: Fix reference leak in fax_v21_session_new.</li>
</ul><br><h4>Category: Resources/res_hep</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26096">ASTERISK-26096</a>: res_hep: Crash when configuration file is missing<br/>Reported by: Niklas Larsson<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=eabb398d71772ee47c81220faba2781d4f4fbf2a">[eabb398d71]</a> Matt Jordan -- res_hep_{pjsip|rtcp}: Decline module loads if res_hep had not loaded</li>
</ul><br><h4>Category: Resources/res_hep_rtcp</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25352">ASTERISK-25352</a>: res_hep_rtcp correlation_id is different then res_hep<br/>Reported by: Kevin Scott Adams<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=89ae4466eacc6ae2bef56b2e10000046be7ae2c0">[89ae4466ea]</a> Matt Jordan -- res_hep: Provide an option to pick the UUID type</li>
</ul><br><h4>Category: Resources/res_odbc</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26074">ASTERISK-26074</a>: res_odbc: Deadlock within UnixODBC<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=321a9b128fdc8dd59ea720fd50691a3a32c0d934">[321a9b128f]</a> Joshua Colp -- res_odbc: Implement a connection pool.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25938">ASTERISK-25938</a>: res_odbc: MySQL/MariaDB statement LAST_INSERT_ID() always returns zero.<br/>Reported by: Edwin Vandamme<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=cd89501d48b516ef03957bd39cdd8180b4684a56">[cd89501d48]</a> Alexei Gradinari -- func_odbc: single database connection should be optional</li>
</ul><br><h4>Category: Resources/res_phoneprov</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26119">ASTERISK-26119</a>: [patch] fix: memory leaks, resource leaks, out of bounds and bugs<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=5134a8043a81b5b3d0b70ae3fbf7564f2526469a">[5134a8043a]</a> Alexei Gradinari -- fix: memory leaks, resource leaks, out of bounds and bugs</li>
</ul><br><h4>Category: Resources/res_pjsip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26160">ASTERISK-26160</a>: pjsip: Updated->Reachable during qualify<br/>Reported by: Matt Jordan<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=25a42c176fa613228b5953ebe7718ad915da4f2d">[25a42c176f]</a> Richard Mudgett -- res_pjsip: Fix statsd regression.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25941">ASTERISK-25941</a>: chan_pjsip: Crash on an immediate SIP final response<br/>Reported by: Javier Riveros <ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c0b190dd9ab71904b0e0e8492edfdbd6e538e9e1">[c0b190dd9a]</a> Mark Michelson -- res_pjsip: Match dialogs on responses better.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26007">ASTERISK-26007</a>: res_pjsip: Endpoints deleting early after upgrade from 13.8.2 to 13.9<br/>Reported by: Greg Siemon<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=02d30e171e439b52b0914ea87e427e175f371ad7">[02d30e171e]</a> Mark Michelson -- Use doubles instead of floats for conversions when comparing strings.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26004">ASTERISK-26004</a>: res_pjsip: The transport/method parameter is ignored<br/>Reported by: George Joseph<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=fb6227a37289e51931574ba33dd836e10ea5e5c7">[fb6227a372]</a> gtjoseph -- config_transport: Tell pjproject to allow all SSL/TLS protocols</li>
</ul><br><h4>Category: Resources/res_pjsip_mwi</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26065">ASTERISK-26065</a>: chan_pjsip: MWI NOTIFY contents not ordered properly<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=fe305ccf01003e9484098ee5e8319e847a1cecc7">[fe305ccf01]</a> gtjoseph -- res_pjsip_mwi_body_generator: Re-order the body items</li>
</ul><br><h4>Category: Resources/res_pjsip_mwi_body_generator</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26065">ASTERISK-26065</a>: chan_pjsip: MWI NOTIFY contents not ordered properly<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=fe305ccf01003e9484098ee5e8319e847a1cecc7">[fe305ccf01]</a> gtjoseph -- res_pjsip_mwi_body_generator: Re-order the body items</li>
</ul><br><h4>Category: Resources/res_pjsip_outbound_registration</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25964">ASTERISK-25964</a>: Outbound registrations created via ARI/push configuration do not clean up outbound registrations currently in flight<br/>Reported by: Matt Jordan<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=3f6ef63099d58d0aa74895156e8038eb44180ea8">[3f6ef63099]</a> gtjoseph -- res_pjsip_outbound_registration: Clean up state when registration is deleted</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25990">ASTERISK-25990</a>: PJSIP TLS registration should respect client_uri scheme when generating Contact URI<br/>Reported by: Sebastian Damm<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=a94a12bbf73c7e643a77e4aa0597e4e49eb5b7ab">[a94a12bbf7]</a> Sebastian Damm -- res_pjsip_outbound_registration: generate correct Contact URI for TLS</li>
</ul><br><h4>Category: Resources/res_pjsip_pubsub</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26099">ASTERISK-26099</a>: res_pjsip_pubsub: Crash when sending request due to server timeout<br/>Reported by: Ross Beer<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=78dcdd3010566ea136e1572e9c52be8b18f406a2">[78dcdd3010]</a> gtjoseph -- configure: Fix HAVE_PJSIP_EVSUB_GRP_LOCK not set with external pjproject</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=6a568bcc665714376d077b562ee819d864b2e520">[6a568bcc66]</a> gtjoseph -- res_pjsip_pubsub: Address SEGV when attempting to terminate a subscription</li>
</ul><br><h4>Category: Resources/res_pjsip_sdp_rtp</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26119">ASTERISK-26119</a>: [patch] fix: memory leaks, resource leaks, out of bounds and bugs<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=5134a8043a81b5b3d0b70ae3fbf7564f2526469a">[5134a8043a]</a> Alexei Gradinari -- fix: memory leaks, resource leaks, out of bounds and bugs</li>
</ul><br><h4>Category: Resources/res_pjsip_session</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26127">ASTERISK-26127</a>: res_pjsip_session: Crash due to race condition between res_pjsip_session unload and timer<br/>Reported by: Joshua Colp<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ba0d9e7f7af620e27ce3b09062c28a7f8fcc4557">[ba0d9e7f7a]</a> Joshua Colp -- res_pjsip_session: Handle race condition at shutdown with timer.</li>
</ul><br><h4>Category: Resources/res_rtp_asterisk</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26140">ASTERISK-26140</a>: res_rtp_asterisk: gcc 6 caught a self-comparison<br/>Reported by: George Joseph<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=48db4c215924f2881f6eef79ae120f6a3166ad63">[48db4c2159]</a> gtjoseph -- res_rtp_asterisk: Fix a self-comparison identified by gcc 6</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26130">ASTERISK-26130</a>: [patch] WebRTC: Should use latest DTLS version.<br/>Reported by: Alexander Traud<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ef97911a1c0f380d17df3b92c9b5805dd3dbd6b5">[ef97911a1c]</a> Alexander Traud -- res_rtp_asterisk: Use latest DTLS version available by underlying platform.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26092">ASTERISK-26092</a>: [Segfault] in res_rtp_asterisk.c:4268 after Remotely bridged channels<br/>Reported by: Niklas Larsson<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=715ef071a1d27d550ddc3f83d9ff569381b8fddc">[715ef071a1]</a> Mark Michelson -- chan_pjsip: Lock channel when checking for RTP changes.</li>
</ul><br><h4>Category: Resources/res_srtp</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-24436">ASTERISK-24436</a>: Missing header in res/res_srtp.c when compiling against libsrtp-1.5.0<br/>Reported by: Patrick Laimbock<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c6ee4a0f44f7f5d8e3c77f63f3c56694584e28e9">[c6ee4a0f44]</a> Alexander Traud -- res_srtp: Instead of libSRTP use OpenSSL as random source.</li>
</ul><br><h4>Category: Resources/res_stasis_playback</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26083">ASTERISK-26083</a>: ARI: Announcer channels staying around after playback to a bridge is finished<br/>Reported by: Per Jensen<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=cfebe3b94a8e80db054a899e76c19607f103a48c">[cfebe3b94a]</a> Mark Michelson -- ARI: Ensure announcer channels are destroyed.</li>
</ul><br><h4>Category: Tests/General</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26139">ASTERISK-26139</a>: test_res_pjsip_scheduler: Compile failure if pjproject isn't installed in a system location<br/>Reported by: George Joseph<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=77da168e58df6f030ceec4f80b27438cef0ba079">[77da168e58]</a> gtjoseph -- test_res_pjsip_scheduler: Add 'depends' on pjproject in MODULEINFO</li>
</ul><br><h4>Category: Tests/testsuite</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25961">ASTERISK-25961</a>: tests/channels/SIP/sip_tls_call: Sporadic crash when running test<br/>Reported by: Joshua Colp<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=949bf6b282e09cb7104a5cc55a3be3d33873db0f">[949bf6b282]</a> Joshua Colp -- chan_sip: Give more time for TCP/TLS threads to stop.</li>
</ul><br><h4>Category: pjproject/pjsip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26089">ASTERISK-26089</a>: Invalid security events during boot using PJSIP Realtime<br/>Reported by: Scott Griepentrog<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=993b769524b5e39aa5749a64e0389f01427235ee">[993b769524]</a> Richard Mudgett -- pjsip_distributor.c: Ignore messages until fully booted.</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25993">ASTERISK-25993</a>: pjproject: Allow bundling to not require everything it does<br/>Reported by: Joshua Colp<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=2a7130b8b09358744a7b75f17285b5d4ea01d650">[2a7130b8b0]</a> gtjoseph -- pjproject_bundled: Check for python-dev and TEST_FRAMEWORK</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25968">ASTERISK-25968</a>: pjproject_bundled: Configure and make need to be re-tested<br/>Reported by: George Joseph<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=f39089f17cc3df6f795914d664c5ddbe41027498">[f39089f17c]</a> gtjoseph -- pjproject_bundled: Various fixes discovered during testing of OSes</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25970">ASTERISK-25970</a>: Segfault in pjsip_url_compare<br/>Reported by: Dmitriy Serov<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=719ece5659e166df7006d2fd3afdb83235022052">[719ece5659]</a> gtjoseph -- pjproject_bundled: Disable PJSIP_UNESCAPE_IN_PLACE</li>
</ul><br><h3>New Feature</h3><h4>Category: Core/ManagerInterface/NewFeature</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25904">ASTERISK-25904</a>: PJSIP: add contact.updated event<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=25a42c176fa613228b5953ebe7718ad915da4f2d">[25a42c176f]</a> Richard Mudgett -- res_pjsip: Fix statsd regression.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=e6eb17efd95ab42b4437666587ec292117565656">[e6eb17efd9]</a> Alexei Gradinari -- stasis_endpoints: Add new Status and Headers to ContactStatus</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=7a14e669f073d6845ce4c13e8537b87fa4f3b042">[7a14e669f0]</a> Alexei Gradinari -- res_pjsip/AMI: add contact.updated event</li>
</ul><br><h4>Category: Resources/res_pjsip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25904">ASTERISK-25904</a>: PJSIP: add contact.updated event<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=25a42c176fa613228b5953ebe7718ad915da4f2d">[25a42c176f]</a> Richard Mudgett -- res_pjsip: Fix statsd regression.</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=e6eb17efd95ab42b4437666587ec292117565656">[e6eb17efd9]</a> Alexei Gradinari -- stasis_endpoints: Add new Status and Headers to ContactStatus</li>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=7a14e669f073d6845ce4c13e8537b87fa4f3b042">[7a14e669f0]</a> Alexei Gradinari -- res_pjsip/AMI: add contact.updated event</li>
</ul><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25900">ASTERISK-25900</a>: PJSIP Endpoint IP Access Controls<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=524a30297468dc2bb7627f0dd589bd9e7368c744">[524a302974]</a> Alexei Gradinari -- res_pjsip: Endpoint IP Access Controls</li>
</ul><br><hr><a name="open_issues"><h2 align="center">Open Issues</h2></a><center><a href="#top">[Back to Top]</a></center><p>This is a list of all open issues from the issue tracker that were referenced by changes that went into this release.</p><h3>New Feature</h3><h4>Category: Applications/app_confbridge</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25989">ASTERISK-25989</a>: apps/confbridge: add regcontext feature<br/>Reported by: Jaco Kroon<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=2db17a793ca85ebef7ba36671272fad48e047e66">[2db17a793c]</a> Jaco Kroon -- app_confbridge: Add a regcontext option for confbridge bridge profiles.</li>
</ul><br><h4>Category: Core/ManagerInterface/NewFeature</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25903">ASTERISK-25903</a>: PJSIP AMI Event ContactStatus: add Useragent and RegExpire<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=e6eb17efd95ab42b4437666587ec292117565656">[e6eb17efd9]</a> Alexei Gradinari -- stasis_endpoints: Add new Status and Headers to ContactStatus</li>
</ul><br><h4>Category: Resources/res_pjsip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25903">ASTERISK-25903</a>: PJSIP AMI Event ContactStatus: add Useragent and RegExpire<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=e6eb17efd95ab42b4437666587ec292117565656">[e6eb17efd9]</a> Alexei Gradinari -- stasis_endpoints: Add new Status and Headers to ContactStatus</li>
</ul><br><h3>Bug</h3><h4>Category: Core/Logging</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25538">ASTERISK-25538</a>: [patch]Missing PID in syslog logger messages<br/>Reported by: Javier Acosta<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=36d66a23e0afce16c89382ea9cbf5b60afd331f2">[36d66a23e0]</a> Alexei Gradinari -- logger: Add PID to syslog messages.</li>
</ul><br><h4>Category: Resources/res_fax</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25982">ASTERISK-25982</a>: [patch]res_fax/t38_gateway: Peer V.21 session is created on wrong channel<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=2d17fe06c55eedb2c0429af5f13d0589cf1866d0">[2d17fe06c5]</a> Alexei Gradinari -- res_fax/t38_gateway: Peer V.21 session is created on wrong channel</li>
</ul><br><h4>Category: Resources/res_rtp_asterisk</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26129">ASTERISK-26129</a>: res_rtp_asterisk: Memory leak of CERT bio in DTLS implementation<br/>Reported by: Torrey Searle<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=dfcd466bf03104c570c501af1571654370e50de7">[dfcd466bf0]</a> Torrey Searle -- res_rtp_asterisk: fix memory leak in dtls</li>
</ul><br><h3>Improvement</h3><h4>Category: Applications/app_dial</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26059">ASTERISK-26059</a>: [patch]core: New channel variable FORWARDERNAME<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=2de58c6d01a3ef1d6b31167833731eefcf844f0a">[2de58c6d01]</a> Alexei Gradinari -- core/dial: New channel variable FORWARDERNAME</li>
</ul><br><h4>Category: Core/Bridging</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26059">ASTERISK-26059</a>: [patch]core: New channel variable FORWARDERNAME<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=2de58c6d01a3ef1d6b31167833731eefcf844f0a">[2de58c6d01]</a> Alexei Gradinari -- core/dial: New channel variable FORWARDERNAME</li>
</ul><br><h4>Category: Core/Channels</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26059">ASTERISK-26059</a>: [patch]core: New channel variable FORWARDERNAME<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=2de58c6d01a3ef1d6b31167833731eefcf844f0a">[2de58c6d01]</a> Alexei Gradinari -- core/dial: New channel variable FORWARDERNAME</li>
</ul><br><h4>Category: Functions/func_odbc</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26010">ASTERISK-26010</a>: [patch]func_odbc: single database connection should be optional<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=cd89501d48b516ef03957bd39cdd8180b4684a56">[cd89501d48]</a> Alexei Gradinari -- func_odbc: single database connection should be optional</li>
</ul><br><h4>Category: Resources/res_fax</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-25980">ASTERISK-25980</a>: [patch]res_fax: set FAXMODE variable to let dialplan know what fax transport was used<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=06d4ac0355d99ce7a6caacf2e52a22078233e9c4">[06d4ac0355]</a> Alexei Gradinari -- res_fax: add FAXMODE variable</li>
</ul><br><h4>Category: Resources/res_pjsip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-26055">ASTERISK-26055</a>: [patch]res_pjsip: chatty verbose messages<br/>Reported by: Alexei Gradinari<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=04c12561a7c7a10f416081520a72a22248a72cd4">[04c12561a7]</a> Alexei Gradinari -- res_pjsip: chatty verbose messages</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=b0a2ca913300ad1888a95ff2669ff6ef4fb3f2f7">b0a2ca9133</a></td><td>Joshua Colp</td><td>Release summaries: Remove previous versions</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=734a7de6ff76ea7d0b6a00960f99615d0a3ae245">734a7de6ff</a></td><td>Joshua Colp</td><td>.version: Update for 13.10.0</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=cf223d2cadc45a19d9523a4a41d13d5f214d123c">cf223d2cad</a></td><td>Joshua Colp</td><td>.lastclean: Update for 13.10.0</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=07af28131f0d3cee5716e740a81057b3dac3ff2e">07af28131f</a></td><td>Joshua Colp</td><td>realtime: Add database scripts for 13.10.0</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=af1421588249c5e0e0340c518fdd66b96a61cdff">af14215882</a></td><td>Mark Michelson</td><td>ChangeLog: Updated for 13.10.0-rc3</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=d456aa0519773859963aa720c858b183d20bcd43">d456aa0519</a></td><td>Mark Michelson</td><td>Release summaries: Add summaries for 13.10.0-rc3</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=b3df380e56307fe16410b17e71dd0be65a5642f1">b3df380e56</a></td><td>Mark Michelson</td><td>Release summaries: Remove previous versions</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ac5a6c8cadb1b8d69f78ec21b772d5a75f832c32">ac5a6c8cad</a></td><td>Mark Michelson</td><td>.version: Update for 13.10.0-rc3</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=d3c10e5de31622c71e14f24e280fb2d369325281">d3c10e5de3</a></td><td>Mark Michelson</td><td>.lastclean: Update for 13.10.0-rc3</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=305a6dbc85ba86ff8122637d15ba29f854b6d4d4">305a6dbc85</a></td><td>Mark Michelson</td><td>realtime: Add database scripts for 13.10.0-rc3</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9a8b4251b8b8833085b68853b472c501fb885c4a">9a8b4251b8</a></td><td>Mark Michelson</td><td>ChangeLog: Updated for 13.10.0-rc2</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=d579dce1473ded011786ed658f854ea60d020de1">d579dce147</a></td><td>Mark Michelson</td><td>Release summaries: Add summaries for 13.10.0-rc2</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=486fbce3d50282943ac828a9c9c905333f665043">486fbce3d5</a></td><td>Mark Michelson</td><td>Release summaries: Remove previous versions</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=fb6bd302918e9bffc5a8f31d7039992dd9d9de3d">fb6bd30291</a></td><td>Mark Michelson</td><td>.version: Update for 13.10.0-rc2</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=f6bd754584af685aba54f128884550e5036f75b4">f6bd754584</a></td><td>Mark Michelson</td><td>.lastclean: Update for 13.10.0-rc2</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=40cd52de7edeafc78ba651e792e714c83cf39c6d">40cd52de7e</a></td><td>Mark Michelson</td><td>realtime: Add database scripts for 13.10.0-rc2</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=3c4b64351bc44b26fdfbb9101501ad8e485c9e11">3c4b64351b</a></td><td>Mark Michelson</td><td>ChangeLog: Updated for 13.10.0-rc1</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=62349ac1b475d9d18ee61246645a5f9fe493a28f">62349ac1b4</a></td><td>Mark Michelson</td><td>Release summaries: Add summaries for 13.10.0-rc1</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=8da6ba4328a32a5aa7a8e6955c76089eb54be4eb">8da6ba4328</a></td><td>Mark Michelson</td><td>.version: Update for 13.10.0-rc1</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=170b85e3aeb8dde1f9daada437ccf5643184788c">170b85e3ae</a></td><td>Mark Michelson</td><td>.lastclean: Update for 13.10.0-rc1</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=4af7049b8f4b303acf1b94c487f9ec172511babf">4af7049b8f</a></td><td>Mark Michelson</td><td>realtime: Add database scripts for 13.10.0-rc1</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c982da0641f7cc43b9014fb47423ac7066ba4bdb">c982da0641</a></td><td>Richard Mudgett</td><td>res_pjproject.c: Replace inlined DEBUG_ATLEAST() with macro.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=d53a36ff335e8a2176712f759266e4870bfe4f10">d53a36ff33</a></td><td>Richard Mudgett</td><td>res_pjsip_transport_management.c: Misc cleanups to survive shutdown.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=03953d80346b3561305606f8509ab3ea2fa962a1">03953d8034</a></td><td>Richard Mudgett</td><td>res_pjsip.c: Add check that timer actually got scheduled.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=32ab98116e7e43674cb9f639876cdbbb5cf86f4b">32ab98116e</a></td><td>Richard Mudgett</td><td>res_rtp_multicast.c: Fix warning message typo.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=0429c5336845e08c3f3a1279da34d958eff14391">0429c53368</a></td><td>Richard Mudgett</td><td>res_pjsip_session.c: Reorganize ast_sip_session_terminate().</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=5823f279f32244bef2f6389dbe5022c2f73e4685">5823f279f3</a></td><td>Richard Mudgett</td><td>chan_rtp: Backport changes from master.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=dde58df3182b7f99714e446a684d8ddb81f759bb">dde58df318</a></td><td>Richard Mudgett</td><td>chan_rtp.c: Copy file from chan_multicast_rtp.c</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=a99ddc6a0d2b9075c2cc436a6770c8ac889f5286">a99ddc6a0d</a></td><td>gtjoseph</td><td>build: Fix ast_sockaddr initialization to be more portable</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9c5a0b814b9fa6f7348cb7fbfdd0bc1204e72b77">9c5a0b814b</a></td><td>Timo Teräs</td><td>Fix #include poll.h and sys/cdefs.h</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=cda33854091eabf243dee228b92da3fcaa5bb5e3">cda3385409</a></td><td>Joshua Colp</td><td>alembic: Fix migration.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=b2ce0e354b780d373b2243fa23df02efec540b7f">b2ce0e354b</a></td><td>Richard Mudgett</td><td>pjsip_distributor.c: Use correct rdata info access method (Part 2).</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=e8abfdcdc5ce4d32d1fe281e75b13fd652f9e5f7">e8abfdcdc5</a></td><td>gtjoseph</td><td>pjproject_bundled: Move to pjproject 2.5</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=03d5b3ce5c8403b790fcae53c938625ae5dd10f8">03d5b3ce5c</a></td><td>Richard Mudgett</td><td>pjsip_distributor.c: Use correct rdata info access method.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=361a16f3160506b1d5f32c9bdd10fd31cfc4e81f">361a16f316</a></td><td>Matt Jordan</td><td>configs/samples/pjsip.conf.sample: Fix typo</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=f91a7dc99350f8be610e303e8cbd0d263eda4d7d">f91a7dc993</a></td><td>Matt Jordan</td><td>res/res_hep_pjsip: Fix reported local IP address when bound to 'any'</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9de5cd209e5918d27d03afaaddb41125d7a76701">9de5cd209e</a></td><td>Sean Bright</td><td>res_ari: Correct Location headers returned by some ARI resources</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=a73d79c22f69d0c7a4a5cdbe7e92e3c8cd9dd0e7">a73d79c22f</a></td><td>Tzafrir Cohen</td><td>basic-cfg: asterisk.conf: remove [directories]</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=1c56de9453c67b54d023feed738ed7ec1c17a245">1c56de9453</a></td><td>Tzafrir Cohen</td><td>basic-cfg: asterisk.conf: defaults of options</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=d7af591c59ecda3856ae28a8cd442828be75ded8">d7af591c59</a></td><td>Tzafrir Cohen</td><td>basic-cfg: asterisk.conf: debug level 5 spams</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9b7db18fc1c6c6b740ad0240f0684e4ca002035c">9b7db18fc1</a></td><td>Tzafrir Cohen</td><td>basic-cfg: asterisk.conf: don't set languages</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=e2df15bae971794960fe61efee498b7bf00fe869">e2df15bae9</a></td><td>gtjoseph</td><td>pjsip_distributor: Add missing newline to NOTICE</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=37214b0bdf52cf2f742349b22fae73742aeda091">37214b0bdf</a></td><td>Matt Jordan</td><td>configure: Fix errors with AST_UNDEFINED_SANITIZER/AST_LEAK_SANITIZER</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=49b25a095656dd6d41a75e4fcbbe9651946b1605">49b25a0956</a></td><td>Kevin Harwell</td><td>res_pjsip_outbound_publish: state potential dropped on reloads/realtime fetches</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=1b5c91b7be1020754ca724e488c9fb733dbce99d">1b5c91b7be</a></td><td>Kevin Harwell</td><td>res_pjsip_outbound_publish: Potential crash due to off nominal path</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=10de553c9d6922ebf3959b4fd7b50a2fad629eb1">10de553c9d</a></td><td>Kevin Harwell</td><td>res_pjsip_outbound_publishing: After unloading the library won't load again</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=1a833b97398c0f2479d3fd828b0a8152ff72cfb3">1a833b9739</a></td><td>Kevin Harwell</td><td>res_pjsip_outbound_publish: Ref leak in off nominal callback paths</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=4752ef02e02dfcb1b1ec38d154eb9bc42736df3c">4752ef02e0</a></td><td>Kevin Harwell</td><td>res_pjsip_outbound_publish: Won't unload if condition wait times out</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=a2f19d82a86590c58737f252e28b816f957686ff">a2f19d82a8</a></td><td>Diederik de Groot</td><td>configs/basic-pbx/asterisk.conf: contains incorrect path separator</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=7992923c709ee155fa4f792ca063ac24d7fdf817">7992923c70</a></td><td>Richard Mudgett</td><td>res_pjsip: Start body generator users after suppliers.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=5dc0e082b26896e8a6ae07927aa46c2cec75a7ed">5dc0e082b2</a></td><td>Richard Mudgett</td><td>res_pjsip_pubsub.c: Add useful information to some messages.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=f9e416f0538ee404906390e4b1c1a97cedf23075">f9e416f053</a></td><td>Richard Mudgett</td><td>res_pjsip_pubsub.c: Fix body generator registration race.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=b1b201904697e394e405ec8864e4c60383d1ffda">b1b2019046</a></td><td>Richard Mudgett</td><td>res_pjsip_pubsub.h: Fix doxygen association.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=b7f07fdff548b0dcc5aa2259d7c37d3c37555abd">b7f07fdff5</a></td><td>Richard Mudgett</td><td>res_pjsip_outbound_publish.c: Remove redundant flag check.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ebf0724a8355e060764f1f6a4b92abb071eb9af6">ebf0724a83</a></td><td>Richard Mudgett</td><td>test_message.c: Wait longer in case dialplan also processes the test message.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ba63aa7c9e01919d53588e0e35066db554613d53">ba63aa7c9e</a></td><td>Richard Mudgett</td><td>Manager: Short circuit AMI message processing.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=d5ee6acf28f67670b5afa1be0161280b33a5a9e9">d5ee6acf28</a></td><td>Richard Mudgett</td><td>manager.c: Eliminate most RAII_VAR usage.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=7303e3dc96a4b2d5f36bb03c7cf8880aaa9e0753">7303e3dc96</a></td><td>Richard Mudgett</td><td>manager_channels.c: Fix allocation failure crash.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=1e93f3d7232a2a087a190a18e4a3f490a41d42d1">1e93f3d723</a></td><td>Richard Mudgett</td><td>Bridge system: Fix memory leaks and double frees on impart failure.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=5e388d41888a1e1c4061003a4a090dbe797bca7a">5e388d4188</a></td><td>Richard Mudgett</td><td>bridge_softmix.c: Fix crash if channel fails to join mixing tech.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=9740277713fe308a3f6014a07180a52c3de08b58">9740277713</a></td><td>gtjoseph</td><td>res_pjsip: Add serialized scheduler (res_pjsip/pjsip_scheduler.c)</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>asterisk-13.9.0-summary.html | 333 -
asterisk-13.9.0-summary.txt | 821 ---
b/.version | 2
b/CHANGES | 137
b/ChangeLog | 2235 +++++++++-
b/Makefile | 102
b/addons/ooh323c/src/Makefile.in | 2
b/apps/app_confbridge.c | 15
b/apps/app_dial.c | 3
b/apps/app_followme.c | 17
b/apps/app_queue.c | 159
b/apps/app_voicemail.c | 328 +
b/apps/confbridge/conf_chan_announce.c | 1
b/apps/confbridge/conf_config_parser.c | 19
b/apps/confbridge/include/confbridge.h | 1
b/autoconf/ast_ext_lib.m4 | 2
b/autoconf/ast_prog_ld.m4 | 2
b/bridges/bridge_softmix.c | 13
b/cdr/cdr_custom.c | 2
b/cdr/cdr_syslog.c | 2
b/cel/cel_custom.c | 2
b/channels/chan_multicast_rtp.c | 7
b/channels/chan_pjsip.c | 9
b/channels/chan_rtp.c | 415 +
b/channels/chan_sip.c | 100
b/channels/chan_unistim.c | 2
b/configs/basic-pbx/asterisk.conf | 25
b/configs/samples/confbridge.conf.sample | 2
b/configs/samples/func_odbc.conf.sample | 14
b/configs/samples/hep.conf.sample | 4
b/configs/samples/pjsip.conf.sample | 45
b/configs/samples/res_odbc.conf.sample | 5
b/configure | 242 +
b/configure.ac | 14
b/contrib/ast-db-manage/config/versions/65eb22eb195_add_unidentified_request_options_to_.py | 27
b/contrib/ast-db-manage/config/versions/6d8c104e6184_res_pjsip_add_contact_via_addr_and_.py | 25
b/contrib/ast-db-manage/config/versions/81b01a191a46_pjsip_add_contact_reg_server.py | 23
b/contrib/ast-db-manage/config/versions/837aa67461fb_add_pjsip_endpoint_ip_access_control_.py | 32
b/contrib/ast-db-manage/config/versions/837aa67461fb_ps_contacts_add_authenticate_qualify.py | 32
b/contrib/ast-db-manage/config/versions/8d478ab86e29_pjsip_add_disable_multi_domain.py | 31
b/contrib/realtime/mssql/mssql_config.sql | 112
b/contrib/realtime/mysql/mysql_config.sql | 58
b/contrib/realtime/oracle/oracle_config.sql | 112
b/contrib/realtime/postgresql/postgresql_config.sql | 58
b/contrib/scripts/install_prereq | 36
b/funcs/func_odbc.c | 231 -
b/include/asterisk/astobj2.h | 134
b/include/asterisk/autoconfig.h.in | 6
b/include/asterisk/bridge_technology.h | 3
b/include/asterisk/compat.h | 2
b/include/asterisk/config_options.h | 22
b/include/asterisk/features.h | 9
b/include/asterisk/multicast_rtp.h | 58
b/include/asterisk/parking.h | 11
b/include/asterisk/poll-compat.h | 2
b/include/asterisk/res_hep.h | 22
b/include/asterisk/res_odbc.h | 5
b/include/asterisk/res_pjsip.h | 296 +
b/include/asterisk/res_pjsip_pubsub.h | 4
b/include/asterisk/res_pjsip_session.h | 3
b/include/asterisk/sorcery.h | 14
b/include/asterisk/stasis.h | 38
b/include/asterisk/stasis_app.h | 9
b/include/asterisk/stasis_message_router.h | 14
b/include/asterisk/strings.h | 2
b/include/asterisk/taskprocessor.h | 23
b/main/Makefile | 12
b/main/ast_expr2.c | 10
b/main/ast_expr2.y | 10
b/main/asterisk.c | 16
b/main/asterisk.exports.in | 2
b/main/astfd.c | 2
b/main/bridge.c | 11
b/main/bridge_channel.c | 3
b/main/cdr.c | 3
b/main/cel.c | 111
b/main/channel.c | 3
b/main/codec.c | 70
b/main/codec_builtin.c | 11
b/main/config.c | 34
b/main/config_options.c | 7
b/main/core_unreal.c | 1
b/main/dial.c | 14
b/main/editline/Makefile.in | 2
b/main/features.c | 1
b/main/file.c | 24
b/main/http.c | 2
b/main/logger.c | 2
b/main/manager.c | 205
b/main/manager_channels.c | 24
b/main/say.c | 4
b/main/sorcery.c | 21
b/main/stasis.c | 12
b/main/stasis_endpoints.c | 13
b/main/stasis_message.c | 35
b/main/stasis_message_router.c | 12
b/main/strings.c | 6
b/main/taskprocessor.c | 172
b/main/threadpool.c | 4
b/main/udptl.c | 12
b/makeopts.in | 3
b/res/ael/pval.c | 70
b/res/ari/resource_bridges.c | 11
b/res/ari/resource_channels.c | 49
b/res/ari/resource_channels.h | 4
b/res/res_ari.c | 3
b/res/res_ari_channels.c | 14
b/res/res_fax.c | 51
b/res/res_hep.c | 49
b/res/res_hep.exports.in | 2
b/res/res_hep_pjsip.c | 68
b/res/res_hep_rtcp.c | 37
b/res/res_odbc.c | 248 -
b/res/res_phoneprov.c | 5
b/res/res_pjproject.c | 7
b/res/res_pjsip.c | 199
b/res/res_pjsip/config_global.c | 77
b/res/res_pjsip/config_transport.c | 10
b/res/res_pjsip/include/res_pjsip_private.h | 19
b/res/res_pjsip/location.c | 29
b/res/res_pjsip/pjsip_configuration.c | 190
b/res/res_pjsip/pjsip_distributor.c | 676 ++-
b/res/res_pjsip/pjsip_options.c | 161
b/res/res_pjsip/pjsip_scheduler.c | 495 ++
b/res/res_pjsip_authenticator_digest.c | 28
b/res/res_pjsip_dtmf_info.c | 7
b/res/res_pjsip_empty_info.c | 89
b/res/res_pjsip_endpoint_identifier_anonymous.c | 38
b/res/res_pjsip_endpoint_identifier_ip.c | 2
b/res/res_pjsip_endpoint_identifier_user.c | 145
b/res/res_pjsip_exten_state.c | 8
b/res/res_pjsip_header_funcs.c | 9
b/res/res_pjsip_messaging.c | 18
b/res/res_pjsip_mwi.c | 10
b/res/res_pjsip_mwi_body_generator.c | 4
b/res/res_pjsip_one_touch_record_info.c | 9
b/res/res_pjsip_outbound_publish.c | 189
b/res/res_pjsip_outbound_registration.c | 26
b/res/res_pjsip_publish_asterisk.c | 10
b/res/res_pjsip_pubsub.c | 565 +-
b/res/res_pjsip_registrar.c | 468 --
b/res/res_pjsip_sdp_rtp.c | 2
b/res/res_pjsip_session.c | 109
b/res/res_pjsip_transport_management.c | 100
b/res/res_rtp_asterisk.c | 17
b/res/res_rtp_multicast.c | 189
b/res/res_rtp_multicast.exports.in | 6
b/res/res_sorcery_astdb.c | 60
b/res/res_srtp.c | 8
b/res/res_stasis.c | 16
b/rest-api/api-docs/channels.json | 17
b/tests/test_cel.c | 2
b/tests/test_channel_feature_hooks.c | 15
b/tests/test_config.c | 75
b/tests/test_message.c | 8
b/tests/test_netsock2.c | 6
b/tests/test_res_pjsip_scheduler.c | 401 +
b/third-party/pjproject/Makefile | 23
b/third-party/pjproject/Makefile.rules | 11
b/third-party/pjproject/apply_patches | 4
b/third-party/pjproject/configure.m4 | 7
b/third-party/pjproject/patches/0001-evsub-Add-APIs-to-add-decrement-an-event-subscriptio.patch | 73
b/third-party/pjproject/patches/0001-sip_transport_tcp-tls-Set-factory-on-transports-crea.patch | 48
third-party/pjproject/patches/0001-2.4.5-fix-for-tls-async-ops.patch | 224 -
third-party/pjproject/patches/0001-Bump-tcp-tls-and-transaction-log-levels-from-1-to-3.patch | 70
third-party/pjproject/patches/0001-ioqueue-Enable-epoll-in-aconfigure.ac.patch | 80
third-party/pjproject/patches/0001-sip_parser.c-Fix-pjsip_VIA_PARAM_SPEC_ESC.patch | 30
third-party/pjproject/patches/0001-sip_parser.c-Remove-wholesale-strip-from-parse_param.patch | 55
third-party/pjproject/patches/0001-sip_transport-Search-for-transport-even-if-listener-.patch | 114
169 files changed, 9993 insertions(+), 3286 deletions(-)</pre><br></html>

1217
asterisk-13.10.0-summary.txt Normal file

File diff suppressed because it is too large Load Diff

2
configure vendored
View File

@@ -25202,7 +25202,7 @@ if test "x${PBX_PJSIP_EVSUB_GRP_LOCK}" != "x1" -a "${USE_PJSIP_EVSUB_GRP_LOCK}"
pbxlibdir="-L${PJSIP_EVSUB_GRP_LOCK_DIR}"
fi
fi
pbxfuncname="pjsip_evsub_add_lock"
pbxfuncname="pjsip_evsub_add_ref"
if test "x${pbxfuncname}" = "x" ; then # empty lib, assume only headers
AST_PJSIP_EVSUB_GRP_LOCK_FOUND=yes
else

View File

@@ -2195,7 +2195,7 @@ if test "$USE_PJPROJECT" != "no" ; then
LIBS="${saved_libs}"
CPPFLAGS="${saved_cppflags}"
AST_EXT_LIB_CHECK([PJSIP_EVSUB_GRP_LOCK], [pjsip], [pjsip_evsub_add_lock], [pjsip.h], [$PJPROJECT_LIB], [$PJPROJECT_CFLAGS])
AST_EXT_LIB_CHECK([PJSIP_EVSUB_GRP_LOCK], [pjsip], [pjsip_evsub_add_ref], [pjsip.h], [$PJPROJECT_LIB], [$PJPROJECT_CFLAGS])
fi
fi

View File

@@ -0,0 +1,44 @@
BEGIN TRANSACTION;
CREATE TABLE alembic_version (
version_num VARCHAR(32) NOT NULL
);
GO
-- Running upgrade -> 210693f3123d
CREATE TABLE cdr (
accountcode VARCHAR(20) NULL,
src VARCHAR(80) NULL,
dst VARCHAR(80) NULL,
dcontext VARCHAR(80) NULL,
clid VARCHAR(80) NULL,
channel VARCHAR(80) NULL,
dstchannel VARCHAR(80) NULL,
lastapp VARCHAR(80) NULL,
lastdata VARCHAR(80) NULL,
start DATETIME NULL,
answer DATETIME NULL,
[end] DATETIME NULL,
duration INTEGER NULL,
billsec INTEGER NULL,
disposition VARCHAR(45) NULL,
amaflags VARCHAR(45) NULL,
userfield VARCHAR(256) NULL,
uniqueid VARCHAR(150) NULL,
linkedid VARCHAR(150) NULL,
peeraccount VARCHAR(20) NULL,
sequence INTEGER NULL
);
GO
INSERT INTO alembic_version (version_num) VALUES ('210693f3123d');
GO
COMMIT;
GO

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,54 @@
BEGIN TRANSACTION;
CREATE TABLE alembic_version (
version_num VARCHAR(32) NOT NULL
);
GO
-- Running upgrade -> a2e9769475e
CREATE TABLE voicemail_messages (
dir VARCHAR(255) NOT NULL,
msgnum INTEGER NOT NULL,
context VARCHAR(80) NULL,
macrocontext VARCHAR(80) NULL,
callerid VARCHAR(80) NULL,
origtime INTEGER NULL,
duration INTEGER NULL,
recording IMAGE NULL,
flag VARCHAR(30) NULL,
category VARCHAR(30) NULL,
mailboxuser VARCHAR(30) NULL,
mailboxcontext VARCHAR(30) NULL,
msg_id VARCHAR(40) NULL
);
GO
ALTER TABLE voicemail_messages ADD CONSTRAINT voicemail_messages_dir_msgnum PRIMARY KEY (dir, msgnum);
GO
CREATE INDEX voicemail_messages_dir ON voicemail_messages (dir);
GO
INSERT INTO alembic_version (version_num) VALUES ('a2e9769475e');
GO
-- Running upgrade a2e9769475e -> 39428242f7f5
ALTER TABLE voicemail_messages ALTER COLUMN recording IMAGE;
GO
UPDATE alembic_version SET version_num='39428242f7f5' WHERE alembic_version.version_num = 'a2e9769475e';
GO
COMMIT;
GO

View File

@@ -0,0 +1,32 @@
CREATE TABLE alembic_version (
version_num VARCHAR(32) NOT NULL
);
-- Running upgrade -> 210693f3123d
CREATE TABLE cdr (
accountcode VARCHAR(20),
src VARCHAR(80),
dst VARCHAR(80),
dcontext VARCHAR(80),
clid VARCHAR(80),
channel VARCHAR(80),
dstchannel VARCHAR(80),
lastapp VARCHAR(80),
lastdata VARCHAR(80),
start DATETIME,
answer DATETIME,
end DATETIME,
duration INTEGER,
billsec INTEGER,
disposition VARCHAR(45),
amaflags VARCHAR(45),
userfield VARCHAR(256),
uniqueid VARCHAR(150),
linkedid VARCHAR(150),
peeraccount VARCHAR(20),
sequence INTEGER
);
INSERT INTO alembic_version (version_num) VALUES ('210693f3123d');

View File

@@ -0,0 +1,899 @@
CREATE TABLE alembic_version (
version_num VARCHAR(32) NOT NULL
);
-- Running upgrade -> 4da0c5f79a9c
CREATE TABLE sippeers (
id INTEGER NOT NULL AUTO_INCREMENT,
name VARCHAR(40) NOT NULL,
ipaddr VARCHAR(45),
port INTEGER,
regseconds INTEGER,
defaultuser VARCHAR(40),
fullcontact VARCHAR(80),
regserver VARCHAR(20),
useragent VARCHAR(20),
lastms INTEGER,
host VARCHAR(40),
type ENUM('friend','user','peer'),
context VARCHAR(40),
permit VARCHAR(95),
deny VARCHAR(95),
secret VARCHAR(40),
md5secret VARCHAR(40),
remotesecret VARCHAR(40),
transport ENUM('udp','tcp','tls','ws','wss','udp,tcp','tcp,udp'),
dtmfmode ENUM('rfc2833','info','shortinfo','inband','auto'),
directmedia ENUM('yes','no','nonat','update'),
nat VARCHAR(29),
callgroup VARCHAR(40),
pickupgroup VARCHAR(40),
language VARCHAR(40),
disallow VARCHAR(200),
allow VARCHAR(200),
insecure VARCHAR(40),
trustrpid ENUM('yes','no'),
progressinband ENUM('yes','no','never'),
promiscredir ENUM('yes','no'),
useclientcode ENUM('yes','no'),
accountcode VARCHAR(40),
setvar VARCHAR(200),
callerid VARCHAR(40),
amaflags VARCHAR(40),
callcounter ENUM('yes','no'),
busylevel INTEGER,
allowoverlap ENUM('yes','no'),
allowsubscribe ENUM('yes','no'),
videosupport ENUM('yes','no'),
maxcallbitrate INTEGER,
rfc2833compensate ENUM('yes','no'),
mailbox VARCHAR(40),
`session-timers` ENUM('accept','refuse','originate'),
`session-expires` INTEGER,
`session-minse` INTEGER,
`session-refresher` ENUM('uac','uas'),
t38pt_usertpsource VARCHAR(40),
regexten VARCHAR(40),
fromdomain VARCHAR(40),
fromuser VARCHAR(40),
qualify VARCHAR(40),
defaultip VARCHAR(45),
rtptimeout INTEGER,
rtpholdtimeout INTEGER,
sendrpid ENUM('yes','no'),
outboundproxy VARCHAR(40),
callbackextension VARCHAR(40),
timert1 INTEGER,
timerb INTEGER,
qualifyfreq INTEGER,
constantssrc ENUM('yes','no'),
contactpermit VARCHAR(95),
contactdeny VARCHAR(95),
usereqphone ENUM('yes','no'),
textsupport ENUM('yes','no'),
faxdetect ENUM('yes','no'),
buggymwi ENUM('yes','no'),
auth VARCHAR(40),
fullname VARCHAR(40),
trunkname VARCHAR(40),
cid_number VARCHAR(40),
callingpres ENUM('allowed_not_screened','allowed_passed_screen','allowed_failed_screen','allowed','prohib_not_screened','prohib_passed_screen','prohib_failed_screen','prohib'),
mohinterpret VARCHAR(40),
mohsuggest VARCHAR(40),
parkinglot VARCHAR(40),
hasvoicemail ENUM('yes','no'),
subscribemwi ENUM('yes','no'),
vmexten VARCHAR(40),
autoframing ENUM('yes','no'),
rtpkeepalive INTEGER,
`call-limit` INTEGER,
g726nonstandard ENUM('yes','no'),
ignoresdpversion ENUM('yes','no'),
allowtransfer ENUM('yes','no'),
dynamic ENUM('yes','no'),
path VARCHAR(256),
supportpath ENUM('yes','no'),
PRIMARY KEY (id),
UNIQUE (name)
);
CREATE INDEX sippeers_name ON sippeers (name);
CREATE INDEX sippeers_name_host ON sippeers (name, host);
CREATE INDEX sippeers_ipaddr_port ON sippeers (ipaddr, port);
CREATE INDEX sippeers_host_port ON sippeers (host, port);
CREATE TABLE iaxfriends (
id INTEGER NOT NULL AUTO_INCREMENT,
name VARCHAR(40) NOT NULL,
type ENUM('friend','user','peer'),
username VARCHAR(40),
mailbox VARCHAR(40),
secret VARCHAR(40),
dbsecret VARCHAR(40),
context VARCHAR(40),
regcontext VARCHAR(40),
host VARCHAR(40),
ipaddr VARCHAR(40),
port INTEGER,
defaultip VARCHAR(20),
sourceaddress VARCHAR(20),
mask VARCHAR(20),
regexten VARCHAR(40),
regseconds INTEGER,
accountcode VARCHAR(20),
mohinterpret VARCHAR(20),
mohsuggest VARCHAR(20),
inkeys VARCHAR(40),
outkeys VARCHAR(40),
language VARCHAR(10),
callerid VARCHAR(100),
cid_number VARCHAR(40),
sendani ENUM('yes','no'),
fullname VARCHAR(40),
trunk ENUM('yes','no'),
auth VARCHAR(20),
maxauthreq INTEGER,
requirecalltoken ENUM('yes','no','auto'),
encryption ENUM('yes','no','aes128'),
transfer ENUM('yes','no','mediaonly'),
jitterbuffer ENUM('yes','no'),
forcejitterbuffer ENUM('yes','no'),
disallow VARCHAR(200),
allow VARCHAR(200),
codecpriority VARCHAR(40),
qualify VARCHAR(10),
qualifysmoothing ENUM('yes','no'),
qualifyfreqok VARCHAR(10),
qualifyfreqnotok VARCHAR(10),
timezone VARCHAR(20),
adsi ENUM('yes','no'),
amaflags VARCHAR(20),
setvar VARCHAR(200),
PRIMARY KEY (id),
UNIQUE (name)
);
CREATE INDEX iaxfriends_name ON iaxfriends (name);
CREATE INDEX iaxfriends_name_host ON iaxfriends (name, host);
CREATE INDEX iaxfriends_name_ipaddr_port ON iaxfriends (name, ipaddr, port);
CREATE INDEX iaxfriends_ipaddr_port ON iaxfriends (ipaddr, port);
CREATE INDEX iaxfriends_host_port ON iaxfriends (host, port);
CREATE TABLE voicemail (
uniqueid INTEGER NOT NULL AUTO_INCREMENT,
context VARCHAR(80) NOT NULL,
mailbox VARCHAR(80) NOT NULL,
password VARCHAR(80) NOT NULL,
fullname VARCHAR(80),
alias VARCHAR(80),
email VARCHAR(80),
pager VARCHAR(80),
attach ENUM('yes','no'),
attachfmt VARCHAR(10),
serveremail VARCHAR(80),
language VARCHAR(20),
tz VARCHAR(30),
deletevoicemail ENUM('yes','no'),
saycid ENUM('yes','no'),
sendvoicemail ENUM('yes','no'),
review ENUM('yes','no'),
tempgreetwarn ENUM('yes','no'),
operator ENUM('yes','no'),
envelope ENUM('yes','no'),
sayduration INTEGER,
forcename ENUM('yes','no'),
forcegreetings ENUM('yes','no'),
callback VARCHAR(80),
dialout VARCHAR(80),
exitcontext VARCHAR(80),
maxmsg INTEGER,
volgain NUMERIC(5, 2),
imapuser VARCHAR(80),
imappassword VARCHAR(80),
imapserver VARCHAR(80),
imapport VARCHAR(8),
imapflags VARCHAR(80),
stamp DATETIME,
PRIMARY KEY (uniqueid)
);
CREATE INDEX voicemail_mailbox ON voicemail (mailbox);
CREATE INDEX voicemail_context ON voicemail (context);
CREATE INDEX voicemail_mailbox_context ON voicemail (mailbox, context);
CREATE INDEX voicemail_imapuser ON voicemail (imapuser);
CREATE TABLE meetme (
bookid INTEGER NOT NULL AUTO_INCREMENT,
confno VARCHAR(80) NOT NULL,
starttime DATETIME,
endtime DATETIME,
pin VARCHAR(20),
adminpin VARCHAR(20),
opts VARCHAR(20),
adminopts VARCHAR(20),
recordingfilename VARCHAR(80),
recordingformat VARCHAR(10),
maxusers INTEGER,
members INTEGER NOT NULL,
PRIMARY KEY (bookid)
);
CREATE INDEX meetme_confno_start_end ON meetme (confno, starttime, endtime);
CREATE TABLE musiconhold (
name VARCHAR(80) NOT NULL,
mode ENUM('custom','files','mp3nb','quietmp3nb','quietmp3'),
directory VARCHAR(255),
application VARCHAR(255),
digit VARCHAR(1),
sort VARCHAR(10),
format VARCHAR(10),
stamp DATETIME,
PRIMARY KEY (name)
);
INSERT INTO alembic_version (version_num) VALUES ('4da0c5f79a9c');
-- Running upgrade 4da0c5f79a9c -> 43956d550a44
CREATE TABLE ps_endpoints (
id VARCHAR(40) NOT NULL,
transport VARCHAR(40),
aors VARCHAR(200),
auth VARCHAR(40),
context VARCHAR(40),
disallow VARCHAR(200),
allow VARCHAR(200),
direct_media ENUM('yes','no'),
connected_line_method ENUM('invite','reinvite','update'),
direct_media_method ENUM('invite','reinvite','update'),
direct_media_glare_mitigation ENUM('none','outgoing','incoming'),
disable_direct_media_on_nat ENUM('yes','no'),
dtmf_mode ENUM('rfc4733','inband','info'),
external_media_address VARCHAR(40),
force_rport ENUM('yes','no'),
ice_support ENUM('yes','no'),
identify_by ENUM('username'),
mailboxes VARCHAR(40),
moh_suggest VARCHAR(40),
outbound_auth VARCHAR(40),
outbound_proxy VARCHAR(40),
rewrite_contact ENUM('yes','no'),
rtp_ipv6 ENUM('yes','no'),
rtp_symmetric ENUM('yes','no'),
send_diversion ENUM('yes','no'),
send_pai ENUM('yes','no'),
send_rpid ENUM('yes','no'),
timers_min_se INTEGER,
timers ENUM('forced','no','required','yes'),
timers_sess_expires INTEGER,
callerid VARCHAR(40),
callerid_privacy ENUM('allowed_not_screened','allowed_passed_screened','allowed_failed_screened','allowed','prohib_not_screened','prohib_passed_screened','prohib_failed_screened','prohib','unavailable'),
callerid_tag VARCHAR(40),
`100rel` ENUM('no','required','yes'),
aggregate_mwi ENUM('yes','no'),
trust_id_inbound ENUM('yes','no'),
trust_id_outbound ENUM('yes','no'),
use_ptime ENUM('yes','no'),
use_avpf ENUM('yes','no'),
media_encryption ENUM('no','sdes','dtls'),
inband_progress ENUM('yes','no'),
call_group VARCHAR(40),
pickup_group VARCHAR(40),
named_call_group VARCHAR(40),
named_pickup_group VARCHAR(40),
device_state_busy_at INTEGER,
fax_detect ENUM('yes','no'),
t38_udptl ENUM('yes','no'),
t38_udptl_ec ENUM('none','fec','redundancy'),
t38_udptl_maxdatagram INTEGER,
t38_udptl_nat ENUM('yes','no'),
t38_udptl_ipv6 ENUM('yes','no'),
tone_zone VARCHAR(40),
language VARCHAR(40),
one_touch_recording ENUM('yes','no'),
record_on_feature VARCHAR(40),
record_off_feature VARCHAR(40),
rtp_engine VARCHAR(40),
allow_transfer ENUM('yes','no'),
allow_subscribe ENUM('yes','no'),
sdp_owner VARCHAR(40),
sdp_session VARCHAR(40),
tos_audio INTEGER,
tos_video INTEGER,
cos_audio INTEGER,
cos_video INTEGER,
sub_min_expiry INTEGER,
from_domain VARCHAR(40),
from_user VARCHAR(40),
mwi_fromuser VARCHAR(40),
dtls_verify VARCHAR(40),
dtls_rekey VARCHAR(40),
dtls_cert_file VARCHAR(200),
dtls_private_key VARCHAR(200),
dtls_cipher VARCHAR(200),
dtls_ca_file VARCHAR(200),
dtls_ca_path VARCHAR(200),
dtls_setup ENUM('active','passive','actpass'),
srtp_tag_32 ENUM('yes','no'),
UNIQUE (id)
);
CREATE INDEX ps_endpoints_id ON ps_endpoints (id);
CREATE TABLE ps_auths (
id VARCHAR(40) NOT NULL,
auth_type ENUM('md5','userpass'),
nonce_lifetime INTEGER,
md5_cred VARCHAR(40),
password VARCHAR(80),
realm VARCHAR(40),
username VARCHAR(40),
UNIQUE (id)
);
CREATE INDEX ps_auths_id ON ps_auths (id);
CREATE TABLE ps_aors (
id VARCHAR(40) NOT NULL,
contact VARCHAR(40),
default_expiration INTEGER,
mailboxes VARCHAR(80),
max_contacts INTEGER,
minimum_expiration INTEGER,
remove_existing ENUM('yes','no'),
qualify_frequency INTEGER,
authenticate_qualify ENUM('yes','no'),
UNIQUE (id)
);
CREATE INDEX ps_aors_id ON ps_aors (id);
CREATE TABLE ps_contacts (
id VARCHAR(40) NOT NULL,
uri VARCHAR(40),
expiration_time VARCHAR(40),
qualify_frequency INTEGER,
UNIQUE (id)
);
CREATE INDEX ps_contacts_id ON ps_contacts (id);
CREATE TABLE ps_domain_aliases (
id VARCHAR(40) NOT NULL,
domain VARCHAR(80),
UNIQUE (id)
);
CREATE INDEX ps_domain_aliases_id ON ps_domain_aliases (id);
CREATE TABLE ps_endpoint_id_ips (
id VARCHAR(40) NOT NULL,
endpoint VARCHAR(40),
`match` VARCHAR(80),
UNIQUE (id)
);
CREATE INDEX ps_endpoint_id_ips_id ON ps_endpoint_id_ips (id);
UPDATE alembic_version SET version_num='43956d550a44' WHERE alembic_version.version_num = '4da0c5f79a9c';
-- Running upgrade 43956d550a44 -> 581a4264e537
CREATE TABLE extensions (
id BIGINT NOT NULL AUTO_INCREMENT,
context VARCHAR(40) NOT NULL,
exten VARCHAR(40) NOT NULL,
priority INTEGER NOT NULL,
app VARCHAR(40) NOT NULL,
appdata VARCHAR(256) NOT NULL,
PRIMARY KEY (id, context, exten, priority),
UNIQUE (id)
);
UPDATE alembic_version SET version_num='581a4264e537' WHERE alembic_version.version_num = '43956d550a44';
-- Running upgrade 581a4264e537 -> 2fc7930b41b3
CREATE TABLE ps_systems (
id VARCHAR(40) NOT NULL,
timer_t1 INTEGER,
timer_b INTEGER,
compact_headers ENUM('yes','no'),
threadpool_initial_size INTEGER,
threadpool_auto_increment INTEGER,
threadpool_idle_timeout INTEGER,
threadpool_max_size INTEGER,
UNIQUE (id)
);
CREATE INDEX ps_systems_id ON ps_systems (id);
CREATE TABLE ps_globals (
id VARCHAR(40) NOT NULL,
max_forwards INTEGER,
user_agent VARCHAR(40),
default_outbound_endpoint VARCHAR(40),
UNIQUE (id)
);
CREATE INDEX ps_globals_id ON ps_globals (id);
CREATE TABLE ps_transports (
id VARCHAR(40) NOT NULL,
async_operations INTEGER,
bind VARCHAR(40),
ca_list_file VARCHAR(200),
cert_file VARCHAR(200),
cipher VARCHAR(200),
domain VARCHAR(40),
external_media_address VARCHAR(40),
external_signaling_address VARCHAR(40),
external_signaling_port INTEGER,
method ENUM('default','unspecified','tlsv1','sslv2','sslv3','sslv23'),
local_net VARCHAR(40),
password VARCHAR(40),
priv_key_file VARCHAR(200),
protocol ENUM('udp','tcp','tls','ws','wss'),
require_client_cert ENUM('yes','no'),
verify_client ENUM('yes','no'),
verifiy_server ENUM('yes','no'),
tos ENUM('yes','no'),
cos ENUM('yes','no'),
UNIQUE (id)
);
CREATE INDEX ps_transports_id ON ps_transports (id);
CREATE TABLE ps_registrations (
id VARCHAR(40) NOT NULL,
auth_rejection_permanent ENUM('yes','no'),
client_uri VARCHAR(40),
contact_user VARCHAR(40),
expiration INTEGER,
max_retries INTEGER,
outbound_auth VARCHAR(40),
outbound_proxy VARCHAR(40),
retry_interval INTEGER,
forbidden_retry_interval INTEGER,
server_uri VARCHAR(40),
transport VARCHAR(40),
support_path ENUM('yes','no'),
UNIQUE (id)
);
CREATE INDEX ps_registrations_id ON ps_registrations (id);
ALTER TABLE ps_endpoints ADD COLUMN media_address VARCHAR(40);
ALTER TABLE ps_endpoints ADD COLUMN redirect_method ENUM('user','uri_core','uri_pjsip');
ALTER TABLE ps_endpoints ADD COLUMN set_var TEXT;
ALTER TABLE ps_endpoints CHANGE mwi_fromuser mwi_from_user VARCHAR(40) NULL;
ALTER TABLE ps_contacts ADD COLUMN outbound_proxy VARCHAR(40);
ALTER TABLE ps_contacts ADD COLUMN path TEXT;
ALTER TABLE ps_aors ADD COLUMN maximum_expiration INTEGER;
ALTER TABLE ps_aors ADD COLUMN outbound_proxy VARCHAR(40);
ALTER TABLE ps_aors ADD COLUMN support_path ENUM('yes','no');
UPDATE alembic_version SET version_num='2fc7930b41b3' WHERE alembic_version.version_num = '581a4264e537';
-- Running upgrade 2fc7930b41b3 -> 21e526ad3040
ALTER TABLE ps_globals ADD COLUMN debug VARCHAR(40);
UPDATE alembic_version SET version_num='21e526ad3040' WHERE alembic_version.version_num = '2fc7930b41b3';
-- Running upgrade 21e526ad3040 -> 28887f25a46f
CREATE TABLE queues (
name VARCHAR(128) NOT NULL,
musiconhold VARCHAR(128),
announce VARCHAR(128),
context VARCHAR(128),
timeout INTEGER,
ringinuse ENUM('yes','no'),
setinterfacevar ENUM('yes','no'),
setqueuevar ENUM('yes','no'),
setqueueentryvar ENUM('yes','no'),
monitor_format VARCHAR(8),
membermacro VARCHAR(512),
membergosub VARCHAR(512),
queue_youarenext VARCHAR(128),
queue_thereare VARCHAR(128),
queue_callswaiting VARCHAR(128),
queue_quantity1 VARCHAR(128),
queue_quantity2 VARCHAR(128),
queue_holdtime VARCHAR(128),
queue_minutes VARCHAR(128),
queue_minute VARCHAR(128),
queue_seconds VARCHAR(128),
queue_thankyou VARCHAR(128),
queue_callerannounce VARCHAR(128),
queue_reporthold VARCHAR(128),
announce_frequency INTEGER,
announce_to_first_user ENUM('yes','no'),
min_announce_frequency INTEGER,
announce_round_seconds INTEGER,
announce_holdtime VARCHAR(128),
announce_position VARCHAR(128),
announce_position_limit INTEGER,
periodic_announce VARCHAR(50),
periodic_announce_frequency INTEGER,
relative_periodic_announce ENUM('yes','no'),
random_periodic_announce ENUM('yes','no'),
retry INTEGER,
wrapuptime INTEGER,
penaltymemberslimit INTEGER,
autofill ENUM('yes','no'),
monitor_type VARCHAR(128),
autopause ENUM('yes','no','all'),
autopausedelay INTEGER,
autopausebusy ENUM('yes','no'),
autopauseunavail ENUM('yes','no'),
maxlen INTEGER,
servicelevel INTEGER,
strategy ENUM('ringall','leastrecent','fewestcalls','random','rrmemory','linear','wrandom','rrordered'),
joinempty VARCHAR(128),
leavewhenempty VARCHAR(128),
reportholdtime ENUM('yes','no'),
memberdelay INTEGER,
weight INTEGER,
timeoutrestart ENUM('yes','no'),
defaultrule VARCHAR(128),
timeoutpriority VARCHAR(128),
PRIMARY KEY (name)
);
CREATE TABLE queue_members (
queue_name VARCHAR(80) NOT NULL,
interface VARCHAR(80) NOT NULL,
uniqueid VARCHAR(80) NOT NULL,
membername VARCHAR(80),
state_interface VARCHAR(80),
penalty INTEGER,
paused INTEGER,
PRIMARY KEY (queue_name, interface)
);
UPDATE alembic_version SET version_num='28887f25a46f' WHERE alembic_version.version_num = '21e526ad3040';
-- Running upgrade 28887f25a46f -> 4c573e7135bd
ALTER TABLE ps_endpoints MODIFY tos_audio VARCHAR(10) NULL;
ALTER TABLE ps_endpoints MODIFY tos_video VARCHAR(10) NULL;
ALTER TABLE ps_endpoints DROP COLUMN cos_audio;
ALTER TABLE ps_endpoints DROP COLUMN cos_video;
ALTER TABLE ps_endpoints ADD COLUMN cos_audio INTEGER;
ALTER TABLE ps_endpoints ADD COLUMN cos_video INTEGER;
ALTER TABLE ps_transports MODIFY tos VARCHAR(10) NULL;
ALTER TABLE ps_transports DROP COLUMN cos;
ALTER TABLE ps_transports ADD COLUMN cos INTEGER;
UPDATE alembic_version SET version_num='4c573e7135bd' WHERE alembic_version.version_num = '28887f25a46f';
-- Running upgrade 4c573e7135bd -> 3855ee4e5f85
ALTER TABLE ps_endpoints ADD COLUMN message_context VARCHAR(40);
ALTER TABLE ps_contacts ADD COLUMN user_agent VARCHAR(40);
UPDATE alembic_version SET version_num='3855ee4e5f85' WHERE alembic_version.version_num = '4c573e7135bd';
-- Running upgrade 3855ee4e5f85 -> e96a0b8071c
ALTER TABLE ps_globals MODIFY user_agent VARCHAR(255) NULL;
ALTER TABLE ps_contacts MODIFY id VARCHAR(255) NULL;
ALTER TABLE ps_contacts MODIFY uri VARCHAR(255) NULL;
ALTER TABLE ps_contacts MODIFY user_agent VARCHAR(255) NULL;
ALTER TABLE ps_registrations MODIFY client_uri VARCHAR(255) NULL;
ALTER TABLE ps_registrations MODIFY server_uri VARCHAR(255) NULL;
UPDATE alembic_version SET version_num='e96a0b8071c' WHERE alembic_version.version_num = '3855ee4e5f85';
-- Running upgrade e96a0b8071c -> c6d929b23a8
CREATE TABLE ps_subscription_persistence (
id VARCHAR(40) NOT NULL,
packet VARCHAR(2048),
src_name VARCHAR(128),
src_port INTEGER,
transport_key VARCHAR(64),
local_name VARCHAR(128),
local_port INTEGER,
cseq INTEGER,
tag VARCHAR(128),
endpoint VARCHAR(40),
expires INTEGER,
UNIQUE (id)
);
CREATE INDEX ps_subscription_persistence_id ON ps_subscription_persistence (id);
UPDATE alembic_version SET version_num='c6d929b23a8' WHERE alembic_version.version_num = 'e96a0b8071c';
-- Running upgrade c6d929b23a8 -> 51f8cb66540e
ALTER TABLE ps_endpoints ADD COLUMN force_avp ENUM('yes','no');
ALTER TABLE ps_endpoints ADD COLUMN media_use_received_transport ENUM('yes','no');
UPDATE alembic_version SET version_num='51f8cb66540e' WHERE alembic_version.version_num = 'c6d929b23a8';
-- Running upgrade 51f8cb66540e -> 1d50859ed02e
ALTER TABLE ps_endpoints ADD COLUMN accountcode VARCHAR(20);
UPDATE alembic_version SET version_num='1d50859ed02e' WHERE alembic_version.version_num = '51f8cb66540e';
-- Running upgrade 1d50859ed02e -> 1758e8bbf6b
ALTER TABLE sippeers MODIFY useragent VARCHAR(255) NULL;
UPDATE alembic_version SET version_num='1758e8bbf6b' WHERE alembic_version.version_num = '1d50859ed02e';
-- Running upgrade 1758e8bbf6b -> 5139253c0423
ALTER TABLE queue_members DROP COLUMN uniqueid;
ALTER TABLE queue_members ADD COLUMN uniqueid INTEGER NOT NULL;
ALTER TABLE queue_members ADD UNIQUE (uniqueid);
ALTER TABLE queue_members MODIFY uniqueid INTEGER NOT NULL AUTO_INCREMENT;
UPDATE alembic_version SET version_num='5139253c0423' WHERE alembic_version.version_num = '1758e8bbf6b';
-- Running upgrade 5139253c0423 -> d39508cb8d8
CREATE TABLE queue_rules (
rule_name VARCHAR(80) NOT NULL,
time VARCHAR(32) NOT NULL,
min_penalty VARCHAR(32) NOT NULL,
max_penalty VARCHAR(32) NOT NULL
);
UPDATE alembic_version SET version_num='d39508cb8d8' WHERE alembic_version.version_num = '5139253c0423';
-- Running upgrade d39508cb8d8 -> 5950038a6ead
ALTER TABLE ps_transports CHANGE verifiy_server verify_server ENUM('yes','no') NULL;
UPDATE alembic_version SET version_num='5950038a6ead' WHERE alembic_version.version_num = 'd39508cb8d8';
-- Running upgrade 5950038a6ead -> 10aedae86a32
ALTER TABLE sippeers MODIFY directmedia ENUM('yes','no','nonat','update','outgoing') NULL;
UPDATE alembic_version SET version_num='10aedae86a32' WHERE alembic_version.version_num = '5950038a6ead';
-- Running upgrade 10aedae86a32 -> eb88a14f2a
ALTER TABLE ps_endpoints ADD COLUMN media_encryption_optimistic ENUM('yes','no');
UPDATE alembic_version SET version_num='eb88a14f2a' WHERE alembic_version.version_num = '10aedae86a32';
-- Running upgrade eb88a14f2a -> 371a3bf4143e
ALTER TABLE ps_endpoints ADD COLUMN user_eq_phone ENUM('yes','no');
UPDATE alembic_version SET version_num='371a3bf4143e' WHERE alembic_version.version_num = 'eb88a14f2a';
-- Running upgrade 371a3bf4143e -> 45e3f47c6c44
ALTER TABLE ps_globals ADD COLUMN endpoint_identifier_order VARCHAR(40);
UPDATE alembic_version SET version_num='45e3f47c6c44' WHERE alembic_version.version_num = '371a3bf4143e';
-- Running upgrade 45e3f47c6c44 -> 23530d604b96
ALTER TABLE ps_endpoints ADD COLUMN rpid_immediate ENUM('yes','no');
UPDATE alembic_version SET version_num='23530d604b96' WHERE alembic_version.version_num = '45e3f47c6c44';
-- Running upgrade 23530d604b96 -> 31cd4f4891ec
ALTER TABLE ps_endpoints MODIFY dtmf_mode ENUM('rfc4733','inband','info','auto') NULL;
UPDATE alembic_version SET version_num='31cd4f4891ec' WHERE alembic_version.version_num = '23530d604b96';
-- Running upgrade 31cd4f4891ec -> 461d7d691209
ALTER TABLE ps_aors ADD COLUMN qualify_timeout INTEGER;
ALTER TABLE ps_contacts ADD COLUMN qualify_timeout INTEGER;
UPDATE alembic_version SET version_num='461d7d691209' WHERE alembic_version.version_num = '31cd4f4891ec';
-- Running upgrade 461d7d691209 -> a541e0b5e89
ALTER TABLE ps_globals ADD COLUMN max_initial_qualify_time INTEGER;
UPDATE alembic_version SET version_num='a541e0b5e89' WHERE alembic_version.version_num = '461d7d691209';
-- Running upgrade a541e0b5e89 -> 28b8e71e541f
ALTER TABLE ps_endpoints ADD COLUMN g726_non_standard ENUM('yes','no');
UPDATE alembic_version SET version_num='28b8e71e541f' WHERE alembic_version.version_num = 'a541e0b5e89';
-- Running upgrade 28b8e71e541f -> 498357a710ae
ALTER TABLE ps_endpoints ADD COLUMN rtp_keepalive INTEGER;
UPDATE alembic_version SET version_num='498357a710ae' WHERE alembic_version.version_num = '28b8e71e541f';
-- Running upgrade 498357a710ae -> 26f10cadc157
ALTER TABLE ps_endpoints ADD COLUMN rtp_timeout INTEGER;
ALTER TABLE ps_endpoints ADD COLUMN rtp_timeout_hold INTEGER;
UPDATE alembic_version SET version_num='26f10cadc157' WHERE alembic_version.version_num = '498357a710ae';
-- Running upgrade 26f10cadc157 -> 154177371065
ALTER TABLE ps_globals ADD COLUMN default_from_user VARCHAR(80);
UPDATE alembic_version SET version_num='154177371065' WHERE alembic_version.version_num = '26f10cadc157';
-- Running upgrade 154177371065 -> 28ce1e718f05
ALTER TABLE ps_registrations ADD COLUMN fatal_retry_interval INTEGER;
UPDATE alembic_version SET version_num='28ce1e718f05' WHERE alembic_version.version_num = '154177371065';
-- Running upgrade 28ce1e718f05 -> 189a235b3fd7
ALTER TABLE ps_globals ADD COLUMN keep_alive_interval INTEGER;
UPDATE alembic_version SET version_num='189a235b3fd7' WHERE alembic_version.version_num = '28ce1e718f05';
-- Running upgrade 189a235b3fd7 -> 2d078ec071b7
ALTER TABLE ps_aors MODIFY contact VARCHAR(255) NULL;
UPDATE alembic_version SET version_num='2d078ec071b7' WHERE alembic_version.version_num = '189a235b3fd7';
-- Running upgrade 2d078ec071b7 -> 26d7f3bf0fa5
ALTER TABLE ps_endpoints ADD COLUMN bind_rtp_to_media_address ENUM('yes','no');
UPDATE alembic_version SET version_num='26d7f3bf0fa5' WHERE alembic_version.version_num = '2d078ec071b7';
-- Running upgrade 26d7f3bf0fa5 -> 136885b81223
ALTER TABLE ps_globals ADD COLUMN regcontext VARCHAR(80);
UPDATE alembic_version SET version_num='136885b81223' WHERE alembic_version.version_num = '26d7f3bf0fa5';
-- Running upgrade 136885b81223 -> 423f34ad36e2
ALTER TABLE ps_aors MODIFY qualify_timeout FLOAT NULL;
ALTER TABLE ps_contacts MODIFY qualify_timeout FLOAT NULL;
UPDATE alembic_version SET version_num='423f34ad36e2' WHERE alembic_version.version_num = '136885b81223';
-- Running upgrade 423f34ad36e2 -> dbc44d5a908
ALTER TABLE ps_systems ADD COLUMN disable_tcp_switch ENUM('yes','no');
ALTER TABLE ps_registrations ADD COLUMN line ENUM('yes','no');
ALTER TABLE ps_registrations ADD COLUMN endpoint VARCHAR(40);
UPDATE alembic_version SET version_num='dbc44d5a908' WHERE alembic_version.version_num = '423f34ad36e2';
-- Running upgrade dbc44d5a908 -> 3bcc0b5bc2c9
ALTER TABLE ps_transports ADD COLUMN allow_reload ENUM('yes','no');
UPDATE alembic_version SET version_num='3bcc0b5bc2c9' WHERE alembic_version.version_num = 'dbc44d5a908';
-- Running upgrade 3bcc0b5bc2c9 -> 5813202e92be
ALTER TABLE ps_globals ADD COLUMN contact_expiration_check_interval INTEGER;
UPDATE alembic_version SET version_num='5813202e92be' WHERE alembic_version.version_num = '3bcc0b5bc2c9';
-- Running upgrade 5813202e92be -> 1c688d9a003c
ALTER TABLE ps_globals ADD COLUMN default_voicemail_extension VARCHAR(40);
ALTER TABLE ps_aors ADD COLUMN voicemail_extension VARCHAR(40);
ALTER TABLE ps_endpoints ADD COLUMN voicemail_extension VARCHAR(40);
ALTER TABLE ps_endpoints ADD COLUMN mwi_subscribe_replaces_unsolicited INTEGER;
UPDATE alembic_version SET version_num='1c688d9a003c' WHERE alembic_version.version_num = '5813202e92be';
-- Running upgrade 1c688d9a003c -> 8d478ab86e29
ALTER TABLE ps_globals ADD COLUMN disable_multi_domain ENUM('yes','no');
UPDATE alembic_version SET version_num='8d478ab86e29' WHERE alembic_version.version_num = '1c688d9a003c';
-- Running upgrade 8d478ab86e29 -> 65eb22eb195
ALTER TABLE ps_globals ADD COLUMN unidentified_request_count INTEGER;
ALTER TABLE ps_globals ADD COLUMN unidentified_request_period INTEGER;
ALTER TABLE ps_globals ADD COLUMN unidentified_request_prune_interval INTEGER;
ALTER TABLE ps_globals ADD COLUMN default_realm VARCHAR(40);
UPDATE alembic_version SET version_num='65eb22eb195' WHERE alembic_version.version_num = '8d478ab86e29';
-- Running upgrade 65eb22eb195 -> 81b01a191a46
ALTER TABLE ps_contacts ADD COLUMN reg_server VARCHAR(20);
ALTER TABLE ps_contacts ADD CONSTRAINT ps_contacts_uq UNIQUE (id, reg_server);
UPDATE alembic_version SET version_num='81b01a191a46' WHERE alembic_version.version_num = '65eb22eb195';
-- Running upgrade 81b01a191a46 -> 6be31516058d
ALTER TABLE ps_contacts ADD COLUMN authenticate_qualify ENUM('yes','no');
UPDATE alembic_version SET version_num='6be31516058d' WHERE alembic_version.version_num = '81b01a191a46';
-- Running upgrade 6be31516058d -> bca7113d796f
ALTER TABLE ps_endpoints ADD COLUMN deny VARCHAR(95);
ALTER TABLE ps_endpoints ADD COLUMN permit VARCHAR(95);
ALTER TABLE ps_endpoints ADD COLUMN acl VARCHAR(40);
ALTER TABLE ps_endpoints ADD COLUMN contact_deny VARCHAR(95);
ALTER TABLE ps_endpoints ADD COLUMN contact_permit VARCHAR(95);
ALTER TABLE ps_endpoints ADD COLUMN contact_acl VARCHAR(40);
UPDATE alembic_version SET version_num='bca7113d796f' WHERE alembic_version.version_num = '6be31516058d';
-- Running upgrade bca7113d796f -> a845e4d8ade8
ALTER TABLE ps_contacts ADD COLUMN via_addr VARCHAR(40);
ALTER TABLE ps_contacts ADD COLUMN via_port INTEGER;
ALTER TABLE ps_contacts ADD COLUMN call_id VARCHAR(255);
UPDATE alembic_version SET version_num='a845e4d8ade8' WHERE alembic_version.version_num = 'bca7113d796f';

View File

@@ -0,0 +1,34 @@
CREATE TABLE alembic_version (
version_num VARCHAR(32) NOT NULL
);
-- Running upgrade -> a2e9769475e
CREATE TABLE voicemail_messages (
dir VARCHAR(255) NOT NULL,
msgnum INTEGER NOT NULL,
context VARCHAR(80),
macrocontext VARCHAR(80),
callerid VARCHAR(80),
origtime INTEGER,
duration INTEGER,
recording BLOB,
flag VARCHAR(30),
category VARCHAR(30),
mailboxuser VARCHAR(30),
mailboxcontext VARCHAR(30),
msg_id VARCHAR(40)
);
ALTER TABLE voicemail_messages ADD CONSTRAINT voicemail_messages_dir_msgnum PRIMARY KEY (dir, msgnum);
CREATE INDEX voicemail_messages_dir ON voicemail_messages (dir);
INSERT INTO alembic_version (version_num) VALUES ('a2e9769475e');
-- Running upgrade a2e9769475e -> 39428242f7f5
ALTER TABLE voicemail_messages MODIFY recording BLOB(4294967295) NULL;
UPDATE alembic_version SET version_num='39428242f7f5' WHERE alembic_version.version_num = 'a2e9769475e';

View File

@@ -0,0 +1,38 @@
CREATE TABLE alembic_version (
version_num VARCHAR2(32 CHAR) NOT NULL
)
/
-- Running upgrade -> 210693f3123d
CREATE TABLE cdr (
accountcode VARCHAR2(20 CHAR),
src VARCHAR2(80 CHAR),
dst VARCHAR2(80 CHAR),
dcontext VARCHAR2(80 CHAR),
clid VARCHAR2(80 CHAR),
channel VARCHAR2(80 CHAR),
dstchannel VARCHAR2(80 CHAR),
lastapp VARCHAR2(80 CHAR),
lastdata VARCHAR2(80 CHAR),
"start" DATE,
answer DATE,
end DATE,
duration INTEGER,
billsec INTEGER,
disposition VARCHAR2(45 CHAR),
amaflags VARCHAR2(45 CHAR),
userfield VARCHAR2(256 CHAR),
uniqueid VARCHAR2(150 CHAR),
linkedid VARCHAR2(150 CHAR),
peeraccount VARCHAR2(20 CHAR),
sequence INTEGER
)
/
INSERT INTO alembic_version (version_num) VALUES ('210693f3123d')
/

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,48 @@
CREATE TABLE alembic_version (
version_num VARCHAR2(32 CHAR) NOT NULL
)
/
-- Running upgrade -> a2e9769475e
CREATE TABLE voicemail_messages (
dir VARCHAR2(255 CHAR) NOT NULL,
msgnum INTEGER NOT NULL,
context VARCHAR2(80 CHAR),
macrocontext VARCHAR2(80 CHAR),
callerid VARCHAR2(80 CHAR),
origtime INTEGER,
duration INTEGER,
recording BLOB,
flag VARCHAR2(30 CHAR),
category VARCHAR2(30 CHAR),
mailboxuser VARCHAR2(30 CHAR),
mailboxcontext VARCHAR2(30 CHAR),
msg_id VARCHAR2(40 CHAR)
)
/
ALTER TABLE voicemail_messages ADD CONSTRAINT voicemail_messages_dir_msgnum PRIMARY KEY (dir, msgnum)
/
CREATE INDEX voicemail_messages_dir ON voicemail_messages (dir)
/
INSERT INTO alembic_version (version_num) VALUES ('a2e9769475e')
/
-- Running upgrade a2e9769475e -> 39428242f7f5
ALTER TABLE voicemail_messages MODIFY recording BLOB
/
UPDATE alembic_version SET version_num='39428242f7f5' WHERE alembic_version.version_num = 'a2e9769475e'
/

View File

@@ -0,0 +1,36 @@
BEGIN;
CREATE TABLE alembic_version (
version_num VARCHAR(32) NOT NULL
);
-- Running upgrade -> 210693f3123d
CREATE TABLE cdr (
accountcode VARCHAR(20),
src VARCHAR(80),
dst VARCHAR(80),
dcontext VARCHAR(80),
clid VARCHAR(80),
channel VARCHAR(80),
dstchannel VARCHAR(80),
lastapp VARCHAR(80),
lastdata VARCHAR(80),
start TIMESTAMP WITHOUT TIME ZONE,
answer TIMESTAMP WITHOUT TIME ZONE,
"end" TIMESTAMP WITHOUT TIME ZONE,
duration INTEGER,
billsec INTEGER,
disposition VARCHAR(45),
amaflags VARCHAR(45),
userfield VARCHAR(256),
uniqueid VARCHAR(150),
linkedid VARCHAR(150),
peeraccount VARCHAR(20),
sequence INTEGER
);
INSERT INTO alembic_version (version_num) VALUES ('210693f3123d');
COMMIT;

View File

@@ -0,0 +1,971 @@
BEGIN;
CREATE TABLE alembic_version (
version_num VARCHAR(32) NOT NULL
);
-- Running upgrade -> 4da0c5f79a9c
CREATE TYPE type_values AS ENUM ('friend', 'user', 'peer');
CREATE TYPE sip_transport_values AS ENUM ('udp', 'tcp', 'tls', 'ws', 'wss', 'udp,tcp', 'tcp,udp');
CREATE TYPE sip_dtmfmode_values AS ENUM ('rfc2833', 'info', 'shortinfo', 'inband', 'auto');
CREATE TYPE sip_directmedia_values AS ENUM ('yes', 'no', 'nonat', 'update');
CREATE TYPE yes_no_values AS ENUM ('yes', 'no');
CREATE TYPE sip_progressinband_values AS ENUM ('yes', 'no', 'never');
CREATE TYPE sip_session_timers_values AS ENUM ('accept', 'refuse', 'originate');
CREATE TYPE sip_session_refresher_values AS ENUM ('uac', 'uas');
CREATE TYPE sip_callingpres_values AS ENUM ('allowed_not_screened', 'allowed_passed_screen', 'allowed_failed_screen', 'allowed', 'prohib_not_screened', 'prohib_passed_screen', 'prohib_failed_screen', 'prohib');
CREATE TABLE sippeers (
id SERIAL NOT NULL,
name VARCHAR(40) NOT NULL,
ipaddr VARCHAR(45),
port INTEGER,
regseconds INTEGER,
defaultuser VARCHAR(40),
fullcontact VARCHAR(80),
regserver VARCHAR(20),
useragent VARCHAR(20),
lastms INTEGER,
host VARCHAR(40),
type type_values,
context VARCHAR(40),
permit VARCHAR(95),
deny VARCHAR(95),
secret VARCHAR(40),
md5secret VARCHAR(40),
remotesecret VARCHAR(40),
transport sip_transport_values,
dtmfmode sip_dtmfmode_values,
directmedia sip_directmedia_values,
nat VARCHAR(29),
callgroup VARCHAR(40),
pickupgroup VARCHAR(40),
language VARCHAR(40),
disallow VARCHAR(200),
allow VARCHAR(200),
insecure VARCHAR(40),
trustrpid yes_no_values,
progressinband sip_progressinband_values,
promiscredir yes_no_values,
useclientcode yes_no_values,
accountcode VARCHAR(40),
setvar VARCHAR(200),
callerid VARCHAR(40),
amaflags VARCHAR(40),
callcounter yes_no_values,
busylevel INTEGER,
allowoverlap yes_no_values,
allowsubscribe yes_no_values,
videosupport yes_no_values,
maxcallbitrate INTEGER,
rfc2833compensate yes_no_values,
mailbox VARCHAR(40),
"session-timers" sip_session_timers_values,
"session-expires" INTEGER,
"session-minse" INTEGER,
"session-refresher" sip_session_refresher_values,
t38pt_usertpsource VARCHAR(40),
regexten VARCHAR(40),
fromdomain VARCHAR(40),
fromuser VARCHAR(40),
qualify VARCHAR(40),
defaultip VARCHAR(45),
rtptimeout INTEGER,
rtpholdtimeout INTEGER,
sendrpid yes_no_values,
outboundproxy VARCHAR(40),
callbackextension VARCHAR(40),
timert1 INTEGER,
timerb INTEGER,
qualifyfreq INTEGER,
constantssrc yes_no_values,
contactpermit VARCHAR(95),
contactdeny VARCHAR(95),
usereqphone yes_no_values,
textsupport yes_no_values,
faxdetect yes_no_values,
buggymwi yes_no_values,
auth VARCHAR(40),
fullname VARCHAR(40),
trunkname VARCHAR(40),
cid_number VARCHAR(40),
callingpres sip_callingpres_values,
mohinterpret VARCHAR(40),
mohsuggest VARCHAR(40),
parkinglot VARCHAR(40),
hasvoicemail yes_no_values,
subscribemwi yes_no_values,
vmexten VARCHAR(40),
autoframing yes_no_values,
rtpkeepalive INTEGER,
"call-limit" INTEGER,
g726nonstandard yes_no_values,
ignoresdpversion yes_no_values,
allowtransfer yes_no_values,
dynamic yes_no_values,
path VARCHAR(256),
supportpath yes_no_values,
PRIMARY KEY (id),
UNIQUE (name)
);
CREATE INDEX sippeers_name ON sippeers (name);
CREATE INDEX sippeers_name_host ON sippeers (name, host);
CREATE INDEX sippeers_ipaddr_port ON sippeers (ipaddr, port);
CREATE INDEX sippeers_host_port ON sippeers (host, port);
CREATE TYPE iax_requirecalltoken_values AS ENUM ('yes', 'no', 'auto');
CREATE TYPE iax_encryption_values AS ENUM ('yes', 'no', 'aes128');
CREATE TYPE iax_transfer_values AS ENUM ('yes', 'no', 'mediaonly');
CREATE TABLE iaxfriends (
id SERIAL NOT NULL,
name VARCHAR(40) NOT NULL,
type type_values,
username VARCHAR(40),
mailbox VARCHAR(40),
secret VARCHAR(40),
dbsecret VARCHAR(40),
context VARCHAR(40),
regcontext VARCHAR(40),
host VARCHAR(40),
ipaddr VARCHAR(40),
port INTEGER,
defaultip VARCHAR(20),
sourceaddress VARCHAR(20),
mask VARCHAR(20),
regexten VARCHAR(40),
regseconds INTEGER,
accountcode VARCHAR(20),
mohinterpret VARCHAR(20),
mohsuggest VARCHAR(20),
inkeys VARCHAR(40),
outkeys VARCHAR(40),
language VARCHAR(10),
callerid VARCHAR(100),
cid_number VARCHAR(40),
sendani yes_no_values,
fullname VARCHAR(40),
trunk yes_no_values,
auth VARCHAR(20),
maxauthreq INTEGER,
requirecalltoken iax_requirecalltoken_values,
encryption iax_encryption_values,
transfer iax_transfer_values,
jitterbuffer yes_no_values,
forcejitterbuffer yes_no_values,
disallow VARCHAR(200),
allow VARCHAR(200),
codecpriority VARCHAR(40),
qualify VARCHAR(10),
qualifysmoothing yes_no_values,
qualifyfreqok VARCHAR(10),
qualifyfreqnotok VARCHAR(10),
timezone VARCHAR(20),
adsi yes_no_values,
amaflags VARCHAR(20),
setvar VARCHAR(200),
PRIMARY KEY (id),
UNIQUE (name)
);
CREATE INDEX iaxfriends_name ON iaxfriends (name);
CREATE INDEX iaxfriends_name_host ON iaxfriends (name, host);
CREATE INDEX iaxfriends_name_ipaddr_port ON iaxfriends (name, ipaddr, port);
CREATE INDEX iaxfriends_ipaddr_port ON iaxfriends (ipaddr, port);
CREATE INDEX iaxfriends_host_port ON iaxfriends (host, port);
CREATE TABLE voicemail (
uniqueid SERIAL NOT NULL,
context VARCHAR(80) NOT NULL,
mailbox VARCHAR(80) NOT NULL,
password VARCHAR(80) NOT NULL,
fullname VARCHAR(80),
alias VARCHAR(80),
email VARCHAR(80),
pager VARCHAR(80),
attach yes_no_values,
attachfmt VARCHAR(10),
serveremail VARCHAR(80),
language VARCHAR(20),
tz VARCHAR(30),
deletevoicemail yes_no_values,
saycid yes_no_values,
sendvoicemail yes_no_values,
review yes_no_values,
tempgreetwarn yes_no_values,
operator yes_no_values,
envelope yes_no_values,
sayduration INTEGER,
forcename yes_no_values,
forcegreetings yes_no_values,
callback VARCHAR(80),
dialout VARCHAR(80),
exitcontext VARCHAR(80),
maxmsg INTEGER,
volgain NUMERIC(5, 2),
imapuser VARCHAR(80),
imappassword VARCHAR(80),
imapserver VARCHAR(80),
imapport VARCHAR(8),
imapflags VARCHAR(80),
stamp TIMESTAMP WITHOUT TIME ZONE,
PRIMARY KEY (uniqueid)
);
CREATE INDEX voicemail_mailbox ON voicemail (mailbox);
CREATE INDEX voicemail_context ON voicemail (context);
CREATE INDEX voicemail_mailbox_context ON voicemail (mailbox, context);
CREATE INDEX voicemail_imapuser ON voicemail (imapuser);
CREATE TABLE meetme (
bookid SERIAL NOT NULL,
confno VARCHAR(80) NOT NULL,
starttime TIMESTAMP WITHOUT TIME ZONE,
endtime TIMESTAMP WITHOUT TIME ZONE,
pin VARCHAR(20),
adminpin VARCHAR(20),
opts VARCHAR(20),
adminopts VARCHAR(20),
recordingfilename VARCHAR(80),
recordingformat VARCHAR(10),
maxusers INTEGER,
members INTEGER NOT NULL,
PRIMARY KEY (bookid)
);
CREATE INDEX meetme_confno_start_end ON meetme (confno, starttime, endtime);
CREATE TYPE moh_mode_values AS ENUM ('custom', 'files', 'mp3nb', 'quietmp3nb', 'quietmp3');
CREATE TABLE musiconhold (
name VARCHAR(80) NOT NULL,
mode moh_mode_values,
directory VARCHAR(255),
application VARCHAR(255),
digit VARCHAR(1),
sort VARCHAR(10),
format VARCHAR(10),
stamp TIMESTAMP WITHOUT TIME ZONE,
PRIMARY KEY (name)
);
INSERT INTO alembic_version (version_num) VALUES ('4da0c5f79a9c');
-- Running upgrade 4da0c5f79a9c -> 43956d550a44
CREATE TYPE yesno_values AS ENUM ('yes', 'no');
CREATE TYPE pjsip_connected_line_method_values AS ENUM ('invite', 'reinvite', 'update');
CREATE TYPE pjsip_direct_media_glare_mitigation_values AS ENUM ('none', 'outgoing', 'incoming');
CREATE TYPE pjsip_dtmf_mode_values AS ENUM ('rfc4733', 'inband', 'info');
CREATE TYPE pjsip_identify_by_values AS ENUM ('username');
CREATE TYPE pjsip_timer_values AS ENUM ('forced', 'no', 'required', 'yes');
CREATE TYPE pjsip_cid_privacy_values AS ENUM ('allowed_not_screened', 'allowed_passed_screened', 'allowed_failed_screened', 'allowed', 'prohib_not_screened', 'prohib_passed_screened', 'prohib_failed_screened', 'prohib', 'unavailable');
CREATE TYPE pjsip_100rel_values AS ENUM ('no', 'required', 'yes');
CREATE TYPE pjsip_media_encryption_values AS ENUM ('no', 'sdes', 'dtls');
CREATE TYPE pjsip_t38udptl_ec_values AS ENUM ('none', 'fec', 'redundancy');
CREATE TYPE pjsip_dtls_setup_values AS ENUM ('active', 'passive', 'actpass');
CREATE TABLE ps_endpoints (
id VARCHAR(40) NOT NULL,
transport VARCHAR(40),
aors VARCHAR(200),
auth VARCHAR(40),
context VARCHAR(40),
disallow VARCHAR(200),
allow VARCHAR(200),
direct_media yesno_values,
connected_line_method pjsip_connected_line_method_values,
direct_media_method pjsip_connected_line_method_values,
direct_media_glare_mitigation pjsip_direct_media_glare_mitigation_values,
disable_direct_media_on_nat yesno_values,
dtmf_mode pjsip_dtmf_mode_values,
external_media_address VARCHAR(40),
force_rport yesno_values,
ice_support yesno_values,
identify_by pjsip_identify_by_values,
mailboxes VARCHAR(40),
moh_suggest VARCHAR(40),
outbound_auth VARCHAR(40),
outbound_proxy VARCHAR(40),
rewrite_contact yesno_values,
rtp_ipv6 yesno_values,
rtp_symmetric yesno_values,
send_diversion yesno_values,
send_pai yesno_values,
send_rpid yesno_values,
timers_min_se INTEGER,
timers pjsip_timer_values,
timers_sess_expires INTEGER,
callerid VARCHAR(40),
callerid_privacy pjsip_cid_privacy_values,
callerid_tag VARCHAR(40),
"100rel" pjsip_100rel_values,
aggregate_mwi yesno_values,
trust_id_inbound yesno_values,
trust_id_outbound yesno_values,
use_ptime yesno_values,
use_avpf yesno_values,
media_encryption pjsip_media_encryption_values,
inband_progress yesno_values,
call_group VARCHAR(40),
pickup_group VARCHAR(40),
named_call_group VARCHAR(40),
named_pickup_group VARCHAR(40),
device_state_busy_at INTEGER,
fax_detect yesno_values,
t38_udptl yesno_values,
t38_udptl_ec pjsip_t38udptl_ec_values,
t38_udptl_maxdatagram INTEGER,
t38_udptl_nat yesno_values,
t38_udptl_ipv6 yesno_values,
tone_zone VARCHAR(40),
language VARCHAR(40),
one_touch_recording yesno_values,
record_on_feature VARCHAR(40),
record_off_feature VARCHAR(40),
rtp_engine VARCHAR(40),
allow_transfer yesno_values,
allow_subscribe yesno_values,
sdp_owner VARCHAR(40),
sdp_session VARCHAR(40),
tos_audio INTEGER,
tos_video INTEGER,
cos_audio INTEGER,
cos_video INTEGER,
sub_min_expiry INTEGER,
from_domain VARCHAR(40),
from_user VARCHAR(40),
mwi_fromuser VARCHAR(40),
dtls_verify VARCHAR(40),
dtls_rekey VARCHAR(40),
dtls_cert_file VARCHAR(200),
dtls_private_key VARCHAR(200),
dtls_cipher VARCHAR(200),
dtls_ca_file VARCHAR(200),
dtls_ca_path VARCHAR(200),
dtls_setup pjsip_dtls_setup_values,
srtp_tag_32 yesno_values,
UNIQUE (id)
);
CREATE INDEX ps_endpoints_id ON ps_endpoints (id);
CREATE TYPE pjsip_auth_type_values AS ENUM ('md5', 'userpass');
CREATE TABLE ps_auths (
id VARCHAR(40) NOT NULL,
auth_type pjsip_auth_type_values,
nonce_lifetime INTEGER,
md5_cred VARCHAR(40),
password VARCHAR(80),
realm VARCHAR(40),
username VARCHAR(40),
UNIQUE (id)
);
CREATE INDEX ps_auths_id ON ps_auths (id);
CREATE TABLE ps_aors (
id VARCHAR(40) NOT NULL,
contact VARCHAR(40),
default_expiration INTEGER,
mailboxes VARCHAR(80),
max_contacts INTEGER,
minimum_expiration INTEGER,
remove_existing yesno_values,
qualify_frequency INTEGER,
authenticate_qualify yesno_values,
UNIQUE (id)
);
CREATE INDEX ps_aors_id ON ps_aors (id);
CREATE TABLE ps_contacts (
id VARCHAR(40) NOT NULL,
uri VARCHAR(40),
expiration_time VARCHAR(40),
qualify_frequency INTEGER,
UNIQUE (id)
);
CREATE INDEX ps_contacts_id ON ps_contacts (id);
CREATE TABLE ps_domain_aliases (
id VARCHAR(40) NOT NULL,
domain VARCHAR(80),
UNIQUE (id)
);
CREATE INDEX ps_domain_aliases_id ON ps_domain_aliases (id);
CREATE TABLE ps_endpoint_id_ips (
id VARCHAR(40) NOT NULL,
endpoint VARCHAR(40),
match VARCHAR(80),
UNIQUE (id)
);
CREATE INDEX ps_endpoint_id_ips_id ON ps_endpoint_id_ips (id);
UPDATE alembic_version SET version_num='43956d550a44' WHERE alembic_version.version_num = '4da0c5f79a9c';
-- Running upgrade 43956d550a44 -> 581a4264e537
CREATE TABLE extensions (
id BIGSERIAL NOT NULL,
context VARCHAR(40) NOT NULL,
exten VARCHAR(40) NOT NULL,
priority INTEGER NOT NULL,
app VARCHAR(40) NOT NULL,
appdata VARCHAR(256) NOT NULL,
PRIMARY KEY (id, context, exten, priority),
UNIQUE (id)
);
UPDATE alembic_version SET version_num='581a4264e537' WHERE alembic_version.version_num = '43956d550a44';
-- Running upgrade 581a4264e537 -> 2fc7930b41b3
CREATE TYPE pjsip_redirect_method_values AS ENUM ('user', 'uri_core', 'uri_pjsip');
CREATE TABLE ps_systems (
id VARCHAR(40) NOT NULL,
timer_t1 INTEGER,
timer_b INTEGER,
compact_headers yesno_values,
threadpool_initial_size INTEGER,
threadpool_auto_increment INTEGER,
threadpool_idle_timeout INTEGER,
threadpool_max_size INTEGER,
UNIQUE (id)
);
CREATE INDEX ps_systems_id ON ps_systems (id);
CREATE TABLE ps_globals (
id VARCHAR(40) NOT NULL,
max_forwards INTEGER,
user_agent VARCHAR(40),
default_outbound_endpoint VARCHAR(40),
UNIQUE (id)
);
CREATE INDEX ps_globals_id ON ps_globals (id);
CREATE TYPE pjsip_transport_method_values AS ENUM ('default', 'unspecified', 'tlsv1', 'sslv2', 'sslv3', 'sslv23');
CREATE TYPE pjsip_transport_protocol_values AS ENUM ('udp', 'tcp', 'tls', 'ws', 'wss');
CREATE TABLE ps_transports (
id VARCHAR(40) NOT NULL,
async_operations INTEGER,
bind VARCHAR(40),
ca_list_file VARCHAR(200),
cert_file VARCHAR(200),
cipher VARCHAR(200),
domain VARCHAR(40),
external_media_address VARCHAR(40),
external_signaling_address VARCHAR(40),
external_signaling_port INTEGER,
method pjsip_transport_method_values,
local_net VARCHAR(40),
password VARCHAR(40),
priv_key_file VARCHAR(200),
protocol pjsip_transport_protocol_values,
require_client_cert yesno_values,
verify_client yesno_values,
verifiy_server yesno_values,
tos yesno_values,
cos yesno_values,
UNIQUE (id)
);
CREATE INDEX ps_transports_id ON ps_transports (id);
CREATE TABLE ps_registrations (
id VARCHAR(40) NOT NULL,
auth_rejection_permanent yesno_values,
client_uri VARCHAR(40),
contact_user VARCHAR(40),
expiration INTEGER,
max_retries INTEGER,
outbound_auth VARCHAR(40),
outbound_proxy VARCHAR(40),
retry_interval INTEGER,
forbidden_retry_interval INTEGER,
server_uri VARCHAR(40),
transport VARCHAR(40),
support_path yesno_values,
UNIQUE (id)
);
CREATE INDEX ps_registrations_id ON ps_registrations (id);
ALTER TABLE ps_endpoints ADD COLUMN media_address VARCHAR(40);
ALTER TABLE ps_endpoints ADD COLUMN redirect_method pjsip_redirect_method_values;
ALTER TABLE ps_endpoints ADD COLUMN set_var TEXT;
ALTER TABLE ps_endpoints RENAME mwi_fromuser TO mwi_from_user;
ALTER TABLE ps_contacts ADD COLUMN outbound_proxy VARCHAR(40);
ALTER TABLE ps_contacts ADD COLUMN path TEXT;
ALTER TABLE ps_aors ADD COLUMN maximum_expiration INTEGER;
ALTER TABLE ps_aors ADD COLUMN outbound_proxy VARCHAR(40);
ALTER TABLE ps_aors ADD COLUMN support_path yesno_values;
UPDATE alembic_version SET version_num='2fc7930b41b3' WHERE alembic_version.version_num = '581a4264e537';
-- Running upgrade 2fc7930b41b3 -> 21e526ad3040
ALTER TABLE ps_globals ADD COLUMN debug VARCHAR(40);
UPDATE alembic_version SET version_num='21e526ad3040' WHERE alembic_version.version_num = '2fc7930b41b3';
-- Running upgrade 21e526ad3040 -> 28887f25a46f
CREATE TYPE queue_autopause_values AS ENUM ('yes', 'no', 'all');
CREATE TYPE queue_strategy_values AS ENUM ('ringall', 'leastrecent', 'fewestcalls', 'random', 'rrmemory', 'linear', 'wrandom', 'rrordered');
CREATE TABLE queues (
name VARCHAR(128) NOT NULL,
musiconhold VARCHAR(128),
announce VARCHAR(128),
context VARCHAR(128),
timeout INTEGER,
ringinuse yesno_values,
setinterfacevar yesno_values,
setqueuevar yesno_values,
setqueueentryvar yesno_values,
monitor_format VARCHAR(8),
membermacro VARCHAR(512),
membergosub VARCHAR(512),
queue_youarenext VARCHAR(128),
queue_thereare VARCHAR(128),
queue_callswaiting VARCHAR(128),
queue_quantity1 VARCHAR(128),
queue_quantity2 VARCHAR(128),
queue_holdtime VARCHAR(128),
queue_minutes VARCHAR(128),
queue_minute VARCHAR(128),
queue_seconds VARCHAR(128),
queue_thankyou VARCHAR(128),
queue_callerannounce VARCHAR(128),
queue_reporthold VARCHAR(128),
announce_frequency INTEGER,
announce_to_first_user yesno_values,
min_announce_frequency INTEGER,
announce_round_seconds INTEGER,
announce_holdtime VARCHAR(128),
announce_position VARCHAR(128),
announce_position_limit INTEGER,
periodic_announce VARCHAR(50),
periodic_announce_frequency INTEGER,
relative_periodic_announce yesno_values,
random_periodic_announce yesno_values,
retry INTEGER,
wrapuptime INTEGER,
penaltymemberslimit INTEGER,
autofill yesno_values,
monitor_type VARCHAR(128),
autopause queue_autopause_values,
autopausedelay INTEGER,
autopausebusy yesno_values,
autopauseunavail yesno_values,
maxlen INTEGER,
servicelevel INTEGER,
strategy queue_strategy_values,
joinempty VARCHAR(128),
leavewhenempty VARCHAR(128),
reportholdtime yesno_values,
memberdelay INTEGER,
weight INTEGER,
timeoutrestart yesno_values,
defaultrule VARCHAR(128),
timeoutpriority VARCHAR(128),
PRIMARY KEY (name)
);
CREATE TABLE queue_members (
queue_name VARCHAR(80) NOT NULL,
interface VARCHAR(80) NOT NULL,
uniqueid VARCHAR(80) NOT NULL,
membername VARCHAR(80),
state_interface VARCHAR(80),
penalty INTEGER,
paused INTEGER,
PRIMARY KEY (queue_name, interface)
);
UPDATE alembic_version SET version_num='28887f25a46f' WHERE alembic_version.version_num = '21e526ad3040';
-- Running upgrade 28887f25a46f -> 4c573e7135bd
ALTER TABLE ps_endpoints ALTER COLUMN tos_audio TYPE VARCHAR(10);
ALTER TABLE ps_endpoints ALTER COLUMN tos_video TYPE VARCHAR(10);
ALTER TABLE ps_endpoints DROP COLUMN cos_audio;
ALTER TABLE ps_endpoints DROP COLUMN cos_video;
ALTER TABLE ps_endpoints ADD COLUMN cos_audio INTEGER;
ALTER TABLE ps_endpoints ADD COLUMN cos_video INTEGER;
ALTER TABLE ps_transports ALTER COLUMN tos TYPE VARCHAR(10);
ALTER TABLE ps_transports DROP COLUMN cos;
ALTER TABLE ps_transports ADD COLUMN cos INTEGER;
UPDATE alembic_version SET version_num='4c573e7135bd' WHERE alembic_version.version_num = '28887f25a46f';
-- Running upgrade 4c573e7135bd -> 3855ee4e5f85
ALTER TABLE ps_endpoints ADD COLUMN message_context VARCHAR(40);
ALTER TABLE ps_contacts ADD COLUMN user_agent VARCHAR(40);
UPDATE alembic_version SET version_num='3855ee4e5f85' WHERE alembic_version.version_num = '4c573e7135bd';
-- Running upgrade 3855ee4e5f85 -> e96a0b8071c
ALTER TABLE ps_globals ALTER COLUMN user_agent TYPE VARCHAR(255);
ALTER TABLE ps_contacts ALTER COLUMN id TYPE VARCHAR(255);
ALTER TABLE ps_contacts ALTER COLUMN uri TYPE VARCHAR(255);
ALTER TABLE ps_contacts ALTER COLUMN user_agent TYPE VARCHAR(255);
ALTER TABLE ps_registrations ALTER COLUMN client_uri TYPE VARCHAR(255);
ALTER TABLE ps_registrations ALTER COLUMN server_uri TYPE VARCHAR(255);
UPDATE alembic_version SET version_num='e96a0b8071c' WHERE alembic_version.version_num = '3855ee4e5f85';
-- Running upgrade e96a0b8071c -> c6d929b23a8
CREATE TABLE ps_subscription_persistence (
id VARCHAR(40) NOT NULL,
packet VARCHAR(2048),
src_name VARCHAR(128),
src_port INTEGER,
transport_key VARCHAR(64),
local_name VARCHAR(128),
local_port INTEGER,
cseq INTEGER,
tag VARCHAR(128),
endpoint VARCHAR(40),
expires INTEGER,
UNIQUE (id)
);
CREATE INDEX ps_subscription_persistence_id ON ps_subscription_persistence (id);
UPDATE alembic_version SET version_num='c6d929b23a8' WHERE alembic_version.version_num = 'e96a0b8071c';
-- Running upgrade c6d929b23a8 -> 51f8cb66540e
ALTER TABLE ps_endpoints ADD COLUMN force_avp yesno_values;
ALTER TABLE ps_endpoints ADD COLUMN media_use_received_transport yesno_values;
UPDATE alembic_version SET version_num='51f8cb66540e' WHERE alembic_version.version_num = 'c6d929b23a8';
-- Running upgrade 51f8cb66540e -> 1d50859ed02e
ALTER TABLE ps_endpoints ADD COLUMN accountcode VARCHAR(20);
UPDATE alembic_version SET version_num='1d50859ed02e' WHERE alembic_version.version_num = '51f8cb66540e';
-- Running upgrade 1d50859ed02e -> 1758e8bbf6b
ALTER TABLE sippeers ALTER COLUMN useragent TYPE VARCHAR(255);
UPDATE alembic_version SET version_num='1758e8bbf6b' WHERE alembic_version.version_num = '1d50859ed02e';
-- Running upgrade 1758e8bbf6b -> 5139253c0423
ALTER TABLE queue_members DROP COLUMN uniqueid;
ALTER TABLE queue_members ADD COLUMN uniqueid INTEGER NOT NULL;
ALTER TABLE queue_members ADD UNIQUE (uniqueid);
UPDATE alembic_version SET version_num='5139253c0423' WHERE alembic_version.version_num = '1758e8bbf6b';
-- Running upgrade 5139253c0423 -> d39508cb8d8
CREATE TABLE queue_rules (
rule_name VARCHAR(80) NOT NULL,
time VARCHAR(32) NOT NULL,
min_penalty VARCHAR(32) NOT NULL,
max_penalty VARCHAR(32) NOT NULL
);
UPDATE alembic_version SET version_num='d39508cb8d8' WHERE alembic_version.version_num = '5139253c0423';
-- Running upgrade d39508cb8d8 -> 5950038a6ead
ALTER TABLE ps_transports ALTER COLUMN verifiy_server TYPE yesno_values;
ALTER TABLE ps_transports RENAME verifiy_server TO verify_server;
UPDATE alembic_version SET version_num='5950038a6ead' WHERE alembic_version.version_num = 'd39508cb8d8';
-- Running upgrade 5950038a6ead -> 10aedae86a32
CREATE TYPE sip_directmedia_values_v2 AS ENUM ('yes', 'no', 'nonat', 'update', 'outgoing');
ALTER TABLE sippeers ALTER COLUMN directmedia TYPE sip_directmedia_values_v2 USING directmedia::text::sip_directmedia_values_v2;
DROP TYPE sip_directmedia_values;
UPDATE alembic_version SET version_num='10aedae86a32' WHERE alembic_version.version_num = '5950038a6ead';
-- Running upgrade 10aedae86a32 -> eb88a14f2a
ALTER TABLE ps_endpoints ADD COLUMN media_encryption_optimistic yesno_values;
UPDATE alembic_version SET version_num='eb88a14f2a' WHERE alembic_version.version_num = '10aedae86a32';
-- Running upgrade eb88a14f2a -> 371a3bf4143e
ALTER TABLE ps_endpoints ADD COLUMN user_eq_phone yesno_values;
UPDATE alembic_version SET version_num='371a3bf4143e' WHERE alembic_version.version_num = 'eb88a14f2a';
-- Running upgrade 371a3bf4143e -> 45e3f47c6c44
ALTER TABLE ps_globals ADD COLUMN endpoint_identifier_order VARCHAR(40);
UPDATE alembic_version SET version_num='45e3f47c6c44' WHERE alembic_version.version_num = '371a3bf4143e';
-- Running upgrade 45e3f47c6c44 -> 23530d604b96
ALTER TABLE ps_endpoints ADD COLUMN rpid_immediate yesno_values;
UPDATE alembic_version SET version_num='23530d604b96' WHERE alembic_version.version_num = '45e3f47c6c44';
-- Running upgrade 23530d604b96 -> 31cd4f4891ec
CREATE TYPE pjsip_dtmf_mode_values_v2 AS ENUM ('rfc4733', 'inband', 'info', 'auto');
ALTER TABLE ps_endpoints ALTER COLUMN dtmf_mode TYPE pjsip_dtmf_mode_values_v2 USING dtmf_mode::text::pjsip_dtmf_mode_values_v2;
DROP TYPE pjsip_dtmf_mode_values;
UPDATE alembic_version SET version_num='31cd4f4891ec' WHERE alembic_version.version_num = '23530d604b96';
-- Running upgrade 31cd4f4891ec -> 461d7d691209
ALTER TABLE ps_aors ADD COLUMN qualify_timeout INTEGER;
ALTER TABLE ps_contacts ADD COLUMN qualify_timeout INTEGER;
UPDATE alembic_version SET version_num='461d7d691209' WHERE alembic_version.version_num = '31cd4f4891ec';
-- Running upgrade 461d7d691209 -> a541e0b5e89
ALTER TABLE ps_globals ADD COLUMN max_initial_qualify_time INTEGER;
UPDATE alembic_version SET version_num='a541e0b5e89' WHERE alembic_version.version_num = '461d7d691209';
-- Running upgrade a541e0b5e89 -> 28b8e71e541f
ALTER TABLE ps_endpoints ADD COLUMN g726_non_standard yesno_values;
UPDATE alembic_version SET version_num='28b8e71e541f' WHERE alembic_version.version_num = 'a541e0b5e89';
-- Running upgrade 28b8e71e541f -> 498357a710ae
ALTER TABLE ps_endpoints ADD COLUMN rtp_keepalive INTEGER;
UPDATE alembic_version SET version_num='498357a710ae' WHERE alembic_version.version_num = '28b8e71e541f';
-- Running upgrade 498357a710ae -> 26f10cadc157
ALTER TABLE ps_endpoints ADD COLUMN rtp_timeout INTEGER;
ALTER TABLE ps_endpoints ADD COLUMN rtp_timeout_hold INTEGER;
UPDATE alembic_version SET version_num='26f10cadc157' WHERE alembic_version.version_num = '498357a710ae';
-- Running upgrade 26f10cadc157 -> 154177371065
ALTER TABLE ps_globals ADD COLUMN default_from_user VARCHAR(80);
UPDATE alembic_version SET version_num='154177371065' WHERE alembic_version.version_num = '26f10cadc157';
-- Running upgrade 154177371065 -> 28ce1e718f05
ALTER TABLE ps_registrations ADD COLUMN fatal_retry_interval INTEGER;
UPDATE alembic_version SET version_num='28ce1e718f05' WHERE alembic_version.version_num = '154177371065';
-- Running upgrade 28ce1e718f05 -> 189a235b3fd7
ALTER TABLE ps_globals ADD COLUMN keep_alive_interval INTEGER;
UPDATE alembic_version SET version_num='189a235b3fd7' WHERE alembic_version.version_num = '28ce1e718f05';
-- Running upgrade 189a235b3fd7 -> 2d078ec071b7
ALTER TABLE ps_aors ALTER COLUMN contact TYPE VARCHAR(255);
UPDATE alembic_version SET version_num='2d078ec071b7' WHERE alembic_version.version_num = '189a235b3fd7';
-- Running upgrade 2d078ec071b7 -> 26d7f3bf0fa5
ALTER TABLE ps_endpoints ADD COLUMN bind_rtp_to_media_address yesno_values;
UPDATE alembic_version SET version_num='26d7f3bf0fa5' WHERE alembic_version.version_num = '2d078ec071b7';
-- Running upgrade 26d7f3bf0fa5 -> 136885b81223
ALTER TABLE ps_globals ADD COLUMN regcontext VARCHAR(80);
UPDATE alembic_version SET version_num='136885b81223' WHERE alembic_version.version_num = '26d7f3bf0fa5';
-- Running upgrade 136885b81223 -> 423f34ad36e2
ALTER TABLE ps_aors ALTER COLUMN qualify_timeout TYPE FLOAT;
ALTER TABLE ps_contacts ALTER COLUMN qualify_timeout TYPE FLOAT;
UPDATE alembic_version SET version_num='423f34ad36e2' WHERE alembic_version.version_num = '136885b81223';
-- Running upgrade 423f34ad36e2 -> dbc44d5a908
ALTER TABLE ps_systems ADD COLUMN disable_tcp_switch yesno_values;
ALTER TABLE ps_registrations ADD COLUMN line yesno_values;
ALTER TABLE ps_registrations ADD COLUMN endpoint VARCHAR(40);
UPDATE alembic_version SET version_num='dbc44d5a908' WHERE alembic_version.version_num = '423f34ad36e2';
-- Running upgrade dbc44d5a908 -> 3bcc0b5bc2c9
ALTER TABLE ps_transports ADD COLUMN allow_reload yesno_values;
UPDATE alembic_version SET version_num='3bcc0b5bc2c9' WHERE alembic_version.version_num = 'dbc44d5a908';
-- Running upgrade 3bcc0b5bc2c9 -> 5813202e92be
ALTER TABLE ps_globals ADD COLUMN contact_expiration_check_interval INTEGER;
UPDATE alembic_version SET version_num='5813202e92be' WHERE alembic_version.version_num = '3bcc0b5bc2c9';
-- Running upgrade 5813202e92be -> 1c688d9a003c
ALTER TABLE ps_globals ADD COLUMN default_voicemail_extension VARCHAR(40);
ALTER TABLE ps_aors ADD COLUMN voicemail_extension VARCHAR(40);
ALTER TABLE ps_endpoints ADD COLUMN voicemail_extension VARCHAR(40);
ALTER TABLE ps_endpoints ADD COLUMN mwi_subscribe_replaces_unsolicited INTEGER;
UPDATE alembic_version SET version_num='1c688d9a003c' WHERE alembic_version.version_num = '5813202e92be';
-- Running upgrade 1c688d9a003c -> 8d478ab86e29
ALTER TABLE ps_globals ADD COLUMN disable_multi_domain yesno_values;
UPDATE alembic_version SET version_num='8d478ab86e29' WHERE alembic_version.version_num = '1c688d9a003c';
-- Running upgrade 8d478ab86e29 -> 65eb22eb195
ALTER TABLE ps_globals ADD COLUMN unidentified_request_count INTEGER;
ALTER TABLE ps_globals ADD COLUMN unidentified_request_period INTEGER;
ALTER TABLE ps_globals ADD COLUMN unidentified_request_prune_interval INTEGER;
ALTER TABLE ps_globals ADD COLUMN default_realm VARCHAR(40);
UPDATE alembic_version SET version_num='65eb22eb195' WHERE alembic_version.version_num = '8d478ab86e29';
-- Running upgrade 65eb22eb195 -> 81b01a191a46
ALTER TABLE ps_contacts ADD COLUMN reg_server VARCHAR(20);
ALTER TABLE ps_contacts ADD CONSTRAINT ps_contacts_uq UNIQUE (id, reg_server);
UPDATE alembic_version SET version_num='81b01a191a46' WHERE alembic_version.version_num = '65eb22eb195';
-- Running upgrade 81b01a191a46 -> 6be31516058d
ALTER TABLE ps_contacts ADD COLUMN authenticate_qualify yesno_values;
UPDATE alembic_version SET version_num='6be31516058d' WHERE alembic_version.version_num = '81b01a191a46';
-- Running upgrade 6be31516058d -> bca7113d796f
ALTER TABLE ps_endpoints ADD COLUMN deny VARCHAR(95);
ALTER TABLE ps_endpoints ADD COLUMN permit VARCHAR(95);
ALTER TABLE ps_endpoints ADD COLUMN acl VARCHAR(40);
ALTER TABLE ps_endpoints ADD COLUMN contact_deny VARCHAR(95);
ALTER TABLE ps_endpoints ADD COLUMN contact_permit VARCHAR(95);
ALTER TABLE ps_endpoints ADD COLUMN contact_acl VARCHAR(40);
UPDATE alembic_version SET version_num='bca7113d796f' WHERE alembic_version.version_num = '6be31516058d';
-- Running upgrade bca7113d796f -> a845e4d8ade8
ALTER TABLE ps_contacts ADD COLUMN via_addr VARCHAR(40);
ALTER TABLE ps_contacts ADD COLUMN via_port INTEGER;
ALTER TABLE ps_contacts ADD COLUMN call_id VARCHAR(255);
UPDATE alembic_version SET version_num='a845e4d8ade8' WHERE alembic_version.version_num = 'bca7113d796f';
COMMIT;

View File

@@ -0,0 +1,38 @@
BEGIN;
CREATE TABLE alembic_version (
version_num VARCHAR(32) NOT NULL
);
-- Running upgrade -> a2e9769475e
CREATE TABLE voicemail_messages (
dir VARCHAR(255) NOT NULL,
msgnum INTEGER NOT NULL,
context VARCHAR(80),
macrocontext VARCHAR(80),
callerid VARCHAR(80),
origtime INTEGER,
duration INTEGER,
recording BYTEA,
flag VARCHAR(30),
category VARCHAR(30),
mailboxuser VARCHAR(30),
mailboxcontext VARCHAR(30),
msg_id VARCHAR(40)
);
ALTER TABLE voicemail_messages ADD CONSTRAINT voicemail_messages_dir_msgnum PRIMARY KEY (dir, msgnum);
CREATE INDEX voicemail_messages_dir ON voicemail_messages (dir);
INSERT INTO alembic_version (version_num) VALUES ('a2e9769475e');
-- Running upgrade a2e9769475e -> 39428242f7f5
ALTER TABLE voicemail_messages ALTER COLUMN recording TYPE BYTEA;
UPDATE alembic_version SET version_num='39428242f7f5' WHERE alembic_version.version_num = 'a2e9769475e';
COMMIT;

View File

@@ -388,9 +388,25 @@ static struct odbc_obj *get_odbc_obj(const char *dsn_name, struct dsn **dsn)
static inline void release_obj_or_dsn(struct odbc_obj **obj, struct dsn **dsn)
{
if (dsn && *dsn) {
/* If multiple connections are not enabled then the guarantee
* of a single connection already exists and holding on to the
* connection would prevent any other user from acquiring it
* indefinitely.
*/
if (ast_odbc_get_max_connections((*dsn)->name) < 2) {
ast_odbc_release_obj((*dsn)->connection);
(*dsn)->connection = NULL;
}
ao2_unlock(*dsn);
ao2_ref(*dsn, -1);
*dsn = NULL;
/* Some callers may provide both an obj and dsn. To ensure that
* the connection is not released twice we set it to NULL here if
* present.
*/
if (obj) {
*obj = NULL;
}
} else if (obj && *obj) {
ast_odbc_release_obj(*obj);
*obj = NULL;

View File

@@ -77,8 +77,6 @@ struct ast_codec {
unsigned int smooth;
/*! \brief The module that registered this codec */
struct ast_module *mod;
/*! \brief A format name for a default sane format using this codec */
const char *format_name;
};
/*!

View File

@@ -243,4 +243,9 @@ int ast_odbc_text2isolation(const char *txt);
*/
const char *ast_odbc_isolation2text(int iso);
/*!
* \brief Return the current configured maximum number of connections for a class
*/
unsigned int ast_odbc_get_max_connections(const char *name);
#endif /* _ASTERISK_RES_ODBC_H */

View File

@@ -269,7 +269,6 @@ enum ast_sip_contact_status_type {
UNKNOWN,
CREATED,
REMOVED,
UPDATED,
};
/*!
@@ -292,6 +291,8 @@ struct ast_sip_contact_status {
char *aor;
/*! The original contact's URI */
char *uri;
/*! TRUE if the contact was refreshed. e.g., re-registered */
unsigned int refresh:1;
};
/*!

View File

@@ -49,6 +49,32 @@ static int codec_id = 1;
/*! \brief Registered codecs */
static struct ao2_container *codecs;
/*!
* \internal
* \brief Internal codec structure
*
* External codecs won't know about the format_name field so the public
* ast_codec structure has to leave it out. This structure will be used
* for the internal codecs.
*
*/
struct internal_ast_codec {
/*! \brief Public codec structure. Must remain first. */
struct ast_codec external;
/*! \brief A format name for a default sane format using this codec */
const char *format_name;
};
/*!
* \internal
* \brief Internal function for registration with format name
*
* This function is only used by codec.c and codec_builtin.c and
* will be removed in Asterisk 14
*/
int __ast_codec_register_with_format(struct ast_codec *codec, const char *format_name,
struct ast_module *mod);
static int codec_hash(const void *obj, int flags)
{
const struct ast_codec *codec;
@@ -113,7 +139,7 @@ static int codec_cmp(void *obj, void *arg, int flags)
static char *show_codecs(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
struct ao2_iterator i;
struct ast_codec *codec;
struct internal_ast_codec *codec;
switch (cmd) {
case CLI_INIT:
@@ -144,19 +170,19 @@ static char *show_codecs(struct ast_cli_entry *e, int cmd, struct ast_cli_args *
for (; (codec = ao2_iterator_next(&i)); ao2_ref(codec, -1)) {
if (a->argc == 4) {
if (!strcasecmp(a->argv[3], "audio")) {
if (codec->type != AST_MEDIA_TYPE_AUDIO) {
if (codec->external.type != AST_MEDIA_TYPE_AUDIO) {
continue;
}
} else if (!strcasecmp(a->argv[3], "video")) {
if (codec->type != AST_MEDIA_TYPE_VIDEO) {
if (codec->external.type != AST_MEDIA_TYPE_VIDEO) {
continue;
}
} else if (!strcasecmp(a->argv[3], "image")) {
if (codec->type != AST_MEDIA_TYPE_IMAGE) {
if (codec->external.type != AST_MEDIA_TYPE_IMAGE) {
continue;
}
} else if (!strcasecmp(a->argv[3], "text")) {
if (codec->type != AST_MEDIA_TYPE_TEXT) {
if (codec->external.type != AST_MEDIA_TYPE_TEXT) {
continue;
}
} else {
@@ -165,11 +191,11 @@ static char *show_codecs(struct ast_cli_entry *e, int cmd, struct ast_cli_args *
}
ast_cli(a->fd, "%8u %-5s %-12s %-16s (%s)\n",
codec->id,
ast_codec_media_type2str(codec->type),
codec->name,
codec->external.id,
ast_codec_media_type2str(codec->external.type),
codec->external.name,
S_OR(codec->format_name, "no cached format"),
codec->description);
codec->external.description);
}
ao2_iterator_destroy(&i);
@@ -190,7 +216,7 @@ static int codec_id_cmp(void *obj, void *arg, int flags)
static char *show_codec(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
int type_punned_codec;
struct ast_codec *codec;
struct internal_ast_codec *codec;
switch (cmd) {
case CLI_INIT:
@@ -217,7 +243,7 @@ static char *show_codec(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a
return CLI_SUCCESS;
}
ast_cli(a->fd, "%11u %s (%s)\n", (unsigned int) codec->id, codec->description,
ast_cli(a->fd, "%11u %s (%s)\n", (unsigned int) codec->external.id, codec->external.description,
S_OR(codec->format_name, "no format"));
ao2_ref(codec, -1);
@@ -262,9 +288,14 @@ static void codec_dtor(void *obj)
}
int __ast_codec_register(struct ast_codec *codec, struct ast_module *mod)
{
return __ast_codec_register_with_format(codec, NULL, mod);
}
int __ast_codec_register_with_format(struct ast_codec *codec, const char *format_name, struct ast_module *mod)
{
SCOPED_AO2WRLOCK(lock, codecs);
struct ast_codec *codec_new;
struct internal_ast_codec *codec_new;
/* Some types have specific requirements */
if (codec->type == AST_MEDIA_TYPE_UNKNOWN) {
@@ -293,8 +324,9 @@ int __ast_codec_register(struct ast_codec *codec, struct ast_module *mod)
codec->name, ast_codec_media_type2str(codec->type), codec->sample_rate);
return -1;
}
*codec_new = *codec;
codec_new->id = codec_id++;
codec_new->external = *codec;
codec_new->format_name = format_name;
codec_new->external.id = codec_id++;
ao2_link_flags(codecs, codec_new, OBJ_NOLOCK);
@@ -302,7 +334,7 @@ int __ast_codec_register(struct ast_codec *codec, struct ast_module *mod)
ast_module_shutdown_ref(mod);
ast_verb(2, "Registered '%s' codec '%s' at sample rate '%u' with id '%u'\n",
ast_codec_media_type2str(codec->type), codec->name, codec->sample_rate, codec_new->id);
ast_codec_media_type2str(codec->type), codec->name, codec->sample_rate, codec_new->external.id);
ao2_ref(codec_new, -1);

View File

@@ -38,6 +38,9 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/format_cache.h"
#include "asterisk/frame.h"
int __ast_codec_register_with_format(struct ast_codec *codec, const char *format_name,
struct ast_module *mod);
enum frame_type {
TYPE_HIGH, /* 0x0 */
TYPE_LOW, /* 0x1 */
@@ -774,8 +777,7 @@ static struct ast_codec t140 = {
int __res_ ## __LINE__ = 0; \
struct ast_format *__fmt_ ## __LINE__; \
struct ast_codec *__codec_ ## __LINE__; \
codec.format_name = (codec).name; \
res |= __ast_codec_register(&(codec), NULL); \
res |= __ast_codec_register_with_format(&(codec), (codec).name, NULL); \
__codec_ ## __LINE__ = ast_codec_get((codec).name, (codec).type, (codec).sample_rate); \
__fmt_ ## __LINE__ = __codec_ ## __LINE__ ? ast_format_create(__codec_ ## __LINE__) : NULL; \
res |= ast_format_cache_set(__fmt_ ## __LINE__); \
@@ -789,8 +791,7 @@ static struct ast_codec t140 = {
int __res_ ## __LINE__ = 0; \
struct ast_format *__fmt_ ## __LINE__; \
struct ast_codec *__codec_ ## __LINE__; \
codec.format_name = fmt_name; \
res |= __ast_codec_register(&(codec), NULL); \
res |= __ast_codec_register_with_format(&(codec), fmt_name, NULL); \
__codec_ ## __LINE__ = ast_codec_get((codec).name, (codec).type, (codec).sample_rate); \
__fmt_ ## __LINE__ = ast_format_create_named((fmt_name), __codec_ ## __LINE__); \
res |= ast_format_cache_set(__fmt_ ## __LINE__); \

View File

@@ -744,6 +744,22 @@ static int aoro2_class_cb(void *obj, void *arg, int flags)
return 0;
}
unsigned int ast_odbc_get_max_connections(const char *name)
{
struct odbc_class *class;
unsigned int max_connections;
class = ao2_callback(class_container, 0, aoro2_class_cb, (char *) name);
if (!class) {
return 0;
}
max_connections = class->maxconnections;
ao2_ref(class, -1);
return max_connections;
}
/*
* \brief Determine if the connection has died.
*

View File

@@ -58,6 +58,40 @@ static int persistent_endpoint_cmp(void *obj, void *arg, int flags)
return !strcmp(ast_endpoint_get_resource(persistent1->endpoint), id) ? CMP_MATCH | CMP_STOP : 0;
}
static void endpoint_publish_contact_status(struct ast_endpoint *endpoint, struct ast_sip_contact_status *contact)
{
struct ast_json *blob;
char rtt[32];
snprintf(rtt, sizeof(rtt), "%" PRId64, contact->rtt);
blob = ast_json_pack("{s: s, s: s, s: s, s: s, s: s}",
"contact_status", ast_sip_get_contact_status_label(contact->status),
"aor", contact->aor,
"uri", contact->uri,
"roundtrip_usec", rtt,
"endpoint_name", ast_endpoint_get_resource(endpoint));
if (blob) {
ast_endpoint_blob_publish(endpoint, ast_endpoint_contact_state_type(), blob);
ast_json_unref(blob);
}
}
/*! \brief Callback function for publishing the status of an endpoint */
static int persistent_endpoint_publish_status(void *obj, void *arg, int flags)
{
struct sip_persistent_endpoint *persistent = obj;
struct ast_endpoint *endpoint = persistent->endpoint;
struct ast_sip_contact_status *status = arg;
/* If the status' aor isn't one of the endpoint's, we skip */
if (!strstr(persistent->aors, status->aor)) {
return 0;
}
endpoint_publish_contact_status(endpoint, status);
return 0;
}
/*! \brief Callback function for changing the state of an endpoint */
static int persistent_endpoint_update_state(void *obj, void *arg, int flags)
{
@@ -72,22 +106,12 @@ static int persistent_endpoint_update_state(void *obj, void *arg, int flags)
char *regcontext;
if (status) {
char rtt[32];
/* If the status' aor isn't one of the endpoint's, we skip */
if (!strstr(persistent->aors, status->aor)) {
return 0;
}
snprintf(rtt, sizeof(rtt), "%" PRId64, status->rtt);
blob = ast_json_pack("{s: s, s: s, s: s, s: s, s: s}",
"contact_status", ast_sip_get_contact_status_label(status->status),
"aor", status->aor,
"uri", status->uri,
"roundtrip_usec", rtt,
"endpoint_name", ast_endpoint_get_resource(endpoint));
ast_endpoint_blob_publish(endpoint, ast_endpoint_contact_state_type(), blob);
ast_json_unref(blob);
endpoint_publish_contact_status(endpoint, status);
}
/* Find all the contacts for this endpoint. If ANY are available,
@@ -217,6 +241,13 @@ static void persistent_endpoint_contact_status_observer(const void *object)
{
struct ast_sip_contact_status *contact_status = (struct ast_sip_contact_status *)object;
if (contact_status->refresh) {
/* We are only re-publishing the contact status. */
ao2_callback(persistent_endpoints, OBJ_NODATA,
persistent_endpoint_publish_status, contact_status);
return;
}
/* If rtt_start is set (this is the outgoing OPTIONS), ignore. */
if (contact_status->rtt_start.tv_sec > 0) {
return;

View File

@@ -43,7 +43,6 @@ static const char *status_map [] = {
[UNKNOWN] = "Unknown",
[CREATED] = "Created",
[REMOVED] = "Removed",
[UPDATED] = "Updated",
};
static const char *short_status_map [] = {
@@ -52,7 +51,6 @@ static const char *short_status_map [] = {
[UNKNOWN] = "Unknown",
[CREATED] = "Created",
[REMOVED] = "Removed",
[UPDATED] = "Updated",
};
const char *ast_sip_get_contact_status_label(const enum ast_sip_contact_status_type status)
@@ -160,7 +158,7 @@ struct ast_sip_contact_status *ast_res_pjsip_find_or_create_contact_status(const
* \brief Update an ast_sip_contact_status's elements.
*/
static void update_contact_status(const struct ast_sip_contact *contact,
enum ast_sip_contact_status_type value)
enum ast_sip_contact_status_type value, int is_contact_refresh)
{
RAII_VAR(struct ast_sip_contact_status *, status, NULL, ao2_cleanup);
RAII_VAR(struct ast_sip_contact_status *, update, NULL, ao2_cleanup);
@@ -172,6 +170,26 @@ static void update_contact_status(const struct ast_sip_contact *contact,
return;
}
if (is_contact_refresh
&& status->status == CREATED) {
/*
* The contact status hasn't been updated since creation
* and we don't want to re-send a created status.
*/
if (contact->qualify_frequency
|| status->rtt_start.tv_sec > 0) {
/* Ignore, the status will change soon. */
return;
}
/*
* Convert to a regular contact status update
* because the status may never change.
*/
is_contact_refresh = 0;
value = UNKNOWN;
}
update = ast_sorcery_alloc(ast_sip_get_sorcery(), CONTACT_STATUS,
ast_sorcery_object_get_id(status));
if (!update) {
@@ -185,22 +203,34 @@ static void update_contact_status(const struct ast_sip_contact *contact,
return;
}
update->last_status = status->status;
update->status = value;
if (is_contact_refresh) {
/* Copy everything just to set the refresh flag. */
update->status = status->status;
update->last_status = status->last_status;
update->rtt = status->rtt;
update->rtt_start = status->rtt_start;
update->refresh = 1;
} else {
update->last_status = status->status;
update->status = value;
/* if the contact is available calculate the rtt as
the diff between the last start time and "now" */
update->rtt = update->status == AVAILABLE && status->rtt_start.tv_sec > 0 ?
ast_tvdiff_us(ast_tvnow(), status->rtt_start) : 0;
update->rtt_start = ast_tv(0, 0);
/*
* if the contact is available calculate the rtt as
* the diff between the last start time and "now"
*/
update->rtt = update->status == AVAILABLE && status->rtt_start.tv_sec > 0
? ast_tvdiff_us(ast_tvnow(), status->rtt_start)
: 0;
update->rtt_start = ast_tv(0, 0);
ast_test_suite_event_notify("AOR_CONTACT_QUALIFY_RESULT",
"Contact: %s\r\n"
"Status: %s\r\n"
"RTT: %" PRId64,
ast_sorcery_object_get_id(update),
ast_sip_get_contact_status_label(update->status),
update->rtt);
ast_test_suite_event_notify("AOR_CONTACT_QUALIFY_RESULT",
"Contact: %s\r\n"
"Status: %s\r\n"
"RTT: %" PRId64,
ast_sorcery_object_get_id(update),
ast_sip_get_contact_status_label(update->status),
update->rtt);
}
if (ast_sorcery_update(ast_sip_get_sorcery(), update)) {
ast_log(LOG_ERROR, "Unable to update ast_sip_contact_status for contact %s\n",
@@ -317,10 +347,10 @@ static void qualify_contact_cb(void *token, pjsip_event *e)
/* Fall through */
case PJSIP_EVENT_TRANSPORT_ERROR:
case PJSIP_EVENT_TIMER:
update_contact_status(contact, UNAVAILABLE);
update_contact_status(contact, UNAVAILABLE, 0);
break;
case PJSIP_EVENT_RX_MSG:
update_contact_status(contact, AVAILABLE);
update_contact_status(contact, AVAILABLE, 0);
break;
}
ao2_cleanup(contact);
@@ -371,7 +401,7 @@ static int qualify_contact(struct ast_sip_endpoint *endpoint, struct ast_sip_con
!= PJ_SUCCESS) {
ast_log(LOG_ERROR, "Unable to send request to qualify contact %s\n",
contact->uri);
update_contact_status(contact, UNAVAILABLE);
update_contact_status(contact, UNAVAILABLE, 0);
ao2_ref(contact, -1);
return -1;
}
@@ -531,7 +561,7 @@ static void qualify_and_schedule(struct ast_sip_contact *contact)
schedule_qualify(contact, contact->qualify_frequency * 1000);
} else {
update_contact_status(contact, UNKNOWN);
update_contact_status(contact, UNKNOWN, 0);
}
}
@@ -550,8 +580,7 @@ static void contact_created(const void *obj)
*/
static void contact_updated(const void *obj)
{
update_contact_status((struct ast_sip_contact *) obj, UPDATED);
qualify_and_schedule((struct ast_sip_contact *) obj);
update_contact_status(obj, AVAILABLE, 1);
}
/*!
@@ -580,8 +609,8 @@ static void contact_deleted(const void *obj)
static const struct ast_sorcery_observer contact_observer = {
.created = contact_created,
.updated = contact_updated,
.deleted = contact_deleted,
.updated = contact_updated
};
static pj_bool_t options_start(void)
@@ -1057,7 +1086,7 @@ static void qualify_and_schedule_contact(struct ast_sip_contact *contact)
if (contact->qualify_frequency) {
schedule_qualify(contact, initial_interval);
} else {
update_contact_status(contact, UNKNOWN);
update_contact_status(contact, UNKNOWN, 0);
}
}