diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-10-09 08:51:05 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-10-09 08:51:57 +0300 |
commit | 6e8ed58d7ceee30d3cf4c04569ecb02ead1e9daa (patch) | |
tree | 8453769e926c0f90eed0ea388fe3026fecaca76e /main/asterisk/ASTERISK-13456.patch | |
parent | 3f9e2f0dc2c02fa02996aac227fdde9226b11d30 (diff) | |
download | aports-6e8ed58d7ceee30d3cf4c04569ecb02ead1e9daa.tar.bz2 aports-6e8ed58d7ceee30d3cf4c04569ecb02ead1e9daa.tar.xz |
main/asterisk: upgrade to 10.9.0
* remove upstreamed ASTERISK-19610
* rebase ASTERISK-13456 and ASTERISK-20527 patches
* update patch applying snippet
Diffstat (limited to 'main/asterisk/ASTERISK-13456.patch')
-rw-r--r-- | main/asterisk/ASTERISK-13456.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/asterisk/ASTERISK-13456.patch b/main/asterisk/ASTERISK-13456.patch index d6e579ba0..b796c58f0 100644 --- a/main/asterisk/ASTERISK-13456.patch +++ b/main/asterisk/ASTERISK-13456.patch @@ -282,11 +282,11 @@ index 41fb935..ad8da22 100644 - if (!ast_strlen_zero(callback)) { /* build string from peer info */ + if (!ast_strlen_zero(peer->callback)) { /* build string from peer info */ char *reg_string; -- if (asprintf(®_string, "%s?%s:%s@%s/%s", peer->name, peer->username, !ast_strlen_zero(peer->remotesecret) ? peer->remotesecret : peer->secret, peer->tohost, callback) < 0) { -+ if (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) { - ast_log(LOG_WARNING, "asprintf() failed: %s\n", strerror(errno)); - } else if (reg_string) { +- if (ast_asprintf(®_string, "%s?%s:%s@%s/%s", peer->name, peer->username, !ast_strlen_zero(peer->remotesecret) ? peer->remotesecret : peer->secret, peer->tohost, callback) >= 0) { ++ 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) { sip_register(reg_string, 0); /* XXX TODO: count in registry_count */ + ast_free(reg_string); + } @@ -30116,6 +30175,8 @@ static int reload_config(enum channelreloadreason reason) /* Release configuration from memory */ ast_config_destroy(cfg); |