Updated pull request. Some of the most important updates:
- free previously allocated shm in case of reached memory limit and solve possible segfaults; tested this using -m 128 and a large table: kamailio didn't crashed when had no memory for the entries and still accepted calls afterwards.
- always lookup hashtable before selecting a new node; this fallbacks to the previous behaviour
- check also for viabranch when matching the call in addition to the callid; tested this for simple calls i.e. viabranch was STR_NULL; didn't tested it for real-life branching scenarios as we are not using it; here I'd need some help from your side, if you use those scenarios and have time for it; IMHO the matching should be fine as I'm checking the viabranch value I get from the struct sip_msg.
—
Reply to this email directly or view it on GitHub.