Hi Mikko,
I have configured the kamailio.cfg file as given below
onreply_route[MANAGE_REPLY] {
xdbg("incoming reply\n");
if(method == "REGISTER") {
append_to_reply("Security-Server: ipsec-3gpp; q=0.1; alg=hmac-md5-96; ealg=des-ede3-cbc; prot=ah; mod=trans; spi-c=3333; spi-s=4444; port-c=5066; port-s=5068\r\n");
}
if(status=~"[12][0-9][0-9]")
route(NATMANAGE);
}
Now I am getting below error message
loading modules under config path: /usr/local/lib64/kamailio/modules/
0(3002) ERROR: <core> [cfg.y:3282]: yyparse(): misused command append_to_reply
0(3002) : <core> [cfg.y:3426]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 982, column 164: Command cannot be used in the block
ERROR: bad config file (1 errors)
0(3002) WARNING: <core> [ppcfg.c:219]: pp_ifdef_level_check(): different number of preprocessor directives: N(#!IF[N]DEF) - N(#!ENDIF) = 1