Forum Discussion
daviddaoud2_205
Nimbostratus
Jun 03, 2008BUG in iRule with SIP messages
Hello,
I have found what looks like a "bug" in the use of iRules to modify SIP messages and redirect them. Here is the thing:
My code looks like:
when SIP_REQUEST {
if { ( [SIP::method] equals "INFO" ) } {
log local0. " INFO IS HERE "
node 1.2.3.4 5060
}
The goal is simply to redirect the INFO messages to 1.2.3.4 (I could use the command pool, it's the same!). I can see in the log "INFO IS HERE", I can even modify headers for the INFO messages BUT the message is NOT redirected !
Why? Probably because there is some kind of SIP Persistence that forces the decision of the BIG-IP. This latter probably thinks: ' with this call-id I should send it to this server'.
However I havent configured any SIP persistence but just a simple SIP Profile (all options disabled).
Do you have a clue how to change this and provok the REDIRECTION of the messages?
Thanks a lot, I'm really stuck here!
Cheers,
David
- hoolio
Cirrostratus
Hi David, - hoolio
Cirrostratus
Or... maybe what you're running into is the default UDP packet handling? If you enable 'Datagram LB' on the UDP profile, does it resolve the issue? - daviddaoud2_205
Nimbostratus
Yes, the iRule worked: the problem was that when the option ADDRESS TRANSLATION was not activated, the new destination address wasnt changed by the BIG-IP. - daviddaoud2_205
Nimbostratus
hmm sorry I didnt see your last post. Im using the Protocole Profile : UDP (default one). - daviddaoud2_205
Nimbostratus
piew ... you are excellent man! You just solved my problem. - daviddaoud2_205
Nimbostratus
A last question: - hoolio
Cirrostratus
I would guess SIP::header should work on both requests and responses, but I've never tested it. Can you post the code from the SIP_RESPONSE event in your rule? Do you see any errors in /var/log/ltm when the event is triggered? If you add a debug log line, do you see it logged? - daviddaoud2_205
Nimbostratus
when SIP_RESPONSE { - daviddaoud2_205
Nimbostratus
Hey hoolio, - hoolio
Cirrostratus
Hi David,
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