<p>Hello Daniel,</p>

<p>I have done some extensive testing this time to be sure and it looks like Kamailio doesn't crash anymore, which is good. So issue solved, thank you.</p>

<p>I have only these errors in logs, which are normal and I think I can handle them:</p>

<pre><code>Oct 26 09:48:51 system /usr/local/sbin/kamailio[11856]: INFO: <script>:  REGISTRAR: registrar successful, status 1, contacts inserted: M=REGISTER RURI=sip:example.com F=sip:proxy.example.com T=sip:alice@example.com IP=10.37.145.129 destination -  UA=kamailio (4.4.0-dev5 (i386/linux))
Oct 26 09:48:51 system /usr/local/sbin/kamailio[11855]: WARNING: db_postgres [km_dbase.c:277]: db_postgres_submit_query(): postgres result check failed with code 7 (PGRES_FATAL_ERROR)
Oct 26 09:48:51 system /usr/local/sbin/kamailio[11855]: WARNING: db_postgres [km_dbase.c:281]: db_postgres_submit_query(): postgres query command failed, connection status 0, error [ERROR:  duplicate key value violates unique constraint "pua_pua_idx"#012DETAIL:  Key (etag, tuple_id, call_id, from_tag)=(, , 7fb9d7fe-11854, 925159b1c018b9f775ed54c55b81927f-1383) already exists.#012]
Oct 26 09:48:51 system /usr/local/sbin/kamailio[11855]: ERROR: db_postgres [km_dbase.c:290]: db_postgres_submit_query(): 0xb6606c68 PQsendQuery Error: ERROR:  duplicate key value violates unique constraint "pua_pua_idx"#012DETAIL:  Key (etag, tuple_id, call_id, from_tag)=(, , 7fb9d7fe-11854, 925159b1c018b9f775ed54c55b81927f-1383) already exists.#012 Query: insert into pua (pres_id,pres_uri,call_id,from_tag,expires,desired_expires,flag,to_tag,cseq,record_route,contact,remote_contact,version,extra_headers,event,watcher_uri,etag,tuple_id ) values ('','sip:sync@proxy.example.com:5060','7fb9d7fe-11854','925159b1c018b9f775ed54c55b81927f-1383',1445852931,1445852931,8192,'4260ae64576ca2ee5520eccf59d42b8c-c6c6',10,'','sip:reginfo@example.com:5060','sip:presence@proxy.example.com',0,'',64,'sip:reginfo@example.com:5060','','')
Oct 26 09:48:51 system /usr/local/sbin/kamailio[11855]: ERROR: <core> [db_query.c:235]: db_do_insert_cmd(): error while submitting query
Oct 26 09:48:51 system /usr/local/sbin/kamailio[11855]: ERROR: db_postgres [km_dbase.c:580]: db_postgres_store_result(): invalid query, execution aborted
Oct 26 09:48:51 system /usr/local/sbin/kamailio[11855]: ERROR: db_postgres [km_dbase.c:581]: db_postgres_store_result(): driver error: PGRES_FATAL_ERROR, ERROR:  duplicate key value violates unique constraint "pua_pua_idx"#012DETAIL:  Key (etag, tuple_id, call_id, from_tag)=(, , 7fb9d7fe-11854, 925159b1c018b9f775ed54c55b81927f-1383) already exists.#012
Oct 26 09:48:51 system /usr/local/sbin/kamailio[11855]: WARNING: db_postgres [km_dbase.c:627]: db_postgres_insert(): unexpected result returned
Oct 26 09:48:51 system /usr/local/sbin/kamailio[11855]: ERROR: db_postgres [km_dbase.c:934]: db_postgres_replace(): insert failed
Oct 26 09:48:51 system /usr/local/sbin/kamailio[11855]: ERROR: pua [pua_db.c:642]: convert_temporary_dialog_puadb(): Failed replace db
Oct 26 09:48:51 system /usr/local/sbin/kamailio[11855]: ERROR: pua [send_subscribe.c:698]: subs_cback_func(): Could not convert temporary dialog into a dialog
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/377#issuecomment-151066985">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zevt3evnndciSYbBywYyYiIEL0dIks5o_eNcgaJpZM4GTvID.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/377#issuecomment-151066985"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>