Re: [SR-Users] Need to add extra header in 200 OK message by using kamailio.cfg file

2015-06-08 Thread Daniel-Constantin Mierla
If you want to add a header to a received reply handled in onreply_route, simply use append_hf(...). Cheers, Daniel On 06/06/15 09:31, Mikko Lehto wrote: > Priyaranjan Nayak : > >> loading modules under config path: /usr/local/lib64/kamailio/modules/ >> 0(3002) ERROR: [cfg.y:3282]: yyparse():

Re: [SR-Users] Need to add extra header in 200 OK message by using kamailio.cfg file

2015-06-06 Thread Mikko Lehto
Priyaranjan Nayak : > loading modules under config path: /usr/local/lib64/kamailio/modules/ > 0(3002) ERROR: [cfg.y:3282]: yyparse(): misused command > append_to_reply > 0(3002) : [cfg.y:3426]: yyerror_at(): parse error in config file > /usr/local/etc/kamailio/kamailio.cfg, line 982, column 1

Re: [SR-Users] Need to add extra header in 200 OK message by using kamailio.cfg file

2015-06-05 Thread Priyaranjan Nayak
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=; spi

Re: [SR-Users] Need to add extra header in 200 OK message by using kamailio.cfg file

2015-06-05 Thread Mikko Lehto
Priyaranjan Nayak : > I wanted to send a extra header(i.e. Security-Server ) in the 200 OK from > kamailio server. Could you please suggest me how can I add extra header in > 200 OK message by using kamailio.cfg file ? Hi Priyaranjan Maybe you are looking for script function append_to_reply() ?

[SR-Users] Need to add extra header in 200 OK message by using kamailio.cfg file

2015-06-05 Thread Priyaranjan Nayak
Hi All, I wanted to send a extra header(i.e. Security-Server ) in the 200 OK from kamailio server. Could you please suggest me how can I add extra header in 200 OK message by using kamailio.cfg file ? Thanks Priyaranjan ___ SIP Express Router (SER) and