send "100 Trying" when we receive PROCEEDING, unless "183 Session Progress" has alrea...
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 13 Oct 2005 20:04:38 +0000 (20:04 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 13 Oct 2005 20:04:38 +0000 (20:04 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6760 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 5e0d9e6..a5f6e60 100755 (executable)
@@ -2629,9 +2629,15 @@ static int sip_indicate(struct ast_channel *ast, int condition)
                }
                res = -1;
                break;
-       case AST_CONTROL_PROGRESS:
        case AST_CONTROL_PROCEEDING:
                if ((ast->_state != AST_STATE_UP) && !ast_test_flag(p, SIP_PROGRESS_SENT) && !ast_test_flag(p, SIP_OUTGOING)) {
+                       transmit_response(p, "100 Trying", &p->initreq);
+                       break;
+               }
+               res = -1;
+               break;
+       case AST_CONTROL_PROGRESS:
+               if ((ast->_state != AST_STATE_UP) && !ast_test_flag(p, SIP_PROGRESS_SENT) && !ast_test_flag(p, SIP_OUTGOING)) {
                        transmit_response_with_sdp(p, "183 Session Progress", &p->initreq, 0);
                        ast_set_flag(p, SIP_PROGRESS_SENT);     
                        break;