@miconda @henningw Indeed the patch seems to resolve the problem. The issue seems to be happening due to the line here. https://github.com/kamailio/kamailio/blob/51dcab019a42e5b1f3b81247ca71ffcaf4...
We use the `rest=start;` to search for the parameters of `alias`, but in the while above `rest` and `rest_len` are changed for `mode=1`. Specifically, the problem is in `rest_len` in 1184 which does not represent the length of `start` anymore , but still used.
Removing the two lines as suggested, fixes the problem since the search is still done correctly.
Also, I believe the `+4` is not needed anymore. https://github.com/kamailio/kamailio/blob/51dcab019a42e5b1f3b81247ca71ffcaf4...