I need a sanity check if you don’t mind… I am setting up a stateless proxy for several (separate, not load balanced) Asterisk servers behind Kamailio 4.2 (with domain and dispatcher). All works as expected except when called party hangs up, as Asterisk seems to address the BYE “To” (that is sent to the calling party) to the originating domain, and not the IP of the UA (as it does in other cases). When this happens, stateless Kamailio does not seem to know how to route them, which makes sense. I assume I would need to rewrite the “To” field on BYE message so that it contains the UA’s IP (to match the BYE’s that are routed correctly). The RURI header contains the IP/port of the UA, so I am attempting to use it and here is where I am stuck…