we have asterisk based sip server and softphones.we created invite flooding attack on server.Now we want to change the sip header so that we can minimize invite flooding attack.
You need a SIP proxy server between your "asterisk based sip server and softphones". This proxy will work as an entry point, rewrite header and send SIP message to your Asterisk server. There is a number of implementations, just google "simple sip proxy".