aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
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 */