<!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) 
?!&nbsp; Does save_noreply generate the reply?</DIV>
<DIV>g-)</DIV>
<DIV>&nbsp;</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>&gt; Greger,<BR>&gt; <BR>&gt; That would be possible, but the way SER 
generates the 200OK reply, it<BR>&gt; would contain the altered "expires=" 
value. By doing so, the ATA<BR>&gt; would take that new value and use it, so if 
the ATA sent the REGISTER<BR>&gt; with an expires=300 and SER replied with a 
200OK and a contact header<BR>&gt; containing expires=360, the ATA would not 
send another REGISTER for<BR>&gt; 360 seconds.&nbsp;&nbsp;&nbsp;&nbsp; <BR>&gt; 
<BR>&gt; I was fooling around with sip_msg.c and reply.c were I padded 
the<BR>&gt; expires with 60 seconds before saving to usrloc and then removing 
the<BR>&gt; pad before sending the reply and it works, but I would just 
feel<BR>&gt; better by not altering the source code.&nbsp;&nbsp; <BR>&gt; 
<BR>&gt; I guess I'd just feel more comfortable if SER had some sort of AVP 
or<BR>&gt; modparam for the registrar module that did this automagically. 
<BR>&gt; <BR>&gt; Regards,<BR>&gt; Paul<BR>&gt; <BR>&gt; <BR>&gt; On 6/20/05, 
Greger V. Teigre &lt;greger@teigre.com&gt; wrote:<BR>&gt; It was supposed to be 
short, but maybe too short. I meant doing the<BR>&gt; subst on the REGISTER 
message before save. <BR>&gt; g-)<BR>&gt; ---- Original Message ----<BR>&gt; 
From: Greger V. Teigre<BR>&gt; To: Java Rockx ; serusers<BR>&gt; Sent: Monday, 
June 20, 2005 09:01 AM<BR>&gt; Subject: Re: [Serusers] Is there an AVP to alter 
"expires=" in<BR>&gt; REGISTERmessages?<BR>&gt; <BR>&gt;&gt; Hi 
Paul,<BR>&gt;&gt; Would it be possible to "do it upside down" ?&nbsp; ;-) I.e. 
do a<BR>&gt;&gt; subst("/^Expires:(.*)[0-9]$/ Expires: 
yourvalue+60/gi");<BR>&gt;&gt; g-)<BR>&gt;&gt; <BR>&gt;&gt; ---- Original 
Message ----<BR>&gt;&gt; From: Java Rockx<BR>&gt;&gt; To: serusers<BR>&gt;&gt; 
Sent: Sunday, June 19, 2005 04:28 PM<BR>&gt;&gt; Subject: [Serusers] Is there an 
AVP to alter "expires=" in REGISTER<BR>&gt;&gt; messages?<BR>&gt;&gt; 
<BR>&gt;&gt;&gt; Hi All.<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; We've got some ATAs 
that don't quite re-REGISTER in a timely fashion<BR>&gt;&gt;&gt; and therefore 
SER expires the usrloc record a few seconds before the<BR>&gt;&gt;&gt; ATA sends 
another REGISTER message.<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; Is there an AVP or 
something to add, for example, 60 seconds to the<BR>&gt;&gt;&gt; "expires=" 
value in the REGISTER message prior to calling save()? By<BR>&gt;&gt;&gt; doing 
so, these "broken" ATAs would re-REGISTER before SER removes<BR>&gt;&gt;&gt; the 
usrloc record from cache.<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 
Regards,<BR>&gt;&gt;&gt; Paul<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 
<BR>&gt;&gt;&gt; <BR>&gt;&gt;&gt; 
_______________________________________________<BR>&gt;&gt;&gt; Serusers mailing 
list<BR>&gt;&gt;&gt; serusers@lists.iptel.org<BR>&gt;&gt;&gt; 
http://lists.iptel.org/mailman/listinfo/serusers<BR>&gt;&gt; <BR>&gt;&gt; 
<BR>&gt;&gt; <BR>&gt;&gt; 
_______________________________________________<BR>&gt;&gt; Serusers mailing 
list<BR>&gt;&gt; serusers@lists.iptel.org<BR>&gt;&gt; 
http://lists.iptel.org/mailman/listinfo/serusers</DIV></BODY></HTML>