[asterisk-commits] crichter: trunk r42126 -
/trunk/channels/chan_misdn.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Sep 6 11:02:26 MST 2006
Author: crichter
Date: Wed Sep 6 13:02:25 2006
New Revision: 42126
URL: http://svn.digium.com/view/asterisk?rev=42126&view=rev
Log:
fixed pipe consuming bug when using chanIsAvail (#7878), also moved a debug log to the very begining of misdn_hangup.
Modified:
trunk/channels/chan_misdn.c
Modified: trunk/channels/chan_misdn.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_misdn.c?rev=42126&r1=42125&r2=42126&view=diff
==============================================================================
--- trunk/channels/chan_misdn.c (original)
+++ trunk/channels/chan_misdn.c Wed Sep 6 13:02:25 2006
@@ -2225,9 +2225,9 @@
struct chan_list *p;
struct misdn_bchannel *bc=NULL;
+ ast_log(LOG_DEBUG, "misdn_hangup(%s)\n", ast->name);
+
if (!ast || ! (p=MISDN_ASTERISK_TECH_PVT(ast) ) ) return -1;
-
- ast_log(LOG_DEBUG, "misdn_hangup(%s)\n", ast->name);
if (!p) {
chan_misdn_log(3, 0, "misdn_hangup called, without chan_list obj.\n");
@@ -2252,6 +2252,8 @@
MISDN_ASTERISK_TECH_PVT(ast)=NULL;
cl_dequeue_chan(&cl_te, p);
+ close(p->pipe[0]);
+ close(p->pipe[1]);
free(p);
if (bc)
More information about the asterisk-commits
mailing list