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():
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
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
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() ?
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