On Nov 09, 2009 at 13:08, Juha Heinanen jh@tutpro.com wrote:
Andrei Pelinescu-Onciul writes:
I have somewhere a function that does just that (using the above format). I used it a long time ago for load balancing (IIRC lb added received="..." to nated contacts when forwarding to the proxies behind it and removed "received" from r-uri, set the proper send socket based on dstip and the destination based on the received=uri when forwarding a message from a proxy to the outside world). I can create a new module for it (if it's not already in one of them).
andrei,
there is a long thread on this and the needed functions have already been written.
You will need also to save the local ip:port on which the packet is received by the proxy. They will be needed when forwarding a packet with and alias in r-uri, to make sure the same socket/ip:port will be used for sending (or else it won't work with nats if you have several listen addresses).
the only function that is missing is one that returns the number of rr uris in the message. do you happen to have that somewhere in your closet? it would be highly appreciated.
No, I don't have anything for counting rr uris.
Andrei