This patch adds the ability to add custom headers to the successful reply to a REGISTER request.
The user must load the extra headers into an AVP from the request route before calling save(). During the construction of the 200 OK reply inside save() this AVP is consulted and its contents are inserted into the reply.
Motivating use case:
In IMS environments, the SIP registrar supplies the terminal with a list of PUIs (public user identities) that are associated with the registering endpoint. This list is passed in the reply to a successful REGISTER by the endpoint as a list of "P-Associated-URI" headers.
In OpenSIPS there is no existing general way to customize the reply to a REGISTER request.
The patch is for opensips-1.4.1-tls
Log in to post a comment.