Forum Discussion
penghon_71315
Oct 18, 2008Nimbostratus
You are correct about the event SERVER_CONNECTED, using IP::local_addr (or something similar, cannot remember off hand right now) to obtain the SNAT automap IP used for the connection to the pool member.
But this would have been too late as the packet would have gone out to the pool member.
While there might be a better way to do this, I am trying to use an irule to change the Via header off a SIP REGISTER packet, replacing the client source IP with a SNAT automapped IP via an LC with 3 ISP links.
While I can change the client source IP with hardcoded snat IP, being able to replace the IP automatically is a good thing. As to why i am changing the VIA header...its just for testing the SIP protocol and not for production.