I am trying to manipulate a portion of a SIP INVITE with an irule. This is a version 12 F5.
The irule is this:
when SIP_REQUEST { log local0. “The TO header before changes is [SIP::header “To”]” Check if TO contains if { [SIP::header “To”] contains “TENANT_SG1_105_85TEST” }{
Replace tenant with the ANI
SIP::header [string map "TENANT_SG1_105_85TEST 6144322478" [SIP::header "To"]]
log local0. "The TO header after changes is [SIP::header "To"]"
}
}
The logs that result, show no change below:
REQUEST>: The TO header before changes is ;tag=908821817 Mar 5 03:18:56 itfccs1lb02 info tmm[16925]: Rule /Common/HCR_SIP_Rewrite1 : The TO header after changes is ;tag=908821817