When connecting 2 devices directly to FreeSwitch everything works. When connecting to Kamailio (as dispatcher), some calls fails with "Timeout" and some fails with "Too many loops".

This is my kamailio.cfg: http://pastebin.com/KEuZmikh

When connected directly to FreeSwitch where everything works, this is how my clients are registrered in FreeSwitch: http://pastebin.com/prkjkb7g

When connected to Kamailio where nothing works, this is how my clients are registrered in FreeSwitch: http://pastebin.com/b5x6NZyv

215.197.145.132 (sip.my-domain.com) is my Kamailio.
pbx.my-domain.com is my FreeSwitch.
96.224.14.164 is my IP at home, where my 2 devices are from.

Can anyone help me out? I'm kinda lost at this point. And I don't know if the error is on FreeSwitch or Kamailio (or both).