Hi Duarte,
On Wed, Jan 24, 2018 at 06:55:27PM +0000, Duarte Rocha wrote:
Right now i'm doing a redirect server and i'm trying to sinalize the redirection using a 3xx reply. In order to do that, according the RFC I need to add a Contact and Diversion header. How do i do that ? i'm creating the reply with send_reply() but i can't seem to find a way to add these parameters to the reply.
append_to_reply() (from textops) is your friend here:
append_to_reply("Contact: sip:duarte@sip.rocha.aq\r\n");
-- Alex