return CHANUNAVAIL for unregistered peers, not CONGESTION (bug #4276)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5690 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-05-16 00:09:09 +00:00
parent 2638192439
commit 0858dad2ad

View File

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