[OpenSIPS-Devel] registrar: new AVP to add extra headers to the REGISTER reply

Phil Vandry vandry at TZoNE.ORG
Tue Sep 23 04:54:22 CEST 2008


Hello OpenSIPS developers,

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

http://sourceforge.net/tracker/index.php?func=detail&aid=2123828&group_id=232389&atid=1086412

-Phil



More information about the Devel mailing list