well you could call an exec to delete it before calling save. That's messy, but it'd probably work.<div><br><br><div class="gmail_quote">On Tue, Nov 25, 2008 at 12:48 PM, Jeff Pyle <span dir="ltr"><<a href="mailto:jpyle@fidelityvoice.com">jpyle@fidelityvoice.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div dir="ltr" align="left"><font face="Tahoma" size="2"><span>X-Lite/Eyebeam and a Polycom with 3.x SIP software on
it are the only two UAs I know of that deregister. But I've hardly seen
them all. That being said, I need to knock out any existing registrations
on in the registrar when a new, valid one comes in. I'm not sure how one
would do that. Is there a way to force an expiration before saving the new
one? Or, perhaps to outright delete it through a function of the registrar
module somehow?</span></font></div>
<div dir="ltr" align="left"><font face="Tahoma" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Tahoma" size="2"><span></span></font> </div>
<div dir="ltr" align="left"><font face="Tahoma" size="2"><span>- Jeff</span></font></div>
<div dir="ltr" align="left"><font face="Tahoma" size="2"><span></span></font> </div><br>
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Brett Nemeroff [mailto:<a href="mailto:brett@nemeroff.com" target="_blank">brett@nemeroff.com</a>]
<br><b>Sent:</b> Tuesday, November 25, 2008 11:36 AM<br><b>To:</b> Jeff
Pyle<br><b>Cc:</b> <a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a><br><b>Subject:</b> Re:
[OpenSIPS-Users] limiting multiple registrations<br></font><br></div><div><div></div><div class="Wj3C7c">
<div></div>I think that makes sense.. why is your UA not deregistering?
<div><br></div>
<div>If you are just removing power or plugging it in from one network to
another without properly unregistering, then I'd expect this
behavior. </div>
<div><br></div>
<div>I don't think the server would have any idea if the UA is unique or
not. </div>
<div><br></div>
<div>Changing the Registration period to be lower might help you with your
problem.. But it's just masking the real issue, which is that the old
registration isn't being properly deleted. </div>
<div><br></div>
<div>-Brett</div>
<div><br></div>
<div><br>
<div class="gmail_quote">On Tue, Nov 25, 2008 at 7:10 AM, Jeff Pyle <span dir="ltr"><<a href="mailto:jpyle@fidelityvoice.com" target="_blank">jpyle@fidelityvoice.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">Hello,<br><br>When
registrar's max_contacts is set to 1, it appears a UA must<br>deregister
itself before it can register itself from another IP address.<br>Otherwise the
registration is rejected and a log entry appears<br>indicating the maximum
registrations has already been reached. I'd like<br>to limit the maximum
amount of registrations to 1, but I need any new<br>registration to supercede
an existing one. Is there a relatively easy<br>way to do this, or do I
need to manually search the location table<br>before saving each new
registration?<br><br>Thanks,<br>Jeff<br><br>_______________________________________________<br>Users
mailing list<br><a href="mailto:Users@lists.opensips.org" target="_blank">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></div></div></div></div>
<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></blockquote></div><br></div>