From: Mark Michelson Date: Wed, 2 Dec 2009 17:18:07 +0000 (+0000) Subject: Do not change the exten string field or rebuild the contact header X-Git-Tag: 11.0.0-beta1~3797 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74b388ea4a950e12c256822e0699311bd288f3da;p=thirdparty%2Fasterisk.git Do not change the exten string field or rebuild the contact header on an inbound sip_pvt if the outbound call is redirected. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@232365 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 0670c56035..0a58336464 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -11949,10 +11949,6 @@ static void update_redirecting(struct sip_pvt *p, const void *data, size_t datal return; } - if (!ast_strlen_zero(p->owner->redirecting.to.number)) { - ast_string_field_set(p, exten, p->owner->redirecting.to.number); - build_contact(p); - } respprep(&resp, p, "181 Call is being forwarded", &p->initreq); add_diversion_header(&resp, p); send_response(p, &resp, XMIT_UNRELIABLE, 0);