[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.96,1.97

markster at lists.digium.com markster at lists.digium.com
Sat Dec 18 18:36:33 CST 2004


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

Modified Files:
	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.96
retrieving revision 1.97
diff -u -d -r1.96 -r1.97
--- chan_mgcp.c	14 Dec 2004 23:36:29 -0000	1.96
+++ chan_mgcp.c	18 Dec 2004 23:32:42 -0000	1.97
@@ -3111,8 +3111,14 @@
                 } 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);
+						if (option_verbose > 2) {
+							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);
                     }
                 }
             }




More information about the svn-commits mailing list