diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-10-30 21:06:16 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-10-30 21:06:16 +0200 |
commit | 88fd20aa7ac87089becdc3d4f53f6ce6f5c399e6 (patch) | |
tree | 8f1e6029ac8df615db96721adb131c7bae04284e | |
parent | 18835ee93c20eedd30fdc14fe9ceeba8a0c34d96 (diff) | |
download | alpine_aports-88fd20aa7ac87089becdc3d4f53f6ce6f5c399e6.tar.bz2 alpine_aports-88fd20aa7ac87089becdc3d4f53f6ce6f5c399e6.tar.xz alpine_aports-88fd20aa7ac87089becdc3d4f53f6ce6f5c399e6.zip |
testing/asterisk: upgrade to 11.0.0
* add ASTERISK-20527 from main/asterisk
-rw-r--r-- | testing/asterisk/APKBUILD | 6 | ||||
-rw-r--r-- | testing/asterisk/ASTERISK-20527.patch | 26 |
2 files changed, 30 insertions, 2 deletions
diff --git a/testing/asterisk/APKBUILD b/testing/asterisk/APKBUILD index 60d27a4dcd..1a5f0e5d3e 100644 --- a/testing/asterisk/APKBUILD +++ b/testing/asterisk/APKBUILD | |||
@@ -1,7 +1,7 @@ | |||
1 | # Contributor: Timo Teras <timo.teras@iki.fi> | 1 | # Contributor: Timo Teras <timo.teras@iki.fi> |
2 | # Maintainer: Timo Teras <timo.teras@iki.fi> | 2 | # Maintainer: Timo Teras <timo.teras@iki.fi> |
3 | pkgname=asterisk | 3 | pkgname=asterisk |
4 | pkgver=11.0.0_rc1 | 4 | pkgver=11.0.0 |
5 | pkgrel=0 | 5 | pkgrel=0 |
6 | pkgdesc="Asterisk: A Module Open Source PBX System" | 6 | pkgdesc="Asterisk: A Module Open Source PBX System" |
7 | pkgusers="asterisk" | 7 | pkgusers="asterisk" |
@@ -24,6 +24,7 @@ source="http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-$ | |||
24 | 101-caps-uclibc.patch | 24 | 101-caps-uclibc.patch |
25 | ASTERISK-18995.patch | 25 | ASTERISK-18995.patch |
26 | ASTERISK-19109.patch | 26 | ASTERISK-19109.patch |
27 | ASTERISK-20527.patch | ||
27 | asterisk.initd | 28 | asterisk.initd |
28 | asterisk.confd | 29 | asterisk.confd |
29 | asterisk.logrotate" | 30 | asterisk.logrotate" |
@@ -180,11 +181,12 @@ sound_en() { | |||
180 | chown -R asterisk:asterisk "$subpkgdir"/var/*/asterisk | 181 | chown -R asterisk:asterisk "$subpkgdir"/var/*/asterisk |
181 | } | 182 | } |
182 | 183 | ||
183 | md5sums="43aa79170adae2d8d36d811f8a23f69c asterisk-11.0.0-rc1.tar.gz | 184 | md5sums="e23c8535a425253764bdddeee49d1778 asterisk-11.0.0.tar.gz |
184 | b00c9d98ce2ad445501248a197c6e436 100-uclibc-daemon.patch | 185 | b00c9d98ce2ad445501248a197c6e436 100-uclibc-daemon.patch |
185 | 6e1129e30c4fd2c25c86c81685a485a9 101-caps-uclibc.patch | 186 | 6e1129e30c4fd2c25c86c81685a485a9 101-caps-uclibc.patch |
186 | bc6713f5434e07b79d3afdd155461d72 ASTERISK-18995.patch | 187 | bc6713f5434e07b79d3afdd155461d72 ASTERISK-18995.patch |
187 | 146befabe95798a67c58d8ac00d397a6 ASTERISK-19109.patch | 188 | 146befabe95798a67c58d8ac00d397a6 ASTERISK-19109.patch |
189 | 676ca42ee1859d8a7bae4345ede5eb89 ASTERISK-20527.patch | ||
188 | 74cd25a5638a94ef51e9f4ede2fd28f2 asterisk.initd | 190 | 74cd25a5638a94ef51e9f4ede2fd28f2 asterisk.initd |
189 | ed31d7ba37bcf8b0346dcf8593c395f0 asterisk.confd | 191 | ed31d7ba37bcf8b0346dcf8593c395f0 asterisk.confd |
190 | 3e65172275684373e1a25c8a11224411 asterisk.logrotate" | 192 | 3e65172275684373e1a25c8a11224411 asterisk.logrotate" |
diff --git a/testing/asterisk/ASTERISK-20527.patch b/testing/asterisk/ASTERISK-20527.patch new file mode 100644 index 0000000000..42a81d8ca5 --- /dev/null +++ b/testing/asterisk/ASTERISK-20527.patch | |||
@@ -0,0 +1,26 @@ | |||
1 | diff --git a/channels/chan_sip.c b/channels/chan_sip.c | ||
2 | index 7569bba..24a8cec 100644 | ||
3 | --- a/channels/chan_sip.c | ||
4 | +++ b/channels/chan_sip.c | ||
5 | @@ -30189,7 +30189,7 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str | ||
6 | olddirectmediaacl = ast_free_acl_list(olddirectmediaacl); | ||
7 | if (!ast_strlen_zero(peer->callback)) { /* build string from peer info */ | ||
8 | char *reg_string; | ||
9 | - if (ast_asprintf(®_string, "%s?%s:%s@%s/%s", peer->name, peer->username, !ast_strlen_zero(peer->remotesecret) ? peer->remotesecret : peer->secret, peer->tohost, peer->callback) >= 0) { | ||
10 | + if (ast_asprintf(®_string, "%s?%s:%s:%s@%s/%s", peer->name, S_OR(peer->fromuser, peer->username), S_OR(peer->remotesecret, peer->secret), peer->username, peer->tohost, peer->callback) >= 0) { | ||
11 | sip_register(reg_string, 0); /* XXX TODO: count in registry_count */ | ||
12 | ast_free(reg_string); | ||
13 | } | ||
14 | diff --git a/configs/sip.conf.sample b/configs/sip.conf.sample | ||
15 | index 81ca998..812be7b 100644 | ||
16 | --- a/configs/sip.conf.sample | ||
17 | +++ b/configs/sip.conf.sample | ||
18 | @@ -711,7 +711,7 @@ srvlookup=yes ; Enable DNS SRV lookups on outbound calls | ||
19 | ; A similar effect can be achieved by adding a "callbackextension" option in a peer section. | ||
20 | ; this is equivalent to having the following line in the general section: | ||
21 | ; | ||
22 | -; register => username:secret@host/callbackextension | ||
23 | +; register => fromuser:secret:username@host/callbackextension | ||
24 | ; | ||
25 | ; and more readable because you don't have to write the parameters in two places | ||
26 | ; (note that the "port" is ignored - this is a bug that should be fixed). | ||