[asterisk-commits] mmichelson: trunk r232365 - /trunk/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 2 11:18:12 CST 2009


Author: mmichelson
Date: Wed Dec  2 11:18:07 2009
New Revision: 232365

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=232365
Log:
Do not change the exten string field or rebuild the contact header
on an inbound sip_pvt if the outbound call is redirected.


Modified:
    trunk/channels/chan_sip.c

Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=232365&r1=232364&r2=232365
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Wed Dec  2 11:18:07 2009
@@ -11949,10 +11949,6 @@
 		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);




More information about the asterisk-commits mailing list