Looking at the code I see the T_ASYNC_SUSPENDED flag is cleared at the end of t_continue(). Possible solutions:
* clear the flag earlier * use a static var to know that t_suspend() was executed inside the route block triggered by t_contine() * use a counter to track the level of suspend/continue stack
I didn't have the time to dig more and see which one would work the best and balance if there are side effects. First option would be simpler, I guess, if that works, it should be the way to go.
--- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/645#issuecomment-222446341