Forum Discussion
telcentris_9103
Oct 08, 2010Nimbostratus
Lookup spurce ip address from persist entries
Here is my scenario
SIP VoIP
A(1.1.1.1) SUBSCRIBE --> F5 VS(2.2.2.2) --> B(3.3.3.3)
A <-- F5 VS <-- 200OK B
A <-- F5 VS <-- NOTIFY B
My issue is on the NOTIFY. ...
Ben_95489
Oct 12, 2010Nimbostratus
Hey Darren,
I will disclaim this by stating that my experience with the SIP profile on the LTMs is fairly limited, so I could be missing something critical in my analysis. I believe, though, you can use the IP::remote_addr to get the appropriate address. ( http://devcentral.f5.com/wiki/default.aspx/iRules/IP__remote_addr.html ) You might need to use the clientside/serverside commands ( http://devcentral.f5.com/wiki/default.aspx/iRules/clientside.html ) to be sure that this grabs the correct address, though.
I believe the sample in the SIP::uri page attempts to accomplish something similar, actually: http://devcentral.f5.com/wiki/default.aspx/iRules/SIP__uri.html It seems like it would probably be wise to check the current SIP::uri to see if it mathes IP::local_addr and, if so, replace it with IP::remote_addr.
Again, my SIP-fu is weak, so feel free to correct me if I have a fundamental misunderstanding of the protocol. (Which is likely.)
// Ben
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects