<br><br><div class="gmail_quote">On Tue, Feb 16, 2010 at 6:45 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></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("location","rp1")) {<br> sl_reply_error();<br> }<br> append_to_reply("Contact: $ct;expires=40\r\n");<br>
sl_send_reply("200","OK"); <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>
><br>
> On Tue, Feb 16, 2010 at 12:54 AM, mayamatakeshi<br>
</div><div class="im">> <<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a> <mailto:<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a>>> wrote:<br>
><br>
> Hello,<br>
> about registration, is it possible somehow to make opensips to<br>
> reply with a "200 OK" containing only the Contact of the<br>
> registering UA instead of all contacts from usrloc?<br>
><br>
> I'm having a problem with eyebeam. It has a bug (at least the<br>
> version I'm testing) and it doesn't parse the Contact header<br>
> correctly and it always gets the value of expires from the first<br>
> contact listed.<br>
> So in the case of a "200 OK" with a Contact like this:<br>
><br>
> Contact: <<a href="http://sip:1000@192.168.2.5:5050" target="_blank">sip:1000@192.168.2.5:5050</a><br>
</div>> <<a href="http://sip:1000@192.168.2.5:5050" target="_blank">http://sip:1000@192.168.2.5:5050</a>>>;expires=5;received="sip:<a href="http://192.168.2.5:5050" target="_blank">192.168.2.5:5050</a><br>
> <<a href="http://192.168.2.5:5050" target="_blank">http://192.168.2.5:5050</a>>", <<a href="http://sip:1000@192.168.0.2:8286" target="_blank">sip:1000@192.168.0.2:8286</a><br>
> <<a href="http://sip:1000@192.168.0.2:8286" target="_blank">http://sip:1000@192.168.0.2:8286</a>>>;expires=40;received="sip:<a href="http://192.168.128.33:61717" target="_blank">192.168.128.33:61717</a><br>
> <<a href="http://192.168.128.33:61717" target="_blank">http://192.168.128.33:61717</a>>"<br>
<div class="im">><br>
> it should get expires=40 but it is getting expires=5. And since<br>
> eyebeam re-registers 5 seconds before expirations, it sends<br>
> REGISTER immediately and this goes on in a loop till the expires<br>
> of the first contact gets greater than 5 (when the other terminal<br>
> re-registers).<br>
><br>
><br>
> I have not tested yet, but I think I got it:<br>
> I have to call the function save with the flag "r" (no Reply), compose<br>
> the Contact header myself and send the reply.<br>
><br>
><br>
</div>> ------------------------------------------------------------------------<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>
><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>