Update for 17.7.0-rc1

This commit is contained in:
Asterisk Development Team
2020-08-20 05:11:06 -05:00
parent 53c06791fd
commit 25c644736c
11 changed files with 94519 additions and 0 deletions

1
.lastclean Normal file
View File

@@ -0,0 +1 @@
40

1
.version Normal file
View File

@@ -0,0 +1 @@
17.7.0-rc1

91401
ChangeLog Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,72 @@
<!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-17.7.0-rc1</title><h1 align="center"><a name="top">Release Summary</a></h1><h3 align="center">asterisk-17.7.0-rc1</h3><h3 align="center">Date: 2020-08-20</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="#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-17.6.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%">5 Sean Bright <sean.bright@gmail.com><br/>3 George Joseph <gjoseph@digium.com><br/>3 Joshua C. Colp <jcolp@sangoma.com><br/>1 Michael Neuhauser <mike@firmix.at><br/>1 cmaj <chris@penguinpbx.com><br/>1 Nickolay Shmyrev <nshmyrev@alphacephei.com><br/>1 Dennis Buteyn <dennis.buteyn@xorcom.com><br/>1 sungtae kim <sungtae@messagebird.com><br/></td><td width="33%"><td width="33%">1 Dennis <dennis.buteyn@xorcom.com><br/>1 Michael Neuhauser<br/>1 tootai <admin@tootai.net><br/>1 cmaj <chris@penguinpbx.com><br/>1 Andrew Yager <andrew@rwts.com.au><br/>1 Michael Neuhauser <mike@firmix.at><br/>1 David Cunningham <dcunningham@voisonics.com><br/>1 Nickolay V. Shmyrev <nshmyrev@alphacephei.com><br/>1 sungtae kim <pchero21@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>Bug</h3><h4>Category: Channels/chan_sip/General</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-29011">ASTERISK-29011</a>: chan_sip: ToHost property not cleared on reload<br/>Reported by: Dennis<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=53c06791fd6a1dac6bf0d29d5380cc26fd9ff94a">[53c06791fd]</a> Dennis Buteyn -- chan_sip: Clear ToHost property on peer when changing to dynamic host</li>
</ul><br><h4>Category: Core/ACL</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28978">ASTERISK-28978</a>: acl: named_acl rule misconfiguration results in segfault on reading rule from realtime<br/>Reported by: Andrew Yager<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=7d487b8cb62b4daf85a0fb7067e21aa8846dfe5c">[7d487b8cb6]</a> Sean Bright -- acl.c: Coerce a NULL pointer into the empty string</li>
</ul><br><h4>Category: Functions/func_version</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-29021">ASTERISK-29021</a>: [patch] Fix VERSION(ASTERISK_VERSION_NUM) on certified versions<br/>Reported by: cmaj<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=2a96c52c0c283145776505b649a9a2ed05bb956f">[2a96c52c0c]</a> cmaj -- Makefile: Fix certified version numbers</li>
</ul><br><h4>Category: Resources/res_http_websocket</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28975">ASTERISK-28975</a>: res_http_websocket: Text payload data doesn't necessary include trailing zero<br/>Reported by: Nickolay V. Shmyrev<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=c3b3b681fbcc8af4c1d0aff002d3a76c99db3336">[c3b3b681fb]</a> Nickolay Shmyrev -- res_http_websocket: Avoid reading past end of string</li>
</ul><br><h4>Category: Resources/res_musiconhold</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28927">ASTERISK-28927</a>: Asterisk crash in music on hold<br/>Reported by: David Cunningham<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=4167cc1be46f00200a6a590d33dc531826181302">[4167cc1be4]</a> Sean Bright -- res_musiconhold.c: Prevent crash with realtime MoH</li>
</ul><br><h4>Category: Resources/res_pjsip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28995">ASTERISK-28995</a>: res_pjsip_registrar: Expires on statically configured contacts is not correct<br/>Reported by: tootai<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=4ac3d4cdbd8e88588452dae353797efedae8c3ed">[4ac3d4cdbd]</a> Joshua C. Colp -- res_pjsip_registrar: Don't specify an expiration for static contacts.</li>
</ul><br><h4>Category: Resources/res_pjsip_registrar</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28995">ASTERISK-28995</a>: res_pjsip_registrar: Expires on statically configured contacts is not correct<br/>Reported by: tootai<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=4ac3d4cdbd8e88588452dae353797efedae8c3ed">[4ac3d4cdbd]</a> Joshua C. Colp -- res_pjsip_registrar: Don't specify an expiration for static contacts.</li>
</ul><br><h4>Category: Resources/res_stasis</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28987">ASTERISK-28987</a>: BridgeCreated ARI event shows wrong video_mode info<br/>Reported by: sungtae kim<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ade20df66b76730c62c5da4ccfa6255c1fd04785">[ade20df66b]</a> sungtae kim -- stasis_bridge.c: Fixed wrong video_mode shown</li>
</ul><br><h4>Category: pjproject/pjsip</h4><a href="https://issues.asterisk.org/jira/browse/ASTERISK-28973">ASTERISK-28973</a>: Malformed IP address in SDP of 2nd SIP timer triggered INVITE when NAT is active (UDP transport with external_media_address)<br/>Reported by: Michael Neuhauser<ul>
<li><a href="https://code.asterisk.org/code/changelog/asterisk?cs=bfee7e1550cacd827bcd3d778596fcefe8d57a36">[bfee7e1550]</a> Michael Neuhauser -- pjproject: clone sdp to protect against (nat) modifications</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=50a98c37c8d7f32479953aa072234015acd31865">50a98c37c8</a></td><td>George Joseph</td><td>scope_trace: Add/update utilities</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=f606312b8f06452b4928da9f574174440a5164b7">f606312b8f</a></td><td>Sean Bright</td><td>vector.h: Fix implementation of AST_VECTOR_COMPACT() for empty vectors</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=5042ebf4ff4d7600f6f80365c23ecba168a615b6">5042ebf4ff</a></td><td>George Joseph</td><td>res_pjsip_session: Ensure reused streams have correct bundle group</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=87e79e6f9cce3292284135cdd0f6d2f2162f1dc7">87e79e6f9c</a></td><td>Sean Bright</td><td>utf8.c: Add UTF-8 validation and utility functions</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=7907c24e6a436a5b920b0f5818a881f403c055c0">7907c24e6a</a></td><td>Sean Bright</td><td>vector.h: Add AST_VECTOR_SORT()</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=a3aed44d12111f214e42eca262e94e5ebaae168e">a3aed44d12</a></td><td>George Joseph</td><td>CI: Force publishAsteriskDocs to use python2</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=a613e07e76f0060928dfb416a3bf43e5e4789cc5">a613e07e76</a></td><td>Joshua C. Colp</td><td>websocket / pjsip: Increase maximum packet size.</td></tr>
<tr><td><a href="https://code.asterisk.org/code/changelog/asterisk?cs=ba1472b96088a4a6087bc92091672845523e6b60">ba1472b960</a></td><td>Joshua C. Colp</td><td>pjsip: Include timer patch to prevent cancelling timer 0.</td></tr>
</table><hr><a name="diffstat"><h2 align="center">Diffstat Results</h2></a><center><a href="#top">[Back to Top]</a></center><p>This is a summary of the changes to the source code that went into this release that was generated using the diffstat utility.</p><pre>.lastclean | 1
.version | 1
ChangeLog |91172 ----------
asterisk-17.6.0-summary.html | 175
asterisk-17.6.0-summary.txt | 436
b/Makefile | 2
b/channels/chan_sip.c | 1
b/include/asterisk/format_cap.h | 11
b/include/asterisk/res_pjsip_session.h | 8
b/include/asterisk/stream.h | 87
b/include/asterisk/utf8.h | 188
b/include/asterisk/vector.h | 50
b/main/acl.c | 2
b/main/asterisk.c | 2
b/main/bridge.c | 1
b/main/format_cap.c | 22
b/main/stream.c | 77
b/main/utf8.c | 380
b/res/res_http_websocket.c | 35
b/res/res_musiconhold.c | 170
b/res/res_pjsip_pubsub.c | 16
b/res/res_pjsip_registrar.c | 6
b/res/res_pjsip_session.c | 28
b/res/res_stasis.c | 12
b/res/stasis/stasis_bridge.c | 16
b/res/stasis/stasis_bridge.h | 3
b/tests/CI/publishAsteriskDocs.sh | 4
b/third-party/pjproject/patches/0020-pjlib_cancel_timer_0.patch | 37
contrib/realtime/mysql/mysql_cdr.sql | 41
contrib/realtime/mysql/mysql_config.sql | 1276
contrib/realtime/mysql/mysql_voicemail.sql | 35
contrib/realtime/postgresql/postgresql_cdr.sql | 45
contrib/realtime/postgresql/postgresql_config.sql | 1388
contrib/realtime/postgresql/postgresql_voicemail.sql | 39
34 files changed, 1059 insertions(+), 94708 deletions(-)</pre><br></html>

View File

@@ -0,0 +1,220 @@
Release Summary
asterisk-17.7.0-rc1
Date: 2020-08-20
<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-17.6.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
5 Sean Bright 1 Dennis
3 George Joseph 1 Michael Neuhauser
3 Joshua C. Colp 1 tootai
1 Michael Neuhauser 1 cmaj
1 cmaj 1 Andrew Yager
1 Nickolay Shmyrev 1 Michael Neuhauser
1 Dennis Buteyn 1 David Cunningham
1 sungtae kim 1 Nickolay V. Shmyrev
1 sungtae kim
----------------------------------------------------------------------
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.
Bug
Category: Channels/chan_sip/General
ASTERISK-29011: chan_sip: ToHost property not cleared on reload
Reported by: Dennis
* [53c06791fd] Dennis Buteyn -- chan_sip: Clear ToHost property on peer
when changing to dynamic host
Category: Core/ACL
ASTERISK-28978: acl: named_acl rule misconfiguration results in segfault
on reading rule from realtime
Reported by: Andrew Yager
* [7d487b8cb6] Sean Bright -- acl.c: Coerce a NULL pointer into the
empty string
Category: Functions/func_version
ASTERISK-29021: [patch] Fix VERSION(ASTERISK_VERSION_NUM) on certified
versions
Reported by: cmaj
* [2a96c52c0c] cmaj -- Makefile: Fix certified version numbers
Category: Resources/res_http_websocket
ASTERISK-28975: res_http_websocket: Text payload data doesn't necessary
include trailing zero
Reported by: Nickolay V. Shmyrev
* [c3b3b681fb] Nickolay Shmyrev -- res_http_websocket: Avoid reading
past end of string
Category: Resources/res_musiconhold
ASTERISK-28927: Asterisk crash in music on hold
Reported by: David Cunningham
* [4167cc1be4] Sean Bright -- res_musiconhold.c: Prevent crash with
realtime MoH
Category: Resources/res_pjsip
ASTERISK-28995: res_pjsip_registrar: Expires on statically configured
contacts is not correct
Reported by: tootai
* [4ac3d4cdbd] Joshua C. Colp -- res_pjsip_registrar: Don't specify an
expiration for static contacts.
Category: Resources/res_pjsip_registrar
ASTERISK-28995: res_pjsip_registrar: Expires on statically configured
contacts is not correct
Reported by: tootai
* [4ac3d4cdbd] Joshua C. Colp -- res_pjsip_registrar: Don't specify an
expiration for static contacts.
Category: Resources/res_stasis
ASTERISK-28987: BridgeCreated ARI event shows wrong video_mode info
Reported by: sungtae kim
* [ade20df66b] sungtae kim -- stasis_bridge.c: Fixed wrong video_mode
shown
Category: pjproject/pjsip
ASTERISK-28973: Malformed IP address in SDP of 2nd SIP timer triggered
INVITE when NAT is active (UDP transport with external_media_address)
Reported by: Michael Neuhauser
* [bfee7e1550] Michael Neuhauser -- pjproject: clone sdp to protect
against (nat) modifications
----------------------------------------------------------------------
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 |
|------------+----------------+------------------------------------------|
| 50a98c37c8 | George Joseph | scope_trace: Add/update utilities |
|------------+----------------+------------------------------------------|
| f606312b8f | Sean Bright | vector.h: Fix implementation of |
| | | AST_VECTOR_COMPACT() for empty vectors |
|------------+----------------+------------------------------------------|
| 5042ebf4ff | George Joseph | res_pjsip_session: Ensure reused streams |
| | | have correct bundle group |
|------------+----------------+------------------------------------------|
| 87e79e6f9c | Sean Bright | utf8.c: Add UTF-8 validation and utility |
| | | functions |
|------------+----------------+------------------------------------------|
| 7907c24e6a | Sean Bright | vector.h: Add AST_VECTOR_SORT() |
|------------+----------------+------------------------------------------|
| a3aed44d12 | George Joseph | CI: Force publishAsteriskDocs to use |
| | | python2 |
|------------+----------------+------------------------------------------|
| a613e07e76 | Joshua C. Colp | websocket / pjsip: Increase maximum |
| | | packet size. |
|------------+----------------+------------------------------------------|
| ba1472b960 | Joshua C. Colp | pjsip: Include timer patch to prevent |
| | | cancelling timer 0. |
+------------------------------------------------------------------------+
----------------------------------------------------------------------
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 |91172 ----------
asterisk-17.6.0-summary.html | 175
asterisk-17.6.0-summary.txt | 436
b/Makefile | 2
b/channels/chan_sip.c | 1
b/include/asterisk/format_cap.h | 11
b/include/asterisk/res_pjsip_session.h | 8
b/include/asterisk/stream.h | 87
b/include/asterisk/utf8.h | 188
b/include/asterisk/vector.h | 50
b/main/acl.c | 2
b/main/asterisk.c | 2
b/main/bridge.c | 1
b/main/format_cap.c | 22
b/main/stream.c | 77
b/main/utf8.c | 380
b/res/res_http_websocket.c | 35
b/res/res_musiconhold.c | 170
b/res/res_pjsip_pubsub.c | 16
b/res/res_pjsip_registrar.c | 6
b/res/res_pjsip_session.c | 28
b/res/res_stasis.c | 12
b/res/stasis/stasis_bridge.c | 16
b/res/stasis/stasis_bridge.h | 3
b/tests/CI/publishAsteriskDocs.sh | 4
b/third-party/pjproject/patches/0020-pjlib_cancel_timer_0.patch | 37
contrib/realtime/mysql/mysql_cdr.sql | 41
contrib/realtime/mysql/mysql_config.sql | 1276
contrib/realtime/mysql/mysql_voicemail.sql | 35
contrib/realtime/postgresql/postgresql_cdr.sql | 45
contrib/realtime/postgresql/postgresql_config.sql | 1388
contrib/realtime/postgresql/postgresql_voicemail.sql | 39
34 files changed, 1059 insertions(+), 94708 deletions(-)

View File

@@ -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

View File

@@ -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';

View File

@@ -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

View File

@@ -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;