Forum Discussion
shaig_162391
Nimbostratus
Jul 29, 2014iRules with regex and multi pool
Hi,
I need to configure iRule when sip request is sent to VIP and the sip header contain the word "INVITE" send the traffic to pool x
And when sip header contain the word " MESSAGE" send the tr...
Kevin_Stewart
Employee
Jul 29, 2014The INVITE string is going to be a method, not a header, so per the SIP wiki section:
https://devcentral.f5.com/wiki/iRules.SIP.ashx
the following may work for that part:
when SIP_REQUEST {
if { [SIP::method] equals "INVITE" } {
pool pool_x
}
}
I'm not a SIP expert by any means, but pouring through RFC3261, I don't see any specific method or request header that contains "MESSAGE" (other than a Content-Type header used to tunnel SIP traffic).
As for the port, that is defined in the destination port section of the VIP itself.
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