Can you try replacing the IF condition in the snippet you pasted above with:
``` if(get_to(msg)->tag_value.s==NULL || get_to(msg)->tag_value.len==0) { ```
then re-compile, install and test?
I will look deeper when I get a chance, but for the moment it might be an workaround to get you going.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/276#issuecomment-128692310