Apply HMR before processing an invalid message
If you want to apply HMR before processing an invalide message on SBC, you can add "inmanip-before-validate=yes" option on sip-config.
The following example is SBC reply 200 OK to an invalid OPTIONS message(wrong URI-USER on To header).
sip-interface->in-manipulationid InPeer
sip-interfaee->out-manipulationid OutPeer
sipmsg.log:
Nov 1 22:48:23.791 On [1:0]172.16.10.100:5060 received from 172.16.10.254:5060
OPTIONS sip:172.16.10.100;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 172.16.10.254:5060;branch=z9hG4bK-2453-1-0
Call-ID: 1-2453@172.16.10.254
From: <sip:0001@172.16.10.100>;tag=1
To: <sip:Test_Test:5060>
User-Agent: stevebooks.com OPTIONS test agents.
Max-Forwards: 70
CSeq: 1 OPTIONS
----------------------------------------
Nov 1 22:48:23.791 On [1:0]172.16.10.100:5060 sent to 172.16.10.254:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.10.254:5060;branch=z9hG4bK-2453-1-0
Call-ID: 1-2453@172.16.10.254