Hi,
On 10/25/2012 02:51 PM, Olle E. Johansson wrote:
Is there a way in kamailio to statelessy forward a request without putting its own Via header into the message? Consider an example where a stateless load-balancer sends a request to a proxy A, which again statelessy forwards it to another proxy B, while it's not interested in staying in the path even for replies. It's not necessary either because the load-balancer, which would receive the replies from B then, can pass them along according to the Via path, so no tm or something is involved.
This might break some RFC, but it would remove proxy A completely out of the path once the request got forwarded. In theory this seems possible if it's ensured that both the load-balancer and proxy A act strictly stateless, no?
From the cookbook on the wiki:
/O
send
Send the original SIP message to a specific destination in stateless mode. No changes are applied to received message, no Via header is added. Host can be an IP or hostname. Used protocol: UDP
Parameter is mandatory and has string format.
Example of usage:
send("10.10.10.10:5070");
Oh, thanks for the hint! I was always thinking about using forward(). Will double-check send() again!
Andreas