It looks like you are using topoh module, which has the purpose of changing the headers that contain ip addresses. Remove it from your config.
If you need more assistance, write email to sr-users@lists.kamailio.org, your issue seems related to using kamailio and the kamailio.cfg, not related to bugs in code of kamailio.