[SR-Users] SIP -

Subba Krishna MG meetmgsk at gmail.com
Fri Oct 6 12:42:36 CEST 2017


where should i include this line of code?

Can you please elaborate?



On Fri, Oct 6, 2017 at 4:08 PM, Yuriy Gorlichenko <ovoshlook at 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 at 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 at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171006/8ea818fc/attachment.html>


More information about the sr-users mailing list