Merged revisions 98955 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Wed, 16 Jan 2008 03:09:11 +0000 (03:09 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 16 Jan 2008 03:09:11 +0000 (03:09 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r98955 | file | 2008-01-15 23:07:24 -0400 (Tue, 15 Jan 2008) | 6 lines

Don't drop the old record route information when dealing with packets related to a reinvite.
(closes issue #11545)
Reported by: kebl0155
Patches:
      reinvite-patch.txt uploaded by kebl0155 (license 356)

........

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

channels/chan_sip.c

index cb76b22..b21a820 100644 (file)
@@ -13593,7 +13593,8 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
                        } 
 
                        /* Save Record-Route for any later requests we make on this dialogue */
-                       build_route(p, req, 1);
+                       if (!reinvite)
+                               build_route(p, req, 1);
                }
                
                if (p->owner && (p->owner->_state == AST_STATE_UP) && (bridgepeer = ast_bridged_channel(p->owner))) { /* if this is a re-invite */