aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-16 03:07:24 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-16 03:07:24 +0000
commitf5b5f368cc99a16e1ee11179373d9cebcae8b6bc (patch)
treedc577c634685a5a8ccf647e6f5555dab39f6afed /channels
parent558c6ac002f15ab8e503b2a54ad138e6a56da155 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@98955 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 0d9241843..76284a3ed 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -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 */