Forum Discussion

Romel_77740's avatar
Romel_77740
Icon for Nimbostratus rankNimbostratus
Aug 05, 2010

setting From header

How can I set the value of SIP From header to a new string? So INVITE comes with From header with string S. I have the irule transform it to another string T. But how can I set it? It looks like SIP::from can only retrieve the string but cannot set it (unlike SIP::uri).
  • Patrick_Chang_7's avatar
    Patrick_Chang_7
    Historic F5 Account
    The SIP methods are built on top of the base UDP methods. You can scan the UDP::payload and use UDP::payload replace to do what you want. Please note that you may have to b64encode any binary data off box, input the b64encoded form into the iRule and b64decode it on the fly in the iRule.