The attached patch introduces an option to keep the record-route header which the proxy added in the dialog. The result is that a generated BYE (through mi dlg_end_dlg) will pass through the proxy on the callee leg (not the caller leg).
For the proxy it looks as though the caller has hungup and can do standard BYE processing like accounting and stopping RTP proxy.
The behaviour is configurable by a module option.
Sounds useful. I wonder what happens if this option is turned on, but the proxy does not add a Record-Route header (e.g. misconfiguration)
klaus
It probably does 'the wrong thing' then. Doesn't the dialog module require a correctly setup Record-Routing anyway?
Alex.