Greger,<br>
<br>
That would be possible, but the way SER generates the 200OK reply, it
would contain the altered &quot;expires=&quot; value. By doing so, the ATA would
take that new value and use it, so if the ATA sent the REGISTER with an
expires=300 and SER replied with a 200OK and a contact header
containing expires=360, the ATA would not send another REGISTER for 360
seconds.<br>
<br>
I was fooling around with sip_msg.c and reply.c were I padded the
expires with 60 seconds before saving to usrloc and then removing the
pad before sending the reply and it works, but I would just feel 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
modparam for the registrar module that did this automagically.<br>
<br>
Regards,<br>
Paul<br><br><div><span class="gmail_quote">On 6/20/05, <b class="gmail_sendername">Greger V. Teigre</b> &lt;<a href="mailto:greger@teigre.com">greger@teigre.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







<div>It was supposed to be short, but maybe too short. I meant doing the subst 
on the REGISTER message before save.</div><span class="sg">
<div>g-)</div></span><div><span class="e" id="q_104989adec04dca2_2">
<div>---- 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 &quot;expires=&quot; in<br>REGISTERmessages? <br><br>&gt; Hi 
Paul,<br>&gt; Would it be possible to &quot;do it upside down&quot; ?&nbsp; ;-) I.e. do 
a<br>&gt; subst(&quot;/^Expires:(.*)[0-9]$/ Expires: yourvalue+60/gi&quot;); <br>&gt; 
g-)<br>&gt; <br>&gt; ---- Original Message ----<br>&gt; From: Java Rockx<br>&gt; 
To: serusers<br>&gt; Sent: Sunday, June 19, 2005 04:28 PM<br>&gt; Subject: 
[Serusers] Is there an AVP to alter &quot;expires=&quot; in REGISTER<br>&gt; 
messages?<br>&gt; <br>&gt;&gt; Hi All.<br>&gt;&gt; <br>&gt;&gt; We've got some 
ATAs that don't quite re-REGISTER in a timely fashion<br>&gt;&gt; and therefore 
SER expires the usrloc record a few seconds before the<br>&gt;&gt; ATA sends 
another REGISTER message.<br>&gt;&gt; <br>&gt;&gt; Is there an AVP or something 
to add, for example, 60 seconds to the<br>&gt;&gt; &quot;expires=&quot; value in the 
REGISTER message prior to calling save()? By<br>&gt;&gt; doing so, these 
&quot;broken&quot; ATAs would re-REGISTER before SER removes<br>&gt;&gt; the usrloc record 
from cache.<br>&gt;&gt; <br>&gt;&gt; Regards,<br>&gt;&gt; Paul<br>&gt;&gt; 
<br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; 
_______________________________________________<br>&gt;&gt; Serusers mailing 
list<br>&gt;&gt; <a href="mailto:serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">serusers@lists.iptel.org</a><br>&gt;&gt; 
<a href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.iptel.org/mailman/listinfo/serusers</a><br>&gt; <br>&gt; <br>&gt; 
<br>&gt; _______________________________________________<br>&gt; Serusers 
mailing list<br>&gt; <a href="mailto:serusers@lists.iptel.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Serusers@iptel.org</a><br>&gt; 
<a href="http://lists.iptel.org/mailman/listinfo/serusers" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.iptel.org/mailman/listinfo/serusers</a></div>

</span></div></blockquote></div><br>