]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Don't drop the old record route information when dealing with packets related to...
authorJoshua Colp <jcolp@digium.com>
Wed, 16 Jan 2008 03:07:24 +0000 (03:07 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 16 Jan 2008 03:07:24 +0000 (03:07 +0000)
(closes issue #11545)
Reported by: kebl0155
Patches:
      reinvite-patch.txt uploaded by kebl0155 (license 356)

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

channels/chan_sip.c

index 0d924184384e6ac461cb857192e8908ddd55a355..76284a3edc3cc270e33e1089f5d2509c09e8e63b 100644 (file)
@@ -12096,7 +12096,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 */