mirror of http://gerrit.asterisk.org/asterisk
parent
98d1537c1e
commit
50145c837a
@ -0,0 +1 @@
|
||||
40
|
||||
@ -0,0 +1,496 @@
|
||||
Release Summary
|
||||
|
||||
asterisk-18.1.0-rc1
|
||||
|
||||
Date: 2020-11-12
|
||||
|
||||
<asteriskteam@digium.com>
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Table of Contents
|
||||
|
||||
1. Summary
|
||||
2. Contributors
|
||||
3. Closed Issues
|
||||
4. Other Changes
|
||||
5. Diffstat
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Summary
|
||||
|
||||
[Back to Top]
|
||||
|
||||
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.
|
||||
|
||||
The data in this summary reflects changes that have been made since the
|
||||
previous release, asterisk-18.0.0.
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Contributors
|
||||
|
||||
[Back to Top]
|
||||
|
||||
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.
|
||||
|
||||
Coders Testers Reporters
|
||||
12 Sean Bright 3 Alexander Traud
|
||||
8 George Joseph 2 George Joseph
|
||||
8 Alexander Traud 2 sungtae kim
|
||||
3 Kevin Harwell 2 Ross Beer
|
||||
3 Joshua C. Colp 2 Sebastian Damm
|
||||
2 Torrey Searle 1 Walter Doekes
|
||||
2 Ben Ford 1 å*¨å®¶å»º
|
||||
2 Sungtae Kim 1 Andrew Siplas
|
||||
1 Holger Hans Peter Freyther 1 Jean Aunis - Prescom
|
||||
1 Dovid Bender 1 Kevin Harwell
|
||||
1 Walter Doekes 1 dovid
|
||||
1 Alexei Gradinari 1 Brian J. Murrell
|
||||
1 Asterisk Development Team 1 Vieri
|
||||
1 Michal Hajek 1 Nick French
|
||||
1 Jean Aunis 1 Walter Doekes
|
||||
1 Nick French 1 Benjamin M.
|
||||
1 lvl 1 Péter Juhász
|
||||
1 Jasper van der Neut 1 under
|
||||
1 Andrew Siplas 1 Thomas Frederiksen
|
||||
1 Michal Hajek
|
||||
1 Michael Newton
|
||||
1 Sandro Gauci
|
||||
1 Dovid Bender
|
||||
1 Jasper van der Neut
|
||||
1 Torrey Searle
|
||||
1 lvl
|
||||
1 Hajek Michal
|
||||
1 Eric Smith
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Closed Issues
|
||||
|
||||
[Back to Top]
|
||||
|
||||
This is a list of all issues from the issue tracker that were closed by
|
||||
changes that went into this release.
|
||||
|
||||
Security
|
||||
|
||||
Category: pjproject/pjsip
|
||||
|
||||
ASTERISK-29057: pjsip: Crash on call rejection during high load
|
||||
Reported by: Sandro Gauci
|
||||
* [6baa4b53be] Kevin Harwell -- AST-2020-001 - res_pjsip: Return dialog
|
||||
locked and referenced
|
||||
|
||||
New Feature
|
||||
|
||||
Category: Resources/res_pjsip_diversion
|
||||
|
||||
ASTERISK-29027: Implement support for History-Info
|
||||
Reported by: Torrey Searle
|
||||
* [83140c9fed] Torrey Searle -- res_pjsip_diversion: implement support
|
||||
for History-Info
|
||||
|
||||
Bug
|
||||
|
||||
Category: . I did not set the category correctly.
|
||||
|
||||
ASTERISK-29146: GCC Warnings: â**%sâ** directive argument is null.
|
||||
Reported by: Alexander Traud
|
||||
* [f86af1fbd0] Alexander Traud -- Compiler fixes for GCC when printf %s
|
||||
is NULL
|
||||
|
||||
Category: Applications/app_directory
|
||||
|
||||
ASTERISK-29144: GCC Warnings with OPTIMIZE=-Og make
|
||||
Reported by: Alexander Traud
|
||||
* [e0ee53dc9c] Alexander Traud -- Compiler fixes for GCC with -Og
|
||||
|
||||
Category: Applications/app_voicemail
|
||||
|
||||
ASTERISK-29144: GCC Warnings with OPTIMIZE=-Og make
|
||||
Reported by: Alexander Traud
|
||||
* [e0ee53dc9c] Alexander Traud -- Compiler fixes for GCC with -Og
|
||||
ASTERISK-26424: app_voicemail: Undocumented behavior from VMSayName
|
||||
Reported by: Eric Smith
|
||||
* [abee490639] Sean Bright -- app_voicemail.c: Document VMSayName
|
||||
interruption behavior
|
||||
|
||||
Category: Channels/General
|
||||
|
||||
ASTERISK-29144: GCC Warnings with OPTIMIZE=-Og make
|
||||
Reported by: Alexander Traud
|
||||
* [e0ee53dc9c] Alexander Traud -- Compiler fixes for GCC with -Og
|
||||
|
||||
Category: Configs/Samples
|
||||
|
||||
ASTERISK-29123: logger.conf.sample missing comment mark on line 115
|
||||
Reported by: Andrew Siplas
|
||||
* [ff33f7f44f] Andrew Siplas -- logger.conf.sample: add missing comment
|
||||
mark
|
||||
|
||||
Category: Contrib/General
|
||||
|
||||
ASTERISK-29142: sip_to_pjsip.py: doesn't read globbed includes
|
||||
Reported by: Michael Newton
|
||||
* [fe540d0326] Sean Bright -- sip_to_pjsip.py: Handle #include globs and
|
||||
other fixes
|
||||
|
||||
Category: Core/Channels
|
||||
|
||||
ASTERISK-29091: Crash when ast_translator_build_path fails
|
||||
Reported by: Jasper van der Neut
|
||||
* [08ccfd4588] Jasper van der Neut -- channels: Don't dereference NULL
|
||||
pointer
|
||||
|
||||
Category: Core/General
|
||||
|
||||
ASTERISK-28430: res_rtp_asterisk.c: FRACK!, Failed assertion errno !=
|
||||
EBADF
|
||||
Reported by: under
|
||||
* [a6faa53af0] Sean Bright -- tcptls.c: Don't close TCP client file
|
||||
descriptors more than once
|
||||
ASTERISK-28311: dsp: ast_dsp_silence_noise_with_energy wrong judgment of
|
||||
frame format
|
||||
Reported by: å*¨å®¶å»º
|
||||
* [9b08eddf90] Sean Bright -- dsp.c: Update calls to ast_format_cmp to
|
||||
check result properly
|
||||
|
||||
Category: Core/RTP
|
||||
|
||||
ASTERISK-28416: Unable to get rtp codec payload code for slin
|
||||
Reported by: Brian J. Murrell
|
||||
* [4964302984] Sean Bright -- format_cap: Perform codec lookups by
|
||||
pointer instead of name
|
||||
|
||||
Category: Documentation
|
||||
|
||||
ASTERISK-29136: config: Sample features.conf incorrectly includes " around
|
||||
sound files
|
||||
Reported by: Benjamin M.
|
||||
* [6f321b561a] Sean Bright -- features.conf.sample: Sample sound files
|
||||
incorrectly quoted
|
||||
ASTERISK-26424: app_voicemail: Undocumented behavior from VMSayName
|
||||
Reported by: Eric Smith
|
||||
* [abee490639] Sean Bright -- app_voicemail.c: Document VMSayName
|
||||
interruption behavior
|
||||
|
||||
Category: Functions/func_curl
|
||||
|
||||
ASTERISK-28825: Any curl response checks out as valid even if 404 is
|
||||
returned.
|
||||
Reported by: dovid
|
||||
* [c635c78265] Dovid Bender -- func_curl.c: Allow user to set what
|
||||
return codes constitute a failure.
|
||||
ASTERISK-29085: func_curl: Segmentation fault when using CURL after
|
||||
setting httpheader CURLOPT
|
||||
Reported by: Péter Juhász
|
||||
* [28c88e8fe2] Sean Bright -- func_curl.c: Prevent crash when using
|
||||
CURLOPT(httpheader)
|
||||
|
||||
Category: Functions/func_odbc
|
||||
|
||||
ASTERISK-29144: GCC Warnings with OPTIMIZE=-Og make
|
||||
Reported by: Alexander Traud
|
||||
* [e0ee53dc9c] Alexander Traud -- Compiler fixes for GCC with -Og
|
||||
|
||||
Category: Resources/res_ari_endpoints
|
||||
|
||||
ASTERISK-29108: resource_endpoints.c : Memory leak if endpoint not found
|
||||
Reported by: Jean Aunis - Prescom
|
||||
* [7ced144867] Jean Aunis -- resource_endpoints.c: memory leak when
|
||||
providing a 404 response
|
||||
|
||||
Category: Resources/res_musiconhold
|
||||
|
||||
ASTERISK-29099: res_musiconhold: Realtime MOH only loads a single entry
|
||||
Reported by: lvl
|
||||
* [b3b6b5e9f7] lvl -- res_musiconhold: Load all realtime entries, not
|
||||
just the first
|
||||
ASTERISK-24329: Music On Hold announcement cuts intro of music the first
|
||||
time it is played
|
||||
Reported by: Thomas Frederiksen
|
||||
* [d0644faa5a] Sean Bright -- res_musiconhold: Start playlist after
|
||||
initial announcement
|
||||
|
||||
Category: Resources/res_pjsip
|
||||
|
||||
ASTERISK-28933: res_pjsip.so fails to load when bundled pjproject is
|
||||
compiled without libssl
|
||||
Reported by: Walter Doekes
|
||||
* [5a6037778b] Alexander Traud -- res_pjsip/config_transport: Load and
|
||||
run without OpenSSL.
|
||||
ASTERISK-29013: res_pjsip: Asterisk doesn't stop sending invites (with
|
||||
auth) on 407 replies
|
||||
Reported by: Sebastian Damm
|
||||
* [82325ba58b] Ben Ford -- AST-2020-002 - res_pjsip: Stop sending
|
||||
INVITEs after challenge limit.
|
||||
ASTERISK-29124: res_pjsip: flow transport broken for outbound requests
|
||||
Reported by: Nick French
|
||||
* [f041763e3b] Nick French -- res_pjsip_session: Restore calls to
|
||||
ast_sip_message_apply_transport()
|
||||
|
||||
Category: Resources/res_pjsip_authenticator_digest
|
||||
|
||||
ASTERISK-29013: res_pjsip: Asterisk doesn't stop sending invites (with
|
||||
auth) on 407 replies
|
||||
Reported by: Sebastian Damm
|
||||
* [82325ba58b] Ben Ford -- AST-2020-002 - res_pjsip: Stop sending
|
||||
INVITEs after challenge limit.
|
||||
|
||||
Category: Resources/res_pjsip_config_wizard
|
||||
|
||||
ASTERISK-29097: res_pjsip_config_wizard: Crash when freeing string when
|
||||
failing to add extension
|
||||
Reported by: Vieri
|
||||
* [5a0b19a4f3] Sean Bright -- pbx.c: On error,
|
||||
ast_add_extension2_lockopt should always free 'data'
|
||||
|
||||
Category: Resources/res_pjsip_sdp_rtp
|
||||
|
||||
ASTERISK-29051: res_pjsip_sdp_rtp: Does not set correct values on RTP
|
||||
instance when "auto" DTMF is used
|
||||
Reported by: Sebastian Damm
|
||||
* [4499fbc819] Holger Hans Peter Freyther -- res_pjsip_sdp_rtp: Fix
|
||||
accidentally native bridging calls
|
||||
|
||||
Category: Resources/res_pjsip_session
|
||||
|
||||
ASTERISK-29109: res_pjsip_session: Asterisk 18 does not progress calls due
|
||||
to codec negotiation after upgrading from Asterisk 16
|
||||
Reported by: Ross Beer
|
||||
* [412b385de5] Joshua C. Colp -- res_pjsip: Adjust outgoing offer call
|
||||
pref.
|
||||
ASTERISK-29014: res_pjsip_session: Re-INVITE collisions aren't handled
|
||||
correctly
|
||||
Reported by: George Joseph
|
||||
* [cc71be0078] George Joseph -- res_pjsip_session: Fix issue with COLP
|
||||
and 491
|
||||
* [d4f3b17dd3] George Joseph -- res_pjsip_session: Handle multi-stream
|
||||
re-invites better
|
||||
|
||||
Category: Resources/res_rtp_asterisk
|
||||
|
||||
ASTERISK-29089: RTP Ports not cleared after hangup
|
||||
Reported by: Ross Beer
|
||||
* [957aff751d] Joshua C. Colp -- res_pjsip_session: Fix session
|
||||
reference leak.
|
||||
|
||||
Category: Resources/res_stasis
|
||||
|
||||
ASTERISK-29081: res_stasis: Add compare function for bridges moh container
|
||||
Reported by: Hajek Michal
|
||||
* [2bce21da88] Michal Hajek -- res_stasis.c: Add compare function for
|
||||
bridges moh container
|
||||
|
||||
Category: Utilities/muted
|
||||
|
||||
ASTERISK-29145: GCC Warnings with OPTIMIZE=-Os make
|
||||
Reported by: Alexander Traud
|
||||
* [2dacadd9df] Alexander Traud -- Compiler fixes for GCC with -Os
|
||||
|
||||
Improvement
|
||||
|
||||
Category: Core/Logging
|
||||
|
||||
ASTERISK-29054: Logger: Add debug logging categories
|
||||
Reported by: Kevin Harwell
|
||||
* [6255e7976c] Kevin Harwell -- Logging: Add debug logging categories
|
||||
|
||||
Category: Resources/General
|
||||
|
||||
ASTERISK-29056: Increase reg_server column size for ps_contacts table
|
||||
realtime
|
||||
Reported by: sungtae kim
|
||||
* [1fd12b88c7] Sungtae Kim -- realtime: Increased reg_server character
|
||||
size
|
||||
|
||||
Category: Resources/res_stasis
|
||||
|
||||
ASTERISK-29055: Create a Bridge with video_single mode
|
||||
Reported by: sungtae kim
|
||||
* [a0d41a27d4] Sungtae Kim -- res_stasis.c: Added video_single option
|
||||
for bridge creation
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Commits Not Associated with an Issue
|
||||
|
||||
[Back to Top]
|
||||
|
||||
This is a list of all changes that went into this release that did not
|
||||
reference a JIRA issue.
|
||||
|
||||
+------------------------------------------------------------------------+
|
||||
| Revision | Author | Summary |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| | Asterisk | |
|
||||
| 98d1537c1e | Development | Update CHANGES and UPGRADE.txt for 18.1.0 |
|
||||
| | Team | |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 860e40dd80 | George Joseph | res_pjsip_outbound_registration.c: Use |
|
||||
| | | our own scheduler and other stuff |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 569fc28966 | George Joseph | pjsip_scheduler.c: Add type ONESHOT and |
|
||||
| | | enhance cli show command |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| da0f2ea99e | Alexei | sched: AST_SCHED_REPLACE_UNREF can lead |
|
||||
| | Gradinari | to use after free of data |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| be54c7e9ea | Alexander | res_stir_shaken: Include OpenSSL headers |
|
||||
| | Traud | where used actually. |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 5b25c75d7b | Alexander | chan_sip: On authentication, pick MD5 for |
|
||||
| | Traud | sure. |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| fb3b14ab7d | Walter Doekes | main/say: Work around gcc 9 |
|
||||
| | | format-truncation false positive |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 439f7bb848 | Kevin Harwell | res_pjsip, res_pjsip_session: initialize |
|
||||
| | | local variables |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| f89531cb98 | Alexander | install_prereq: Add GMime 3.0. |
|
||||
| | Traud | |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 2773f93154 | Alexander | BuildSystem: Enable Lua 5.4. |
|
||||
| | Traud | |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 4a049ad510 | George Joseph | app_confbridge/bridge_softmix: Add |
|
||||
| | | ability to force estimated bitrate |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| c470327e6c | Torrey Searle | res_pjsip_diversion: fix double 181 |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 5929e0ccbd | Sean Bright | res_musiconhold: Clarify that playlist |
|
||||
| | | mode only supports HTTP(S) URLs |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 9eeb40af33 | Joshua C. | res_pjsip_session: Fix stream name memory |
|
||||
| | Colp | leak. |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 99bd7d95de | George Joseph | logger.h: Fix ast_trace to respect |
|
||||
| | | scope_level |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| c90c182932 | Sean Bright | audiosocket: Fix module menuselect |
|
||||
| | | descriptions |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| fdc13060df | George Joseph | bridge_softmix/sfu_topologies_on_join: |
|
||||
| | | Ignore topology change failures |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 6f32c254be | Sean Bright | res_pjsip_session.c: Fix build when |
|
||||
| | | TEST_FRAMEWORK is not defined |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| ad4f2a8c99 | George Joseph | debugging: Add enough to choke a mule |
|
||||
|------------+---------------+-------------------------------------------|
|
||||
| 7eaae4e7b6 | Ben Ford | Bridging: Use a ref to bridge_channel's |
|
||||
| | | channel to prevent crash. |
|
||||
+------------------------------------------------------------------------+
|
||||
|
||||
----------------------------------------------------------------------
|
||||
|
||||
Diffstat Results
|
||||
|
||||
[Back to Top]
|
||||
|
||||
This is a summary of the changes to the source code that went into this
|
||||
release that was generated using the diffstat utility.
|
||||
|
||||
.lastclean | 1
|
||||
.version | 1
|
||||
ChangeLog |92149 ----------
|
||||
asterisk-18.0.0-summary.html | 1162
|
||||
asterisk-18.0.0-summary.txt | 2873
|
||||
b/CHANGES | 30
|
||||
b/addons/ooh323c/src/ooq931.c | 2
|
||||
b/apps/app_confbridge.c | 3
|
||||
b/apps/app_directory.c | 2
|
||||
b/apps/app_voicemail.c | 5
|
||||
b/apps/confbridge/conf_config_parser.c | 21
|
||||
b/apps/confbridge/include/confbridge.h | 2
|
||||
b/bridges/bridge_softmix.c | 153
|
||||
b/channels/chan_audiosocket.c | 5
|
||||
b/channels/chan_iax2.c | 2
|
||||
b/channels/chan_pjsip.c | 94
|
||||
b/channels/chan_sip.c | 13
|
||||
b/configs/samples/confbridge.conf.sample | 7
|
||||
b/configs/samples/features.conf.sample | 4
|
||||
b/configs/samples/musiconhold.conf.sample | 4
|
||||
b/configs/samples/res_curl.conf.sample | 1
|
||||
b/configure | 2
|
||||
b/configure.ac | 2
|
||||
b/contrib/ast-db-manage/config/versions/1ae0609b6646_increse_reg_server_size.py | 22
|
||||
b/contrib/ast-db-manage/config/versions/e658c26033ca_create_history_info_flag.py | 38
|
||||
b/contrib/scripts/install_prereq | 2
|
||||
b/contrib/scripts/sip_to_pjsip/astconfigparser.py | 43
|
||||
b/funcs/func_curl.c | 48
|
||||
b/funcs/func_odbc.c | 2
|
||||
b/include/asterisk/bridge.h | 14
|
||||
b/include/asterisk/bridge_channel.h | 14
|
||||
b/include/asterisk/format_cache.h | 13
|
||||
b/include/asterisk/logger.h | 4
|
||||
b/include/asterisk/logger_category.h | 178
|
||||
b/include/asterisk/pbx.h | 8
|
||||
b/include/asterisk/res_pjsip.h | 94
|
||||
b/include/asterisk/res_pjsip_session.h | 6
|
||||
b/include/asterisk/res_stir_shaken.h | 3
|
||||
b/include/asterisk/rtp_engine.h | 79
|
||||
b/include/asterisk/sched.h | 5
|
||||
b/include/asterisk/stream.h | 4
|
||||
b/include/asterisk/stun.h | 25
|
||||
b/main/bridge.c | 44
|
||||
b/main/bridge_channel.c | 20
|
||||
b/main/channel.c | 14
|
||||
b/main/cli.c | 51
|
||||
b/main/dsp.c | 4
|
||||
b/main/format_cache.c | 21
|
||||
b/main/format_cap.c | 2
|
||||
b/main/indications.c | 6
|
||||
b/main/logger.c | 5
|
||||
b/main/logger_category.c | 324
|
||||
b/main/pbx.c | 12
|
||||
b/main/rtp_engine.c | 68
|
||||
b/main/say.c | 20
|
||||
b/main/stream.c | 30
|
||||
b/main/stun.c | 61
|
||||
b/main/tcptls.c | 12
|
||||
b/res/ari/resource_bridges.h | 4
|
||||
b/res/ari/resource_endpoints.c | 1
|
||||
b/res/parking/parking_bridge_features.c | 1
|
||||
b/res/res_audiosocket.c | 3
|
||||
b/res/res_musiconhold.c | 24
|
||||
b/res/res_parking.c | 1
|
||||
b/res/res_pjsip.c | 56
|
||||
b/res/res_pjsip/config_transport.c | 18
|
||||
b/res/res_pjsip/pjsip_configuration.c | 1
|
||||
b/res/res_pjsip/pjsip_scheduler.c | 180
|
||||
b/res/res_pjsip/pjsip_transport_management.c | 2
|
||||
b/res/res_pjsip_config_wizard.c | 1
|
||||
b/res/res_pjsip_diversion.c | 326
|
||||
b/res/res_pjsip_outbound_registration.c | 286
|
||||
b/res/res_pjsip_pubsub.c | 10
|
||||
b/res/res_pjsip_sdp_rtp.c | 26
|
||||
b/res/res_pjsip_session.c | 1977
|
||||
b/res/res_pjsip_stir_shaken.c | 1
|
||||
b/res/res_rtp_asterisk.c | 403
|
||||
b/res/res_stasis.c | 31
|
||||
b/res/res_stir_shaken.c | 2
|
||||
contrib/realtime/mysql/mysql_cdr.sql | 41
|
||||
contrib/realtime/mysql/mysql_config.sql | 1294
|
||||
contrib/realtime/mysql/mysql_voicemail.sql | 35
|
||||
contrib/realtime/postgresql/postgresql_cdr.sql | 45
|
||||
contrib/realtime/postgresql/postgresql_config.sql | 1406
|
||||
contrib/realtime/postgresql/postgresql_voicemail.sql | 39
|
||||
85 files changed, 4068 insertions(+), 99980 deletions(-)
|
||||
@ -0,0 +1,41 @@
|
||||
CREATE TABLE alembic_version (
|
||||
version_num VARCHAR(32) NOT NULL,
|
||||
CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num)
|
||||
);
|
||||
|
||||
-- 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');
|
||||
|
||||
-- Running upgrade 210693f3123d -> 54cde9847798
|
||||
|
||||
ALTER TABLE cdr MODIFY accountcode VARCHAR(80) NULL;
|
||||
|
||||
ALTER TABLE cdr MODIFY peeraccount VARCHAR(80) NULL;
|
||||
|
||||
UPDATE alembic_version SET version_num='54cde9847798' WHERE alembic_version.version_num = '210693f3123d';
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,35 @@
|
||||
CREATE TABLE alembic_version (
|
||||
version_num VARCHAR(32) NOT NULL,
|
||||
CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num)
|
||||
);
|
||||
|
||||
-- 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';
|
||||
|
||||
@ -0,0 +1,45 @@
|
||||
BEGIN;
|
||||
|
||||
CREATE TABLE alembic_version (
|
||||
version_num VARCHAR(32) NOT NULL,
|
||||
CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num)
|
||||
);
|
||||
|
||||
-- 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');
|
||||
|
||||
-- Running upgrade 210693f3123d -> 54cde9847798
|
||||
|
||||
ALTER TABLE cdr ALTER COLUMN accountcode TYPE VARCHAR(80);
|
||||
|
||||
ALTER TABLE cdr ALTER COLUMN peeraccount TYPE VARCHAR(80);
|
||||
|
||||
UPDATE alembic_version SET version_num='54cde9847798' WHERE alembic_version.version_num = '210693f3123d';
|
||||
|
||||
COMMIT;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,39 @@
|
||||
BEGIN;
|
||||
|
||||
CREATE TABLE alembic_version (
|
||||
version_num VARCHAR(32) NOT NULL,
|
||||
CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num)
|
||||
);
|
||||
|
||||
-- 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;
|
||||
|
||||
Loading…
Reference in new issue