Forum Discussion

unsuch_193639's avatar
unsuch_193639
Icon for Nimbostratus rankNimbostratus
Sep 06, 2015

regarding remove SIP Route header,Please help to confirm the iRule.

in qkview info, we could see the current irule rule SIP-forward { when SIP_REQUEST_SEND { SIP::header insert "Record-Route" "" } when SIP_RESPONSE_SEND { if { [SIP::header "Record-Route"] ne "" }{ SIP::header remove "Record- Route" SIP::header insert "Record- Route" "" } }

what we need is the following

The flow is like the following 1) IMS NE send invite request to F5

  INVITE sip:callee@domain.com SIP/2.0
  Contact: sip:caller@u1.example.com
  Record-Route: 

2) When F5 recives the invite request , it will add one record-Route which is itself and send to VMS INVITE sip:callee@domain.com SIP/2.0 Contact: sip:caller@u1.example.com Record-Route: Record-Route:

This is controlled by the irule when SIP_REQUEST_SEND { SIP::header insert "Record-Route" "" }

3) VMS response and the header will have a Route like the following Route: , sip:10.153.0.11;lr;Dpt=7ba4_116;Role=3;CxtId=4;spln=S;X-HwB2bUaCookie=732;TRC=5b38-5b39”.

10.22.4.135 is F5 internal float IP self 10.22.4.135 { netmask 255.255.255.192 unit 1 floating enable vlan Internal_SIP allow default }

4) F5 send the response to IMS , but IMS could not handle this "Route:,sip:10.153.0.11;lr;Dpt=7ba4_116;Role=3;CxtId=4;spln=S;XHwB2bUaCookie=732;TRC=5b38-5b39”."

IMS want Route:sip:10.153.0.11;lr;Dpt=7ba4_116;Role=3;CxtId=4;spln=S;X-HwB2bUaCookie=732;TRC=5b38-5b39”.

so we need to remove "," from the Route header.

No RepliesBe the first to reply