Explorar el Código

Merge pull request #955 from grumvalski/serial_suspend

tm: reset T_ASYNC_CONTINUE flag in t_suspend
Federico Cabiddu hace 8 años
padre
commit
c7212940b7
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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();