Andrei Pelinescu-Onciul writes:
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).
i only have one public listen address, which i force in requests to UAs. if you have, for example, a separate listening address for gateways, you will know when request is going to such and you can force that instead.
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.
i'll write it tomorrow.
-- juha