<div dir="ltr"><div><div><div><div><div><div><div><div>Hello,<br><br></div>I'm looking through sofia_reg.c about how reregistrations are being handled. More specifically, at lines 1599 - 1663. Link to file: <a href="http://fisheye.freeswitch.org/browse/freeswitch.git/src/mod/endpointss/mod_sofia/sofia_reg.c?hb=true">http://fisheye.freeswitch.org/browse/freeswitch.git/src/mod/endpointss/mod_sofia/sofia_reg.c?hb=true</a><br>
<br></div>I would think that during a renewal of a registration, when multiple registrations aren't allowed, you would also get an update of the current registration.<br><br></div>What happens now seems to be a removal of the current registration in the database and an insertion of the "renewal". Lines 1605-1607 and 1638-1648.<br>
<br></div>Does this mean that when the user is being looked up from another profile at the moment that the deletion just happened and the "reinsertion" not yet, that the user can't be found and a "not available" would be generated or am I wrong?<br>
<br></div>Wouldn't an update be better in this case (or even considered a fix) or would this break code that I don't know about currently?<br><br></div>I'm willing to submit the patch ...., but I need to know whether this would break anything.<br>
<br></div>Kind regards,<br><br></div>Michel<br></div>