[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.79.2.5,1.79.2.6

russell at lists.digium.com russell at lists.digium.com
Tue Dec 21 15:14:17 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv19635/channels

Modified Files:
      Tag: v1-0
	chan_mgcp.c 
Log Message:
Make sure we del any remaining connections (bug #2982)


Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.79.2.5
retrieving revision 1.79.2.6
diff -u -d -r1.79.2.5 -r1.79.2.6
--- chan_mgcp.c	26 Oct 2004 15:34:30 -0000	1.79.2.5
+++ chan_mgcp.c	21 Dec 2004 20:10:06 -0000	1.79.2.6
@@ -3044,9 +3044,13 @@
                 } else {
                     /* SC: verbose level check */
                     if (option_verbose > 2) {
-                        ast_verbose(VERBOSE_PREFIX_3 "MGCP handle_request(%s@%s-%d) ast_channel already destroyed\n", 
-                                    p->name, p->parent->name, sub->id);
+                        ast_verbose(VERBOSE_PREFIX_3 "MGCP handle_request(%s@%s-%d) ast_channel already destroyed, resending DLCX.\n",
+                            p->name, p->parent->name, sub->id);
                     }
+                    /* Instruct the other side to remove the connection since it apparently *
+                     * still thinks the channel is active. *
+                     * For Cisco IAD2421 /BAK/ */
+                    transmit_connection_del(sub);
                 }
             }
             if ((p->hookstate == MGCP_ONHOOK) && (!sub->rtp) && (!sub->next->rtp)) {




More information about the svn-commits mailing list