]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
- 183 is not reliable message...
authorOlle Johansson <oej@edvina.net>
Sat, 28 Oct 2006 19:08:58 +0000 (19:08 +0000)
committerOlle Johansson <oej@edvina.net>
Sat, 28 Oct 2006 19:08:58 +0000 (19:08 +0000)
- Error should not have SDP

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46382 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index e406a85b14d456001d132963f35fae12c62876ef..b8cd163f5c6ecb8ccedf3a752c6893b5ed658ee2 100644 (file)
@@ -3458,7 +3458,7 @@ static int sip_write(struct ast_channel *ast, struct ast_frame *frame)
                                if ((ast->_state != AST_STATE_UP) &&
                                        !ast_test_flag(&p->flags[0], SIP_PROGRESS_SENT) && 
                                    !ast_test_flag(&p->flags[0], SIP_OUTGOING)) {
-                                       transmit_response_with_t38_sdp(p, "183 Session Progress", &p->initreq, XMIT_RELIABLE);
+                                       transmit_response_with_t38_sdp(p, "183 Session Progress", &p->initreq, XMIT_UNRELIABLE);
                                        ast_set_flag(&p->flags[0], SIP_PROGRESS_SENT);
                                }
                                res = ast_udptl_write(p->udptl, frame);
@@ -12704,7 +12704,7 @@ static int handle_invite_replaces(struct sip_pvt *p, struct sip_request *req, in
                /* We should answer something here. If we are here, the
                        call we are replacing exists, so an accepted 
                        can't harm */
-               transmit_response_with_sdp(p, "200 OK", req, 1);
+               transmit_response_with_sdp(p, "200 OK", req, XMIT_RELIABLE);
                /* Do something more clever here */
                ast_channel_unlock(c);
                ast_mutex_unlock(&p->refer->refer_call->lock);
@@ -12713,7 +12713,7 @@ static int handle_invite_replaces(struct sip_pvt *p, struct sip_request *req, in
        if (!c) {
                /* What to do if no channel ??? */
                ast_log(LOG_ERROR, "Unable to create new channel.  Invite/replace failed.\n");
-               transmit_response_with_sdp(p, "503 Service Unavailable", req, 1);
+               transmit_response_reliable(p, "503 Service Unavailable", req);
                append_history(p, "Xfer", "INVITE/Replace Failed. No new channel.");
                sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT);
                ast_mutex_unlock(&p->refer->refer_call->lock);
@@ -12738,7 +12738,7 @@ static int handle_invite_replaces(struct sip_pvt *p, struct sip_request *req, in
           Targetcall is not touched by the masq */
 
        /* Answer the incoming call and set channel to UP state */
-       transmit_response_with_sdp(p, "200 OK", req, 1);
+       transmit_response_with_sdp(p, "200 OK", req, XMIT_RELIABLE);
        ast_setstate(c, AST_STATE_UP);
        
        /* Stop music on hold and other generators */