<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>You're right of course :-)</DIV>
<DIV>Samuel's approach is more correct, but I'm not sure you will be able to
generate the correct reply using save_noreply and sl_reply (with Contact)
?! Does save_noreply generate the reply?</DIV>
<DIV>g-)</DIV>
<DIV> </DIV>
<DIV>---- Original Message ----<BR>From: Java Rockx<BR>To: Greger V.
Teigre<BR>Cc: serusers<BR>Sent: Monday, June 20, 2005 02:21 PM<BR>Subject: Re:
[Serusers] Is there an AVP to alter "expires=" in<BR>REGISTERmessages?
<BR><BR>> Greger,<BR>> <BR>> That would be possible, but the way SER
generates the 200OK reply, it<BR>> would contain the altered "expires="
value. By doing so, the ATA<BR>> would take that new value and use it, so if
the ATA sent the REGISTER<BR>> with an expires=300 and SER replied with a
200OK and a contact header<BR>> containing expires=360, the ATA would not
send another REGISTER for<BR>> 360 seconds. <BR>>
<BR>> I was fooling around with sip_msg.c and reply.c were I padded
the<BR>> expires with 60 seconds before saving to usrloc and then removing
the<BR>> pad before sending the reply and it works, but I would just
feel<BR>> better by not altering the source code. <BR>>
<BR>> I guess I'd just feel more comfortable if SER had some sort of AVP
or<BR>> modparam for the registrar module that did this automagically.
<BR>> <BR>> Regards,<BR>> Paul<BR>> <BR>> <BR>> On 6/20/05,
Greger V. Teigre <greger@teigre.com> wrote:<BR>> It was supposed to be
short, but maybe too short. I meant doing the<BR>> subst on the REGISTER
message before save. <BR>> g-)<BR>> ---- Original Message ----<BR>>
From: Greger V. Teigre<BR>> To: Java Rockx ; serusers<BR>> Sent: Monday,
June 20, 2005 09:01 AM<BR>> Subject: Re: [Serusers] Is there an AVP to alter
"expires=" in<BR>> REGISTERmessages?<BR>> <BR>>> Hi
Paul,<BR>>> Would it be possible to "do it upside down" ? ;-) I.e.
do a<BR>>> subst("/^Expires:(.*)[0-9]$/ Expires:
yourvalue+60/gi");<BR>>> g-)<BR>>> <BR>>> ---- Original
Message ----<BR>>> From: Java Rockx<BR>>> To: serusers<BR>>>
Sent: Sunday, June 19, 2005 04:28 PM<BR>>> Subject: [Serusers] Is there an
AVP to alter "expires=" in REGISTER<BR>>> messages?<BR>>>
<BR>>>> Hi All.<BR>>>> <BR>>>> We've got some ATAs
that don't quite re-REGISTER in a timely fashion<BR>>>> and therefore
SER expires the usrloc record a few seconds before the<BR>>>> ATA sends
another REGISTER message.<BR>>>> <BR>>>> Is there an AVP or
something to add, for example, 60 seconds to the<BR>>>> "expires="
value in the REGISTER message prior to calling save()? By<BR>>>> doing
so, these "broken" ATAs would re-REGISTER before SER removes<BR>>>> the
usrloc record from cache.<BR>>>> <BR>>>>
Regards,<BR>>>> Paul<BR>>>> <BR>>>> <BR>>>>
<BR>>>> <BR>>>>
_______________________________________________<BR>>>> Serusers mailing
list<BR>>>> serusers@lists.iptel.org<BR>>>>
http://lists.iptel.org/mailman/listinfo/serusers<BR>>> <BR>>>
<BR>>> <BR>>>
_______________________________________________<BR>>> Serusers mailing
list<BR>>> serusers@lists.iptel.org<BR>>>
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>