On 08/04/2021 13:07, Daniel-Constantin Mierla wrote:
Normally one should do loose_route() for requests within dialog if record_route is done for initial requests in a SIP proxy, in order to consume the Route headers. If you know that next hop is an endpoint and its routing is not influenced by Route headers, probably you can skip loose_route(), but I would do it to be proper SIP processing, or at least remove the Route header with remove_hf().
On the other hand, I just noticed in your first message that you wanted to update R-URI, and that is done by ds_select_domain(). The ds_select_dst() update dst uri (outbound proxy address).
Thanks, I'll try ds_select_domain.
-Barry