return CHANUNAVAIL for unregistered peers, not CONGESTION (bug #4276)
authorKevin P. Fleming <kpfleming@digium.com>
Mon, 16 May 2005 00:09:09 +0000 (00:09 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Mon, 16 May 2005 00:09:09 +0000 (00:09 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5690 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_dial.c

index 6855ac3..bc0bb9c 100755 (executable)
@@ -189,11 +189,15 @@ static void hanguptree(struct localuser *outgoing, struct ast_channel *exception
                numbusy++; \
                break; \
        case AST_CAUSE_CONGESTION: \
-       case AST_CAUSE_UNREGISTERED: \
                if (chan->cdr) \
                        ast_cdr_busy(chan->cdr); \
                numcongestion++; \
                break; \
+       case AST_CAUSE_UNREGISTERED: \
+               if (chan->cdr) \
+                       ast_cdr_busy(chan->cdr); \
+               numnochan++; \
+               break; \
        default: \
                numnochan++; \
                break; \