It might have been related to a race when storing dlg variable in database, which should
be fixed in 4.3.3. Can you update and try to see if that was the issue?
I stress tested after the fix with sipp, in chunks of 50k calls at 400cps with max 4k of
active calls and the duration seemed to be ok.
---
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/350#issuecomment-145242054