]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
We need to set the persistant_route [sic] parameter for the sip_pvt
authorMark Michelson <mmichelson@digium.com>
Wed, 9 Apr 2008 20:54:31 +0000 (20:54 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 9 Apr 2008 20:54:31 +0000 (20:54 +0000)
during the initial INVITE, no matter if we're building the route set from
an INVITE request or response.

(closes issue #12391)
Reported by: benjaminbohlmann
Tested by: benjaminbohlmann

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

channels/chan_sip.c

index fa6fcd925847dc480da40cd9fccbca3d980863c3..ab5be589107de394bdba04f491a089a38b3622ed 100644 (file)
@@ -8261,8 +8261,9 @@ static void build_route(struct sip_pvt *p, struct sip_request *req, int backward
                free_old_route(p->route);
                p->route = NULL;
        }
-       
-       p->route_persistant = backwards;
+
+       /* We only want to create the route set the first time this is called */
+       p->route_persistant = 1;
        
        /* Build a tailq, then assign it to p->route when done.
         * If backwards, we add entries from the head so they end up