فهرست منبع

tm: reset T_ASYNC_CONTINUE flag in t_suspend

grumvalski 8 سال پیش
والد
کامیت
f81149d820
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/modules/tm/t_suspend.c

+ 2 - 1
src/modules/tm/t_suspend.c

@@ -143,7 +143,8 @@ int t_suspend(struct sip_msg *msg,
 	*hash_index = t->hash_index;
 	*label = t->label;
 
-
+	/* reset the continue flag to be able to suspend in a failure route */
+	t->flags &= ~T_ASYNC_CONTINUE;
 
 	/* backup some extra info that can be used in continuation logic */
 	t->async_backup.backup_route = get_route_type();