-
- Downloads
res_pjsip_outbound_registration: Don't fail on delayed processing.
Odd behaviors have been observed during outbound registrations. The most common problem witnessed has been one where a request with authentication credentials cannot be created after receiving a 401 response. Other behaviors include apparently processing an incorrect SIP response. Inspecting the code led to an apparent issue with regards to how we handle transactions in outbound registration code. When a response to a REGISTER arrives, we save a pointer to the transaction and then push a task onto the registration serializer. Between the time that we save the pointer and push the task, it's possible for the transaction to be destroyed due to a timeout. It's also possible for the address to be reused by the transaction layer for a new transaction. To allow for authentication of a REGISTER request to be authenticated after the transaction has timed out, we now hold a reference to the original REGISTER request instead of the transaction. The function for creating a request with authentication has been altered to take the original request instead of the transaction where the original request was sent. ASTERISK-25020 Reported by Mark Michelson Change-Id: I756c19ab05ada5d0503175db9676acf87c686d0a
Showing
- include/asterisk/res_pjsip.h 3 additions, 3 deletionsinclude/asterisk/res_pjsip.h
- res/res_pjsip.c 3 additions, 3 deletionsres/res_pjsip.c
- res/res_pjsip/pjsip_outbound_auth.c 1 addition, 1 deletionres/res_pjsip/pjsip_outbound_auth.c
- res/res_pjsip_outbound_authenticator_digest.c 3 additions, 3 deletionsres/res_pjsip_outbound_authenticator_digest.c
- res/res_pjsip_outbound_publish.c 3 additions, 1 deletionres/res_pjsip_outbound_publish.c
- res/res_pjsip_outbound_registration.c 15 additions, 8 deletionsres/res_pjsip_outbound_registration.c
Loading
Please register or sign in to comment