Hi,

I am trying to configure a SIP proxy architecture that is stateful with regard to transaction but not the dialogues, i.e. If an INVITE takes a specific route, the corresponding 180 Ringing, 200 OK and ACK shall traverse the same set of proxies, but the corresponding BYE can take another route (and obv it's own 200 OK takes the same route again)


Which modules can help me with that?
In specific which functions / modules are recommended to handle requests and responses?

Currently, I use "t_relay()" from TM module to forward requests and "loose_route()" from RR module to handle replies, but it looks like that if a BYE ends in a proxy which its corresponding INVITE has not traversed, it is not forwarded by that proxy.

Am I making a mistake in my routing? Isn't there a simple way to do transaction stateful routing in Kamailio?


Thanks,
Alireza