<pre><code>Core was generated by `/usr/sbin/kamailio -f /etc/kamailio/proxy/kamailio.cfg -P /var/run/kamailio/kam'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f0376725d8e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007f0376725d8e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f03606b5a9c in delete_presentity_if_dialog_id_exists (presentity=0x1333680, dialog_id=0x0) at presentity.c:417
#2  0x00007f03606b8558 in update_presentity (msg=0x1333680, presentity=0x7f0375a9b5d0, body=0x7ffc28292100, new_t=20339088, sent_reply=0x100, sphere=0x1365920 "\220Y6\001")
    at presentity.c:690
#3  0x00007f03606cc521 in handle_publish (msg=0x7f0375aad0f0, sender_uri=0x0, str2=0x0) at publish.c:460
#4  0x0000000000446840 in do_action (h=0x7ffc28292860, a=0x7f03759f2fd0, msg=0x7f0375aad0f0) at action.c:1060
#
</code></pre>

<p>check that the xml has no dialog.id</p>

<pre><code>(gdb) f 1
#1  0x00007f03606b5a9c in delete_presentity_if_dialog_id_exists (presentity=0x1333680, dialog_id=0x0) at presentity.c:417
417 presentity.c: No such file or directory.
(gdb) p db_dialog_id
$1 = 0x1333680 "1649760492-8"
(gdb) p dialog_id
$2 = 0x0
(gdb) f 2
#2  0x00007f03606b8558 in update_presentity (msg=0x1333680, presentity=0x7f0375a9b5d0, body=0x7ffc28292100, new_t=20339088, sent_reply=0x100, sphere=0x1365920 "\220Y6\001")
    at presentity.c:690
690 in presentity.c
(gdb) p dialog_id
$3 = 0x0
(gdb) p is_dialog
$4 = 0
(gdb) p body
$5 = (str *) 0x7ffc28292100
(gdb) p *body
$6 = {
  s = 0x9b5b32 <buf+370> "<?xml version=\"1.0\"?>\n<dialog-info xmlns=\"urn:ietf:params:xml:ns:dialog-info\" version=\"55\" state=\"full\" entity=\"sip:88102@10.15.20.192\">\n</dialog-info>\r\n", len = 153}
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/794">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZdrQut9dCEEIduZ-50ks24_q0y1yks5qs5hggaJpZM4KExD9">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZYZa49Yw_Hi__scIa-6w8Vdj3K0aks5qs5hggaJpZM4KExD9.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/794"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"presence: crash at delete_presentity_if_dialog_id_exists() if dialog_id is NULL (#794)"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/794"}}}</script>