Indeed, the flag would be reset via done label, I overlooked there is no return for error label.
The same callback should be called when there is a local timeout. Do you get in the logs an error message like:
... got sip response 408 while registering ...
—
Reply to this email directly or view it on GitHub.