#217 B2B_LOGIC - possibility to add headers from script

trunk
closed-accepted
Anca Vamanu
modules (179)
5
2013-01-23
2012-04-07
Anonymous
No

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.

Discussion

  • a719719
    a719719
    2012-10-24

    I would like to do the following:

    route[b2b_reply] {
    xlog("b2b_reply ($ci)\n");

    if(remove_hf("Allow"))
    {
    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!

     
  • Anca Vamanu
    Anca Vamanu
    2012-11-07

    Hi Nick,

    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).

    Regards,
    Anca

     
  • Anca Vamanu
    Anca Vamanu
    2012-11-07

    Hi a719719,

    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.

    Regards,
    Anca

     
    • assigned_to: nobody --> anca_vamanu
    • status: open --> closed-accepted