Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
Based on feature request #3514222.
With this patch insert_hf/append_hf are working before b2b_request_init and in b2b_request/b2b_reply routes.
I would like to do the following:
append_hf("Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, INFO\r\n");
The remove_hf return true but the 180 ringing reply still has the same Allow header.
Will this patch make this happen? Thanks!
Thank you for sending this patch (sorry for the long delay). I have committed it now in the trunk with small changes - rev 9432.
So now it is possible to add headers to the initial Invite(from request route before calling b2b_init_request) or for replies (from b2b_reply_route) or sequential requests (from b2b_request_route).
Unfortunately this patch only implements the possibility to add headers, not also to remove them.
But indeed for it to be consistent, the possibility to also remove a header should be available. I will try to implement this in the next period.