You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/modules/tm/async.c b/modules/tm/async.c
index b447907d7..037d0511a 100644
--- a/modules/tm/async.c
b/modules/tm/async.c
@@ -63,7 63,8 @@ static inline void run_resume_route( struct script_route_ref * resume_route,
{
/* run the resume route and if it ends the msg handling (no other aysnc
* started), run the post script callbacks. */
- if ( (run_top_route(sroutes->request[resume_route->idx], msg) & ACT_FL_TBCONT) == 0 )
if ( ref_script_route_check_and_update( resume_route) &&
(run_top_route(sroutes->request[resume_route->idx], msg) & ACT_FL_TBCONT) == 0 )
if (run_post_cb)
exec_post_req_cb(msg);
}
Hello @bogdan-iancu
I tested patch it works as intended, no more crash.
Is there are should be validation if resume route should be present in Async mode
DST_LOOKUP_RESUME2 is not exist, only DST_LOOKUP_RESUME.
Nov 3 20:10:50 dev1-msg opensips[22076]: [OSIP-250-SMPP] [22076]: DBG:core:dup_ref_script_route_in_shm: dupping 0x7f1a41a58cf8 [DST_LOOKUP_RESUME2], idx -1, ver/cnt 1, to new 0x7f1a3204a6d0 [DST_LOOKUP_RESUME2], idx -1, ver/cnt 1
Nov 3 20:10:50 dev1-msg opensips[22076]: [OSIP-250-SMPP] [22076]: ERROR:tm:t_handle_async: failed dup resume route -> act in sync mode
tail -f /var/log/opensips/opensips.log
Nov 3 20:29:12 dev1-msg opensips[22070]: [OSIP-250-SMPP] [22070]: WARNING:core:update_all_script_route_refs: route [DST_LOOKUP_RESUME2] not found when updating refs
Version
Segfault
Reproduce
The text was updated successfully, but these errors were encountered: