Hi Tung,
append_to_reply() applies only for replies locally generated by the proxy and not to the relayed replies (received and forwarded). For this later case, you have to use the onreply_route() and add the header from there.
regards, bogdan
Tung Tran wrote:
Hi all,
I am trying to get some AVP value from radius and insert into the SIP messages. I am OK to get the AVPs from radius but dont know how to insert these values into reply messages ( 200 OK for Register and Invite request). Should someone help which command should be used on this case.
I tried these commands from route processing REGISTER message, but not sucess yet
insert_hf("credit-amount: $avp(s:h323-credit-amount)\r\n","SIP-AVP"); # avp_pushto("$br","$avp(s:h323-credit-amount)"); append_to_reply("Foo: $avp(s:h323-credit-amount)\r\n");
Regards,
Tung
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users