Do not change the exten string field or rebuild the contact header
authorMark Michelson <mmichelson@digium.com>
Wed, 2 Dec 2009 17:18:07 +0000 (17:18 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 2 Dec 2009 17:18:07 +0000 (17:18 +0000)
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

channels/chan_sip.c

index 0670c56..0a58336 100644 (file)
@@ -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);