From b8d7b380dde83ecca6e5993ab79a50889cd4f8a0 Mon Sep 17 00:00:00 2001 From: tilghman Date: Tue, 8 Jul 2008 20:27:47 +0000 Subject: Cause SIP to return a 480 instead of a 404 when a sip peer exists, but is not registered. (closes issue #12885) Reported by: ibc Patches: 20080701__bug12885__2.diff.txt uploaded by Corydon76 (license 14) Tested by: ibc git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@129149 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_dial.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps') diff --git a/apps/app_dial.c b/apps/app_dial.c index b5900b1f2..e5891c4b8 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -341,6 +341,7 @@ static void hanguptree(struct dial_localuser *outgoing, struct ast_channel *exce ast_cdr_failed(chan->cdr); \ numcongestion++; \ break; \ + case AST_CAUSE_NO_ROUTE_DESTINATION: \ case AST_CAUSE_UNREGISTERED: \ if (chan->cdr) \ ast_cdr_failed(chan->cdr); \ -- cgit v1.2.3