diff options
author | jnemeth <jnemeth@pkgsrc.org> | 2010-05-07 03:40:24 +0000 |
---|---|---|
committer | jnemeth <jnemeth@pkgsrc.org> | 2010-05-07 03:40:24 +0000 |
commit | 2dfd19079dec16bab6e0d19ca53c959be6aa6850 (patch) | |
tree | 6f101f80268f22a41e96b794cf4072e8c3554b5d /comms | |
parent | c065003a07e2a03ee9d4cffff2d7eaf0c5992ab4 (diff) | |
download | pkgsrc-2dfd19079dec16bab6e0d19ca53c959be6aa6850.tar.gz |
Fix bug when reloading cdr_odbc.so.
Diffstat (limited to 'comms')
-rw-r--r-- | comms/asterisk16/Makefile | 4 | ||||
-rw-r--r-- | comms/asterisk16/distinfo | 3 | ||||
-rw-r--r-- | comms/asterisk16/patches/patch-bd | 21 |
3 files changed, 25 insertions, 3 deletions
diff --git a/comms/asterisk16/Makefile b/comms/asterisk16/Makefile index dae9054a8ed..b2ff3929a8d 100644 --- a/comms/asterisk16/Makefile +++ b/comms/asterisk16/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.14 2010/05/06 20:10:17 jnemeth Exp $ +# $NetBSD: Makefile,v 1.15 2010/05/07 03:40:24 jnemeth Exp $ # DISTNAME= asterisk-1.6.1.17 DIST_SUBDIR= ${PKGNAME_NOREV} -PKGREVISION= 1 +PKGREVISION= 2 EXTRACT_ONLY= ${DISTNAME}.tar.gz CATEGORIES= comms net audio MASTER_SITES= http://downloads.asterisk.org/pub/telephony/asterisk/ \ diff --git a/comms/asterisk16/distinfo b/comms/asterisk16/distinfo index 3fe55becf21..8da24efd651 100644 --- a/comms/asterisk16/distinfo +++ b/comms/asterisk16/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.11 2010/05/06 20:10:17 jnemeth Exp $ +$NetBSD: distinfo,v 1.12 2010/05/07 03:40:24 jnemeth Exp $ SHA1 (asterisk-1.6.1.17/asterisk-1.6.1.17.tar.gz) = 7af18a384f7832d8818e0548263681b3e839447f RMD160 (asterisk-1.6.1.17/asterisk-1.6.1.17.tar.gz) = 86c54a56b9d5c7565c9d3d54c0d6cd043e9decd3 @@ -32,3 +32,4 @@ SHA1 (patch-az) = 917cc8868708ce9c022a0268debd90f51f88bdad SHA1 (patch-ba) = 2ea96529e0187a23d0b640c7cae69904d587c269 SHA1 (patch-bb) = 3b78ed3c8233e2db38d09ca81f1768d018ffd2e2 SHA1 (patch-bc) = 0efc99595d1ef82a879361e8bf3b2ef7fd84af62 +SHA1 (patch-bd) = f5760942987d9628a4799e512ab0f34368b984c7 diff --git a/comms/asterisk16/patches/patch-bd b/comms/asterisk16/patches/patch-bd new file mode 100644 index 00000000000..95a24221a05 --- /dev/null +++ b/comms/asterisk16/patches/patch-bd @@ -0,0 +1,21 @@ +$NetBSD: patch-bd,v 1.1 2010/05/07 03:40:24 jnemeth Exp $ + +# reported upstream as https://issues.asterisk.org/view.php?id=17304 + +--- cdr/cdr_odbc.c.orig 2008-11-20 18:23:03.000000000 +0000 ++++ cdr/cdr_odbc.c +@@ -220,9 +220,11 @@ static int odbc_load_module(int reload) + ast_verb(3, "cdr_odbc: dsn is %s\n", dsn); + ast_verb(3, "cdr_odbc: table is %s\n", table); + +- res = ast_cdr_register(name, ast_module_info->description, odbc_log); +- if (res) { +- ast_log(LOG_ERROR, "cdr_odbc: Unable to register ODBC CDR handling\n"); ++ if (!reload) { ++ res = ast_cdr_register(name, ast_module_info->description, odbc_log); ++ if (res) { ++ ast_log(LOG_ERROR, "cdr_odbc: Unable to register ODBC CDR handling\n"); ++ } + } + } while (0); + |