We have 1 stateless dispatcher and 3 proxy behind that dispatcher, when Proxy send BYE message then dispatcher bouncing back that BYE to Proxy and they playing ping pong. I think i am missing something..
How BYE get routed? in dispatcher i am not using loose_route() function also should i need to use that but again we running dispatcher in stateless.
Here i put SIP trace: https://pastebin.com/vp9JCdNP
Dispatcher config, Very simple..
route{
remove_hf("Route");
if (method == "INVITE") { record_route(); }
if ( !ds_select_dst("1", "0") ) { xlog("L_ERR", "Unable to route \n"); sl_send_reply("500","Unable to route"); break; }
forward(uri:host, uri:port);