On 25-02 16:08, Jos? Luis Pe?alver Paret wrote:
Hello, when I receive a certain request, I intend to insert a Route header and then forward that request to the URI in the Route header. But when loose_route is called, it prints:
find_first_route(): No Route headers found loose_route(): There is no Route HF
This is the part of the config file:
# This would be done in a module function of my own, it is simplified: append_hf("Route: 10.10.10.80:5062"); # loose-route processing if (loose_route()) { t_relay(); break; };
Can anybody help me? How can I forward the request to the URI in the Route header that I previously inserted? It seems loose_route does not take into account changes, it looks at the request as it was received.
Yes, this is exactly how it is. Changes made to the SIP message are not visible in the rest of the script. As a quick hack, you can consider forwarding the message back to the proxy itself over the loopback, in the following run it will see the header.
Jan.