summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2005-12-03 00:24:06 +0000
committerStefan Knoblich <stkn@gentoo.org>2005-12-03 00:24:06 +0000
commit44277b08bbdb0481dba617ab2085e51758a63f72 (patch)
tree97265ef9bf74d907d4fbc412622880ee21c4a7bc /net-misc/asterisk/files
parentVersion bump #114058 by Henrik Brix Andersen. (diff)
downloadgentoo-2-44277b08bbdb0481dba617ab2085e51758a63f72.tar.gz
gentoo-2-44277b08bbdb0481dba617ab2085e51758a63f72.tar.bz2
gentoo-2-44277b08bbdb0481dba617ab2085e51758a63f72.zip
Added patch for chan_misdn support on asterisk-1.0.x as requested by genstef.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-misc/asterisk/files')
-rw-r--r--net-misc/asterisk/files/1.0.0/asterisk-1.0.10-misdn.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/net-misc/asterisk/files/1.0.0/asterisk-1.0.10-misdn.patch b/net-misc/asterisk/files/1.0.0/asterisk-1.0.10-misdn.patch
new file mode 100644
index 000000000000..a11b23dfb895
--- /dev/null
+++ b/net-misc/asterisk/files/1.0.0/asterisk-1.0.10-misdn.patch
@@ -0,0 +1,20 @@
+Index: channel.c
+===================================================================
+RCS file: /usr/cvsroot/asterisk/channel.c,v
+retrieving revision 1.139.2.11
+diff -u -r1.139.2.11 channel.c
+--- channel.c 5 Aug 2005 00:02:09 -0000 1.139.2.11
++++ channel.c 11 Oct 2005 04:20:20 -0000
+@@ -381,6 +381,12 @@
+ }
+ ast_mutex_lock(&chan->lock);
+ prev = NULL;
++
++ if (!chan->pvt ) {
++ ast_log(LOG_WARNING, "chan->pvt == NULL!!");
++ ast_mutex_unlock(&chan->lock);
++ return -1;
++ }
+ cur = chan->pvt->readq;
+ while(cur) {
+ if ((cur->frametype == AST_FRAME_CONTROL) && (cur->subclass == AST_CONTROL_HANGUP)) {