<br><br><div class="gmail_quote">On Wed, Feb 24, 2010 at 8:03 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;">
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'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>
><br>
><br>
> On Tue, Feb 16, 2010 at 6:45 PM, Bogdan-Andrei Iancu<br>
</div><div class="im">> <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>> wrote:<br>
><br>
> 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>
><br>
><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>
><br>
><br>
> mayamatakeshi wrote:<br>
> ><br>
> > On Tue, Feb 16, 2010 at 12:54 AM, mayamatakeshi<br>
> > <<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a> <mailto:<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a>><br>
</div>> <mailto:<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a> <mailto:<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a>>>><br>
<div><div></div><div class="h5">> 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>
> <<a href="http://sip:1000@192.168.2.5:5050" target="_blank">http://sip:1000@192.168.2.5:5050</a>><br>
> ><br>
> <<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>><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>><br>
> ><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>
> > <<a href="http://192.168.128.33:61717" target="_blank">http://192.168.128.33:61717</a>>"<br>
> ><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<br>
> 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),<br>
> compose<br>
> > the Contact header myself and send the reply.<br>
> ><br>
> ><br>
> ><br>
> ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
</div></div>> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div class="im">> > <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>
> Bogdan-Andrei Iancu<br>
</div>> <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://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> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div><div></div><div class="h5">> <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>
> _______________________________________________<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>
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>