Only accept message once
authorOlle Johansson <oej@edvina.net>
Sat, 28 Oct 2006 20:27:21 +0000 (20:27 +0000)
committerOlle Johansson <oej@edvina.net>
Sat, 28 Oct 2006 20:27:21 +0000 (20:27 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@46390 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4d64637..3c63705 100644 (file)
@@ -14060,8 +14060,8 @@ static int handle_request_message(struct sip_pvt *p, struct sip_request *req)
                if (ast_test_flag(req, SIP_PKT_DEBUG))
                        ast_verbose("Receiving message!\n");
                receive_message(p, req);
-       } 
-       transmit_response(p, "202 Accepted", req);
+       } else
+               transmit_response(p, "202 Accepted", req);
        return 1;
 }