Browse code

Revert "tm: restore X/AVP values from initial transaction in DNS failover processing"

This reverts commit d6b1c20d3ad94d9136cf247e67b7fc0d32b18d3b.

Henning Westerholt authored on 19/08/2022 13:15:53
Showing 1 changed files
... ...
@@ -1042,8 +1042,6 @@ int add_uac_dns_fallback(struct cell *t, struct sip_msg* msg,
1042 1042
 		t->uac[t->nr_of_outgoings].on_branch_failure = old_uac->on_branch_failure;
1043 1043
 		/* copy branch flags */
1044 1044
 		t->uac[t->nr_of_outgoings].branch_flags = old_uac->branch_flags;
1045
-		/* restore X/AVP values from initial transaction */
1046
-		tm_xdata_swap(t, 0, 0);
1047 1045
 
1048 1046
 		if (cfg_get(tm, tm_cfg, reparse_on_dns_failover)){
1049 1047
 			/* Reuse the old buffer and only replace the via header.