[OpenSIPS-Devel] [ opensips-Patches-3519778 ] B2B_LOGIC: completely lumps support
SourceForge.net
noreply at sourceforge.net
Mon Jan 28 13:47:02 CET 2013
Patches item #3519778, was opened at 2012-04-20 03:03
Message generated for change (Settings changed) made by bogdan_iancu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3519778&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: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: Nick Altmann (nikbyte)
Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
Summary: B2B_LOGIC: completely lumps support
Initial Comment:
Now you can change all parts of message before b2b_init_request call and in b2b_request/b2b_reply routes.
It useful for add additional headers before b2b_init_request to pass through b2b (don't forget custom_headers param) and also for NAT processing in b2b_request/b2b_reply routes.
Instead of patch #3515749. Please, ignore/remove old patch.
----------------------------------------------------------------------
Comment By: Nick Altmann (nikbyte)
Date: 2012-10-18 11:45
Message:
The way we use this patch in our production environment to process NAT via
b2b:
route {
force_rport();
# Here are some checks, deny non-invite requests.
# Fix NATed contact and SDP in client requests
if (nat_uac_test("19")) fix_nated_contact();
if ( (has_body("application/sdp")) && (nat_uac_test("8")) )
fix_nated_sdp("10");
b2b_init_request("top hiding");
exit;
}
route[B2B_REQUEST] {
force_rport();
# Fix NATed contact and SDP in client requests
if (nat_uac_test("19")) fix_nated_contact();
if ( (has_body("application/sdp")) && (nat_uac_test("8")) )
fix_nated_sdp("10");
# Also we can add this our custom headers
}
route[B2B_REPLY] {
# Here we can also add our custom headers
}
onreply_route {
# Fix NATed contact and SDP in client replies
if (nat_uac_test("97")) fix_nated_contact();
if ( (has_body("application/sdp")) && (nat_uac_test("8")) )
fix_nated_sdp("10");
}
----------------------------------------------------------------------
Comment By: Nick Altmann (nikbyte)
Date: 2012-10-18 04:00
Message:
Added v4 patch.
Fixed:
- b2b_request_route called before tm transaction created. Now we can use
force_rport() and change contact header in b2b_request_route. We use it to
process NAT on b2b.
----------------------------------------------------------------------
Comment By: Nick Altmann (nikbyte)
Date: 2012-09-10 03:09
Message:
Added actual v3 patch.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3519778&group_id=232389
More information about the Devel
mailing list