I am not sure that it's just about appending a new header in the "on_reply" route with a some random value, because the "Expires" value of 200-OK response must be between "Min-Expires" and "Expires" of the PUBLISH request.  If we are talking about SUBSCRIBE, then Expires in the 200-OK may be the same as in the request or should shorten. 



On Fri, Oct 6, 2017 at 1:46 PM, Yuriy Gorlichenko <ovoshlook@gmail.com> wrote:
On your config file. It describes onreply_route{}

Ithink at your config it is already exists. Try to find it and add described previously

2017-10-06 13:42 GMT+03:00 Subba Krishna MG <meetmgsk@gmail.com>:
where should i include this line of code?

Can you please elaborate?



On Fri, Oct 6, 2017 at 4:08 PM, Yuriy Gorlichenko <ovoshlook@gmail.com> wrote:
try

onreply_route{
    if (is_method("PUBLISH") && t_check_status("200|202")) append_hf("Expires: 360\r\n");
}

2017-10-06 13:30 GMT+03:00 Subba Krishna MG <meetmgsk@gmail.com>:
Hello,


How do i include Expires header for 200 OK message?

One of the manual says this.. how do i modify my existing config file to include this?

I am using : /usr/local/etc/kamailio/kamailio.cfg for configuration.

Rgds,
MGSK

1.4.9. expires_offset (int)

The value that should be subtracted from the expires value when sending a 200OK for a publish. It is used for forcing the client cu send an update before the old publish expires.

Default value is "0".

Example 1-9. Set expires_offset parameter

...
modparam("presence", "expires_offset", 10)

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users