Merged revisions 77824 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Tue, 31 Jul 2007 15:22:32 +0000 (15:22 +0000)
committerMark Michelson <mmichelson@digium.com>
Tue, 31 Jul 2007 15:22:32 +0000 (15:22 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r77824 | mmichelson | 2007-07-31 10:21:22 -0500 (Tue, 31 Jul 2007) | 6 lines

This patch makes Asterisk send 100 Trying provisional responses upon receipt of re-invites. This makes it so that if there are two or more Asterisk
servers between endpoints, the Asterisk servers will not keep retransmitting the re-invites.

(closes issue #10274, reported by cstadlmann, patched by me with approval from file)

........

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

channels/chan_sip.c

index af27a91..4770c9c 100644 (file)
@@ -14720,6 +14720,8 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
                case AST_STATE_UP:
                        ast_debug(2, "%s: This call is UP.... \n", c->name);
 
+                       transmit_response(p, "100 Trying", req);
+
                        if (p->t38.state == T38_PEER_REINVITE) {
                                struct ast_channel *bridgepeer = NULL;
                                struct sip_pvt *bridgepvt = NULL;