<div dir="ltr">Hello Daniel,<div><br></div><div>I have an update for the errors with duplicate key messages.</div><div><br></div><div><br></div><div>5678*0012 calls 5678*0002 and 5678*0007 is the subscriber for both.</div><div>When the call starts i see this:</div><div><br></div><div><div>kamailio=# select username, etag from presentity;</div><div> username  |          etag</div><div>-----------+------------------------</div><div> 5678*0012 | a.1443699235.22541.5.0</div><div> 5678*0002 | a.1443699235.22551.3.0</div><div> 5678*0012 | a.1443699235.22549.5.0</div><div> 5678*0002 | a.1443699235.22551.4.0</div><div> 5678*0012 | a.1443699235.22542.4.0</div><div> 5678*0002 | a.1443699235.22546.5.0</div><div> 5678*0012 | a.1443699235.22548.6.0</div><div>(7 rows)</div></div><div><br></div><div>After call answered Kmailio tries to update all 5678*0012 records with etag='*#-OFFLINE-#*'. </div><div>Since there are more than 1 record for 5678*0012 then it gives the "duplicate key value violates unique constraint" errors.</div><div>But i couldnt understand why Kamailio tries to set 5678*0012 as offline in the first place? </div><div>Both devices registered and lamp states on 5678*0007 are green when idle.</div><div><br></div><div><br></div><div>Btw if the call is long lamp states turn green again before call ends. And there is nothing left on table</div><div><br></div><div>kamailio=# select username, etag from presentity;</div><div> username | etag</div><div>----------+------</div><div>(0 rows) </div><div><br></div><div>Lamps should remain red until call ends, right?</div><div><br></div><div><br></div><div>Thanks</div><div><br></div><div>Huseyin</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><br></div></div></div>