diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-09 20:56:51 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-04-09 20:56:51 +0000 |
commit | 007c9c7b8c3f303993ebae55941279334c627cb7 (patch) | |
tree | 0535d22ca1e8eec65504ea0cdd4cf5a88d45e518 /channels | |
parent | e0a3268638ba5ada24d24e1470d3123b13fdfd57 (diff) |
Merged revisions 113928 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r113928 | mmichelson | 2008-04-09 15:56:14 -0500 (Wed, 09 Apr 2008) | 16 lines
Merged revisions 113927 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r113927 | mmichelson | 2008-04-09 15:54:31 -0500 (Wed, 09 Apr 2008) | 8 lines
We need to set the persistant_route [sic] parameter for the sip_pvt
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@113929 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 54b5d5f59..379a42a11 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9897,8 +9897,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 |