<br><div class="gmail_quote">On Tue, Feb 16, 2010 at 12:54 AM, mayamatakeshi <span dir="ltr"><<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</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;">
Hello,<br>about registration, is it possible somehow to make opensips to reply with a "200 OK" containing only the Contact of the registering UA instead of all contacts from usrloc?<br><br>I'm having a problem with eyebeam. It has a bug (at least the version I'm testing) and it doesn't parse the Contact header correctly and it always gets the value of expires from the first 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>>;expires=5;received="sip:<a href="http://192.168.2.5:5050" target="_blank">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>>;expires=40;received="sip:<a href="http://192.168.128.33:61717" target="_blank">192.168.128.33:61717</a>"<br>
<br> it should get expires=40 but it is getting expires=5. And since eyebeam re-registers 5 seconds before expirations, it sends REGISTER immediately and this goes on in a loop till the expires of the first contact gets greater than 5 (when the other terminal re-registers).<br>
</blockquote><div><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 the Contact header myself and send the reply.<br><br></div></div><br>