mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-22 14:34:09 -07:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user