<div dir="auto">I know about the expire, I just want to ignore them because I only care when new devices register, I've tried the contact issue but it didn't help, both phones came in with the same contact.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 7, 2021, 11:31 Alexey Kazantsev via Users <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>Hello,</div><div> </div><div>maybe the second parameter (‘contact’) of the ‘is_contact_registered’ function [1] could be useful?</div><div>And speaking about Expires: 0 — according to SIP RFC [2] it’s absolutely normal,</div><div>it means tat a device disables its registration, this is done either by sending Expires: 0 SIP header,</div><div>or by adding ;expires=0 as a parameter to the Contact header.</div><div> </div><div> </div><div>[1] <a href="https://opensips.org/docs/modules/3.1.x/registrar.html#func_is_contact_registered" target="_blank" rel="noreferrer">https://opensips.org/docs/modules/3.1.x/registrar.html#func_is_contact_registered</a></div><div>[2] <a href="https://datatracker.ietf.org/doc/html/rfc3261#section-10.3" target="_blank" rel="noreferrer">https://datatracker.ietf.org/doc/html/rfc3261#section-10.3</a></div><div> </div><div><div><div>-----------------------------------------------<br><span style="font-size:15px">BR, Alexey</span><br style="font-size:15px"><span style="font-size:15px"><a href="http://alexeyka.zantsev.com/" target="_blank" rel="noreferrer">http://alexeyka.zantsev.com/</a></span></div></div></div><div> </div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank" rel="noreferrer">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>