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

2014-02-07 Thread Bogdan-Andrei Iancu

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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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

2014-01-23 Thread Java Jalwa
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@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users