It is very likely your config is executing dispatcher function for the
BYE. You can load debugger module and enable execution trace logging, so
you see what functions are executed from the configuration file.
I don't see the Record-Route in the reply and Route header in the BYE,
typical usage
I don't understand how this happens, hopefully somebody know why??
When the BYE is sent to Kamailio, it forwards to an incorrect address.
This address is only in dispatcher, so I don't understand how it gets to that?
U 192.168.9.130:5060 -> 4.55.10.163:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP