Skip to content

Commit

Permalink
Only update the TM UAS if we are in request context and are not runni…
Browse files Browse the repository at this point in the history
…ng on top of a fake req

(cherry picked from commit 2031348)
  • Loading branch information
vladpaiu authored and liviuchircu committed Oct 24, 2024
1 parent ca13ea9 commit ae0f1f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/tm/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ int t_handle_async(struct sip_msg *msg, struct action* a,
} else {
/* update the cloned UAS (from transaction)
* with data from current msg */
if (t->uas.request)
if ((t->uas.request) && (route_type==REQUEST_ROUTE) && ((msg->msg_flags & FL_TM_FAKE_REQ) == 0))
update_cloned_msg_from_msg( t->uas.request, msg);
}

Expand Down

0 comments on commit ae0f1f5

Please sign in to comment.