Have you tested that session->ip_addr.len>0? Can you print the str value for
session->ip_addr and see if it is a valid IP?
Then it would be better to use str2ipx(), because it tries internally both ipv4/6.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2045#issuecomment-524797556