[OpenSIPS-Devel] [ opensips-Patches-3515749 ] B2B_LOGIC - possibility to add headers from script
SourceForge.net
noreply at sourceforge.net
Wed Nov 7 16:51:36 CET 2012
Patches item #3515749, was opened at 2012-04-07 12:52
Message generated for change (Comment added) made by anca_vamanu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3515749&group_id=232389
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: trunk
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: B2B_LOGIC - possibility to add headers from script
Initial Comment:
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.
----------------------------------------------------------------------
Comment By: Anca Vamanu (anca_vamanu)
Date: 2012-11-07 07:51
Message:
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
----------------------------------------------------------------------
Comment By: Anca Vamanu (anca_vamanu)
Date: 2012-11-07 07:47
Message:
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
----------------------------------------------------------------------
Comment By: a719719 (a719719)
Date: 2012-10-24 13:54
Message:
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!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3515749&group_id=232389
More information about the Devel
mailing list