Module: kamailio Branch: master Commit: e9d143f7890cae3c629c82df2c281d528d1499d9 URL: https://github.com/kamailio/kamailio/commit/e9d143f7890cae3c629c82df2c281d528d1499d9
Author: Daniel-Constantin Mierla <[email protected]> Committer: Daniel-Constantin Mierla <[email protected]> Date: 2025-09-29T14:40:19+02:00 tm: clean up locally parsed headers in onsend route - GH #4399 --- Modified: src/modules/tm/uac.c --- Diff: https://github.com/kamailio/kamailio/commit/e9d143f7890cae3c629c82df2c281d528d1499d9.diff Patch: https://github.com/kamailio/kamailio/commit/e9d143f7890cae3c629c82df2c281d528d1499d9.patch --- diff --git a/src/modules/tm/uac.c b/src/modules/tm/uac.c index 518929341d8..cbfb46e8ebd 100644 --- a/src/modules/tm/uac.c +++ b/src/modules/tm/uac.c @@ -753,6 +753,7 @@ static inline int send_prepared_request_impl( struct ua_client *uac; struct ip_addr ip; /* logging */ int ret; + int osnd; t = request->my_T; uac = &t->uac[branch]; @@ -769,9 +770,11 @@ static inline int send_prepared_request_impl( LM_DBG("uac: %p branch: %d to %s:%d\n", uac, branch, ip_addr2a(&ip), su_getport(&uac->request.dst.to)); - if(run_onsend(p_msg, &uac->request.dst, uac->request.buffer, - uac->request.buffer_len) - == 0) { + osnd = run_onsend(p_msg, &uac->request.dst, uac->request.buffer, + uac->request.buffer_len); + t_uas_request_clean_parsed(t); + + if(osnd == 0) { uac->last_received = _tm_reply_408_code; su2ip_addr(&ip, &uac->request.dst.to); LM_DBG("onsend_route dropped msg. to %s:%d (%d)\n", ip_addr2a(&ip), _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
