[OpenSIPS-Devel] registrar: new AVP to add extra headers to the REGISTER reply
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Tue Sep 30 11:32:21 CEST 2008
Hi Phil,
If I understand correctly what you try to achieve, I would say you
already can do it - before doing save("location") you can do
append_to_reply("P-Associated-URI: ..................\r\n"); - this new
header will be added to the reply generated by the save() function.
Please let me know if I'm missing something.
Thanks and regards,
Bogdan
Phil Vandry wrote:
> 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
>
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
>
>
More information about the Devel
mailing list