<br><br><div class="gmail_quote">On Wed, Feb 24, 2010 at 8:03 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Be careful about the expires value - the usrloc module will choose an<br>
expire value based on the received expire and the max_expire (module<br>
param). You need to send back to the UAC exactly the same expire as the<br>
own determined by usrloc, otherwise the server and client will be out of<br>
sync from expiration point of view. Like the uac will think it is still<br>
registered, will the proxy will expire the UAC&#39;s contact.<br></blockquote><div><br>Ah. Got it.<br>Thanks, Bogdan.<br><br>regards,<br>takeshi<br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">
mayamatakeshi wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Feb 16, 2010 at 6:45 PM, Bogdan-Andrei Iancu<br>
</div><div class="im">&gt; &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi,<br>
&gt;<br>
&gt;     Yes, that is the only way - if REGISTRAR module builds the reply, it<br>
&gt;     will do it in RFC way (adding all the registered contacts) and you<br>
&gt;     cannot change this behaviour.<br>
&gt;<br>
&gt;<br>
&gt; Thanks,<br>
&gt; I tested it:<br>
&gt;<br>
&gt;         if (!save(&quot;location&quot;,&quot;rp1&quot;)) {<br>
&gt;             sl_reply_error();<br>
&gt;         }<br>
&gt;         append_to_reply(&quot;Contact: $ct;expires=40\r\n&quot;);<br>
&gt;         sl_send_reply(&quot;200&quot;,&quot;OK&quot;);<br>
&gt;<br>
&gt; It works fine.<br>
&gt;<br>
&gt; regards,<br>
&gt; takeshi<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;     mayamatakeshi wrote:<br>
&gt;     &gt;<br>
&gt;     &gt; On Tue, Feb 16, 2010 at 12:54 AM, mayamatakeshi<br>
&gt;     &gt; &lt;<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a> &lt;mailto:<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a>&gt;<br>
</div>&gt;     &lt;mailto:<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a> &lt;mailto:<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a>&gt;&gt;&gt;<br>
<div><div></div><div class="h5">&gt;     wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;     Hello,<br>
&gt;     &gt;     about registration, is it possible somehow to make opensips to<br>
&gt;     &gt;     reply with a &quot;200 OK&quot; containing only the Contact of the<br>
&gt;     &gt;     registering UA instead of all contacts from usrloc?<br>
&gt;     &gt;<br>
&gt;     &gt;     I&#39;m having a problem with eyebeam. It has a bug (at least the<br>
&gt;     &gt;     version I&#39;m testing) and it doesn&#39;t parse the Contact header<br>
&gt;     &gt;     correctly and it always gets the value of expires from the first<br>
&gt;     &gt;     contact listed.<br>
&gt;     &gt;     So in the case of a &quot;200 OK&quot; with a Contact like this:<br>
&gt;     &gt;<br>
&gt;     &gt;     Contact: &lt;<a href="http://sip:1000@192.168.2.5:5050" target="_blank">sip:1000@192.168.2.5:5050</a><br>
&gt;     &lt;<a href="http://sip:1000@192.168.2.5:5050" target="_blank">http://sip:1000@192.168.2.5:5050</a>&gt;<br>
&gt;     &gt;<br>
&gt;     &lt;<a href="http://sip:1000@192.168.2.5:5050" target="_blank">http://sip:1000@192.168.2.5:5050</a>&gt;&gt;;expires=5;received=&quot;sip:<a href="http://192.168.2.5:5050" target="_blank">192.168.2.5:5050</a><br>

&gt;     &lt;<a href="http://192.168.2.5:5050" target="_blank">http://192.168.2.5:5050</a>&gt;<br>
&gt;     &gt;     &lt;<a href="http://192.168.2.5:5050" target="_blank">http://192.168.2.5:5050</a>&gt;&quot;, &lt;<a href="http://sip:1000@192.168.0.2:8286" target="_blank">sip:1000@192.168.0.2:8286</a><br>
&gt;     &lt;<a href="http://sip:1000@192.168.0.2:8286" target="_blank">http://sip:1000@192.168.0.2:8286</a>&gt;<br>
&gt;     &gt;<br>
&gt;     &lt;<a href="http://sip:1000@192.168.0.2:8286" target="_blank">http://sip:1000@192.168.0.2:8286</a>&gt;&gt;;expires=40;received=&quot;sip:<a href="http://192.168.128.33:61717" target="_blank">192.168.128.33:61717</a><br>

&gt;     &lt;<a href="http://192.168.128.33:61717" target="_blank">http://192.168.128.33:61717</a>&gt;<br>
&gt;     &gt;     &lt;<a href="http://192.168.128.33:61717" target="_blank">http://192.168.128.33:61717</a>&gt;&quot;<br>
&gt;     &gt;<br>
&gt;     &gt;     it should get expires=40 but it is getting expires=5. And since<br>
&gt;     &gt;     eyebeam re-registers 5 seconds before expirations, it sends<br>
&gt;     &gt;     REGISTER immediately and this goes on in a loop till the expires<br>
&gt;     &gt;     of the first contact gets greater than 5 (when the other<br>
&gt;     terminal<br>
&gt;     &gt;     re-registers).<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; I have not tested yet, but I think I got it:<br>
&gt;     &gt; I have to call the function save with the flag &quot;r&quot; (no Reply),<br>
&gt;     compose<br>
&gt;     &gt; the Contact header myself and send the reply.<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     ------------------------------------------------------------------------<br>
&gt;     &gt;<br>
&gt;     &gt; _______________________________________________<br>
&gt;     &gt; Users mailing list<br>
</div></div>&gt;     &gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
<div class="im">&gt;     &gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;     &gt;<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     Bogdan-Andrei Iancu<br>
</div>&gt;     <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> &lt;<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Users mailing list<br>
&gt;     <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> &lt;mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>&gt;<br>
<div><div></div><div class="h5">&gt;     <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;<br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>