[OpenSIPS-Users] Manipulating Contact header in locally generated 200 OK for a REGISTER

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Feb 7 16:42:40 CET 2014


Hello,

The SIP RFC3261 says that only the registered URI contact (along with 
the URI params) are to be stored by the registrar server. The header 
params are not to be stored.
So, should I understand the that GSMA specs may conflict with the SIP 
specs ???

BTW, do you have an example of such a Contact hdr ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 24.01.2014 08:00, Java Jalwa wrote:
> Hello experts, I am using the registrar module and the save() function 
> automatically sends a 200 OK for the REGISTER. However the Contact 
> header built by the registrar module removes all the feature tags such 
> as +g.oma.sip-im, +sip.instance etc. To be spec compliant with certain 
> GSMA specs I need to keep these feature tags / parameters in the 
> Contact header of 200 response, while at the same time want the 
> registrar module to add expires and received= params.
> append_to_reply() is not something that is useful for achieving this 
> since it adds a new header. Is there anyway to achieve this without 
> having to hack the registrar module ?
>
> Using the "r" flag in save method, would force the registrar module to 
> not send a reply, however if I use sl_send_reply("200", "OK") after 
> calling save("location","fr"); the 200 OK does not contain the Contact 
> header at all.
>
> Any suggestions as to how I can achieve this ?
>
> Thanks.
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140207/b7947fe4/attachment.htm>


More information about the Users mailing list