Looking a bit more, I found what was -- jumping to error resulted in going out of loop receiving packets, practically terminating kamailio process (so not a crash, just an unwanted shut down). I pushed the patches to master and 5.1 branches. Reopen if still an issue.