How to hide server name in sip reply? - Omid-Mohajerani/Learn-Kamailio GitHub Wiki
Kamailio is honest enough to reply to the server name with Kamailio's name and version in reply.
to hide it we can use topoh module in kamailio .
This module hides the SIP routing headers that show topology details. It is not affected by the server being transaction stateless or stateful. The script interpreter gets the SIP messages decoded, so all existing functionality is preserved.
The module is transparent for the configuration writer. It only needs to be loaded (tune the parameters if needed). The SIP server can be restarted without affecting ongoing calls - once it is up, can encode/decode topology details, thus no call will be lost.
in order to hide the server name you need to
1 - Load topoh module
loadmodule "topoh.so"
2 - set server header
server_header="Server: MS Lync";
3 - use modparam
modparam("topoh", "mask_key", "Omid key")