[OpenSIPS-Users] B2BUA, authenticated INVITEs with "ACK for a negative reply"

Nathan Ward opensips-list at daork.net
Tue Nov 29 03:09:05 CET 2016


> On 29/11/2016, at 5:25 AM, Răzvan Crainea <razvan at opensips.org> wrote:
> 
> Hi, Nathan!
> 
> Have you tried calling b2b_init_request() with the "a" flag [1]?
> 
> [1] http://www.opensips.org/html/docs/modules/2.2.x/b2b_logic.html#id294010

Hi,

Yes I have. This passes through the authentication challenge headers in the 401/407, and then any subsequent response headers in the new INVITE.

b2b_logic/logic.c:1239 calls b2b_mark_todel, after forwarding the message - because it is marked to_del, the ACK that the originator of the INVITE sends in response to the 401/407 deletes the session.

I don’t understand how this flag is intended to be used, as there doesn’t seem to be anything in the code to avoid setting to_del if the response is a 401/407 (or anything >=300, actually) with auth challenge headers. All it does is pass through the headers, but as it deletes the session, a new Call-ID is issued by B2BUA when the authenticated invite is generated.

--
Nathan Ward


More information about the Users mailing list