Thanks for the feedback all. <br>
<br>
I've been considering what to do with this issue, and I decided that it
is better to (but more painful) to have the vendor fix their firmware
than it is for me to alter SER's functionality in a way as to move it
away from RFC compliance.<br>
<br>
The save_extended_expires suggestion would be an easy fix, but the right thing to do is fix the problem rather than the symptom.<br>
<br>
Regards,<br>
Paul<br><br><div><span class="gmail_quote">On 6/21/05, <b class="gmail_sendername">Samuel Osorio Calvo</b> &lt;<a href="mailto:samuel.osorio@nl.thalesgroup.com">samuel.osorio@nl.thalesgroup.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;">
I
was taking a more detailled look at the code and it seems that the
Contact header will not be added into the reply if you use
save_noreply+sl_send_reply because the Contact buffer is added inside
the registrar module....but I recall that it worked. I suggest you to
give it a try and see the answer with ethereal|ngrep|* maybe it is
taken after when constructing the answer from the sipmsg.<br>Anyhow it
would be easy to add a save_extended_expires command that makes what
you need but, as I said, people can start using these SIP patches to
build even more non-compliant proxies with SER....<br><br>Samuel.<br><br><br>Unclassified.<br>&gt;&gt;&gt; &quot;Greger V. Teigre&quot; &lt;<a href="mailto:greger@teigre.com">greger@teigre.com</a>&gt; 06/21/05 07:19AM &gt;&gt;&gt;
<br>You're right of course :-)<br>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;&nbsp;Does save_noreply generate the reply?<br>g-)<br><br>---- 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 &quot;expires=&quot; 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 &quot;expires=&quot; 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.<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.
<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;
<a href="mailto:greger@teigre.com">greger@teigre.com</a>&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 &quot;expires=&quot; in<br>&gt; REGISTERmessages?<br>
&gt;<br>&gt;&gt; Hi Paul,<br>&gt;&gt; Would it be possible to &quot;do it upside down&quot; ?&nbsp;&nbsp;;-) I.e. do a<br>&gt;&gt; subst(&quot;/^Expires:(.*)[0-9]$/ Expires: yourvalue+60/gi&quot;);<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 &quot;expires=&quot; 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; &quot;expires=&quot; value in the REGISTER message prior to calling save()? By<br>&gt;&gt;&gt; doing so, these &quot;broken&quot; 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; <a href="mailto:Serusers@iptel.org">serusers@lists.iptel.org</a><br>&gt;&gt;&gt; <a href="http://mail.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers
</a><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">serusers@lists.iptel.org</a><br>&gt;&gt; <a href="http://lists.iptel.org/mailman/listinfo/serusers">
http://lists.iptel.org/mailman/listinfo/serusers</a><br><br></blockquote></div><br>