Forum Discussion
iRules 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 traffic to pool y. I also need that this vip will answer to tcp & udp 5060 only .
Thanks Shai
1 Reply
- Kevin_Stewart
Employee
The 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
* 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