Use 503 for CONGESTION and 486 for BUSY
authorMark Spencer <markster@digium.com>
Thu, 24 Apr 2003 18:21:46 +0000 (18:21 +0000)
committerMark Spencer <markster@digium.com>
Thu, 24 Apr 2003 18:21:46 +0000 (18:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@907 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 9758bea..083b3c9 100755 (executable)
@@ -1088,7 +1088,7 @@ static int sip_indicate(struct ast_channel *ast, int condition)
                return -1;
        case AST_CONTROL_BUSY:
                if (ast->_state != AST_STATE_UP) {
-                       transmit_response(p, "600 Busy everywhere", &p->initreq);
+                       transmit_response(p, "486 Busy Here", &p->initreq);
                        p->alreadygone = 1;
                        ast_softhangup(ast, AST_SOFTHANGUP_DEV);
                        break;
@@ -1096,7 +1096,7 @@ static int sip_indicate(struct ast_channel *ast, int condition)
                return -1;
        case AST_CONTROL_CONGESTION:
                if (ast->_state != AST_STATE_UP) {
-                       transmit_response(p, "486 Busy here", &p->initreq);
+                       transmit_response(p, "503 Service Unavailable", &p->initreq);
                        p->alreadygone = 1;
                        ast_softhangup(ast, AST_SOFTHANGUP_DEV);
                        break;