Merged revisions 219320 via svnmerge from
authorMark Michelson <mmichelson@digium.com>
Thu, 17 Sep 2009 22:22:01 +0000 (22:22 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 17 Sep 2009 22:22:01 +0000 (22:22 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r219320 | mmichelson | 2009-09-17 17:20:50 -0500 (Thu, 17 Sep 2009) | 6 lines

  Send a 100 Trying response when we detect a spiral.

  This was problematic during spiral tests at SIPit...
  along with some other things as well.
........

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

channels/chan_sip.c

index e1081c4..78e7875 100644 (file)
@@ -20208,6 +20208,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int
                        char *at = strchr(uri, '@');
                        char *peerorhost;
                        ast_debug(2, "Potential spiral detected. Original RURI was %s, new RURI is %s\n", initial_rlPart2, this_rlPart2);
+                       transmit_response(p, "100 Trying", req);
                        if (at) {
                                *at = '\0';
                        }