Forum Discussion
avi_krivorot_73
Nimbostratus
Feb 02, 2007Modifying SIP VIA header
Hi,
When we get a SIP INVITE from someone, the F5 always appends something to the reply message (TRYING) in the VIA header, see example:
Original INVITE:
Via: SIP/...
Tao_Liu_90341
Feb 05, 2007Historic F5 Account
First of all, string ";received=xxx" was added by the server behind F5 box, NOT Bigip.
Certainly, Bigip can help you remove that string in the response, the basic idea is to find the occurrence in UDP payload and remove it, an example:
rule xxx {
when SERVER_DATA {
if {[regexp -indices {(;received=[0-9.]+)} [UDP::payload] location] == 1} {
set offset [lindex $location 0]
set len [expr [lindex $location 1] - [lindex $location 0] + 1]
UDP::payload replace $offset $len ""
}
}
}
You should be able to find more in iRULE doc
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