<br><br><div class="gmail_quote">On Tue, Feb 16, 2010 at 6:45 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;">
Hi,<br>
<br>
Yes, that is the only way - if REGISTRAR module builds the reply, it<br>
will do it in RFC way (adding all the registered contacts) and you<br>
cannot change this behaviour.<br></blockquote><div><br>Thanks,<br>I tested it:<br><br>        if (!save(&quot;location&quot;,&quot;rp1&quot;)) {<br>            sl_reply_error();<br>        }<br>        append_to_reply(&quot;Contact: $ct;expires=40\r\n&quot;);<br>
        sl_send_reply(&quot;200&quot;,&quot;OK&quot;); <br><br>It works fine.<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; On Tue, Feb 16, 2010 at 12:54 AM, mayamatakeshi<br>
</div><div class="im">&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;&gt; wrote:<br>
&gt;<br>
&gt;     Hello,<br>
&gt;     about registration, is it possible somehow to make opensips to<br>
&gt;     reply with a &quot;200 OK&quot; containing only the Contact of the<br>
&gt;     registering UA instead of all contacts from usrloc?<br>
&gt;<br>
&gt;     I&#39;m having a problem with eyebeam. It has a bug (at least the<br>
&gt;     version I&#39;m testing) and it doesn&#39;t parse the Contact header<br>
&gt;     correctly and it always gets the value of expires from the first<br>
&gt;     contact listed.<br>
&gt;     So in the case of a &quot;200 OK&quot; with a Contact like this:<br>
&gt;<br>
&gt;     Contact: &lt;<a href="http://sip:1000@192.168.2.5:5050" target="_blank">sip:1000@192.168.2.5:5050</a><br>
</div>&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;&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;&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;&quot;<br>
<div class="im">&gt;<br>
&gt;     it should get expires=40 but it is getting expires=5. And since<br>
&gt;     eyebeam re-registers 5 seconds before expirations, it sends<br>
&gt;     REGISTER immediately and this goes on in a loop till the expires<br>
&gt;     of the first contact gets greater than 5 (when the other terminal<br>
&gt;     re-registers).<br>
&gt;<br>
&gt;<br>
&gt; I have not tested yet, but I think I got it:<br>
&gt; I have to call the function save with the flag &quot;r&quot; (no Reply), compose<br>
&gt; the Contact header myself and send the reply.<br>
&gt;<br>
&gt;<br>
</div>&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>
<div class="im">Bogdan-Andrei Iancu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
</div>_______________________________________________<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>
</blockquote></div><br>