<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I need some expert help to trouble shoot a problem I have  seen, S-CSCF send BYE to tear down a call. I have make some progress to trace the problem to impurecord.c in ims_usrloc_scscf module,  _c->first_dialog_data !=0 while try to delete
 an expired contact. I need some help to find out why _c->first_dialog_data is not 0 for an expired contact.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To reproduce the problem, I began with the following for user1. Contact id 4098, 4114, and 4115 would expire and a call was using id 4116. When the time to delete contact, somehow scscf mistakenly think id 4098 still has a dialog, but the
 dialog was with id 4116 which was NOT expired. Therefore, S-CSCF send BYE to tear down the call, so end user see call drop. Please note, if id 4098 never make calls before, first call was working fine. But once a call was make, you will see this problem for
 next call. it seem S-CSCF did not clean up the dialog_data from last call properly and some data still hanging with the contact caused this problem. any insight how to fix or avoid this would be appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">id      contact params  path    received        user_agent      expires callid<o:p></o:p></p>
<p class="MsoNormal">2192    <a href="sip:user2@192.168.164.136:62837;rinstance=bca96a7c77f53916;transport=UDP">
sip:user2@192.168.164.136:62837;rinstance=bca96a7c77f53916;transport=UDP</a>        NULL    <<a href="sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr">sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr</a>>           Zoiper rv2.10.3.2       2019-12-12
 15:50:10     UPIM_gl22a13wlo47aeHRQ..<o:p></o:p></p>
<p class="MsoNormal">4098    <a href="sip:user1@192.168.164.9:61946;rinstance=7ab86c5e85643767;transport=UDP">
sip:user1@192.168.164.9:61946;rinstance=7ab86c5e85643767;transport=UDP</a>  NULL    <<a href="sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr">sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr</a>>           Zoiper rv2.10.3.2       2019-12-12 15:49:21    
 ocl7UYxJLo8TnMw2p2-6NQ..<o:p></o:p></p>
<p class="MsoNormal">4114    <a href="sip:user1@192.168.164.9:61946;rinstance=65afabdb886de0a7;transport=UDP">
sip:user1@192.168.164.9:61946;rinstance=65afabdb886de0a7;transport=UDP</a>  NULL    <<a href="sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr">sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr</a>>           Zoiper rv2.10.3.2       2019-12-12 15:50:11    
 GZrZHDyL3ojhDlLDPpJnvQ..<o:p></o:p></p>
<p class="MsoNormal">4115    <a href="sip:user1@192.168.164.9:61946;rinstance=074e2e926212237b;transport=UDP">
sip:user1@192.168.164.9:61946;rinstance=074e2e926212237b;transport=UDP</a>  NULL    <<a href="sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr">sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr</a>>           Zoiper rv2.10.3.2       2019-12-12 15:50:13    
 DCKsqvUjZ1dAfJLfJ3nOhA..<o:p></o:p></p>
<p class="MsoNormal">4116    <a href="sip:user1@192.168.164.9:61946;rinstance=38cc0c6188509aea;transport=UDP">
sip:user1@192.168.164.9:61946;rinstance=38cc0c6188509aea;transport=UDP</a>  NULL    <<a href="sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr">sip:term@pcscf.ims.mnc001.mcc001.3gppnetwork.org;lr</a>>           Zoiper rv2.10.3.2       2019-12-12 15:50:15    
 gF3fphqyrSbQwaN0eW4JLw..<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [udomain.c:384]: mem_timer_udomain(): *** mem_timer_udomain - checking IMPUs - FINISHED ***<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [udomain.c:406]: mem_timer_udomain(): deleting contact [<a href="sip:user1@ims.mnc001.mcc001.3gppnetwork.org">sip:user1@ims.mnc001.mcc001.3gppnetwork.org</a>]<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [impurecord.c:598]: delete_scontact(): Deleting contact: [<a href="sip:user1@192.168.164.9:61946;rinstance=074e2e926212237b;transport=UDP">sip:user1@192.168.164.9:61946;rinstance=074e2e926212237b;transport=UDP</a>]<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [usrloc_db.c:370]: db_delete_ucontact(): Deleting ucontact [<a href="sip:user1@192.168.164.9:61946;rinstance=074e2e926212237b;transport=UDP">sip:user1@192.168.164.9:61946;rinstance=074e2e926212237b;transport=UDP</a>]<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [impurecord.c:310]: mem_delete_ucontact(): Checking if dialog_data is there and needs to be torn down<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [impurecord.c:312]: mem_delete_ucontact():
<span style="color:red">first dialog is 0!<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [udomain.c:406]: mem_timer_udomain(): deleting contact [<a href="sip:user1@ims.mnc001.mcc001.3gppnetwork.org">sip:user1@ims.mnc001.mcc001.3gppnetwork.org</a>]<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [impurecord.c:598]: delete_scontact(): Deleting contact: [<a href="sip:user1@192.168.164.9:61946;rinstance=7ab86c5e85643767;transport=UDP">sip:user1@192.168.164.9:61946;rinstance=7ab86c5e85643767;transport=UDP</a>]<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [usrloc_db.c:370]: db_delete_ucontact(): Deleting ucontact [<a href="sip:user1@192.168.164.9:61946;rinstance=7ab86c5e85643767;transport=UDP">sip:user1@192.168.164.9:61946;rinstance=7ab86c5e85643767;transport=UDP</a>]<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [impurecord.c:310]: mem_delete_ucontact(): Checking if dialog_data is there and needs to be torn down<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [impurecord.c:314]: mem_delete_ucontact():
<span style="color:red">first dialog is not 0</span><o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_usrloc_scscf [impurecord.c:317]: mem_delete_ucontact(): Going to tear down dialog with info h_entry [1081] h_id [2579]<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_dialog [dlg_hash.c:887]: lookup_dlg(): ref dlg 0x7f803f803108 with 1 -> 3<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_dialog [dlg_hash.c:889]: lookup_dlg(): dialog id=2579 found on entry 1081<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_dialog [dlg_hash.c:1066]: unref_dlg(): unref dlg 0x7f803f803108 with 1 -> 2<o:p></o:p></p>
<p class="MsoNormal">13(18) DEBUG: ims_dialog [dlg_req_within.c:379]: dlg_terminate(): terminating confirmed dialog<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">--Charles<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<span><span><br> </span> </span><br>
<DIV><span style="FONT-FAMILY: Times New Roman"><span style="FONT-SIZE: 14px">CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient and may contain material that is proprietary, confidential, privileged or otherwise legally protected or restricted under applicable government laws. Any review, disclosure, distributing or other use without expressed permission of the sender is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies without reading, printing, or saving.</span></span>
<DIV style='FONT-SIZE: 14px; FONT-FAMILY: "Times New Roman"'><br></DIV></DIV></body>
</html>