Index: channels/chan_mgcp.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v retrieving revision 1.82 diff -u -r1.82 chan_mgcp.c --- channels/chan_mgcp.c 3 Oct 2004 21:18:27 -0000 1.82 +++ channels/chan_mgcp.c 5 Oct 2004 20:59:23 -0000 @@ -2883,7 +2883,7 @@ tmp_sub = tmp_ep->sub; while (tmp_sub) { if (tmp_sub->owner) - ast_softhangup(sub->owner, AST_SOFTHANGUP_DEV); + ast_softhangup(tmp_sub->owner, AST_SOFTHANGUP_DEV); tmp_sub = tmp_sub->next; if (tmp_sub == first_sub) break;