<p>Some times ims_charging module not sending ccr terminate request  to Diameter Server upon receiving the BYE Request .</p>
<p><strong>ISSUE Description:</strong><br>
1 ) Consider User A registered with kamailio.<br>
2 ) A called  PSTN number ..Initial CCR request went to diameter server  successfully.<br>
3 ) PSTN number hangup the call....Here After BYE Transaction is done...Kamailio is generating a new BYE request to itself and it is retransmitting it four times.<br>
4 ) I think this is the reason Ims_cahrging not generating ccr terminate request.</p>
<p><strong>Please find below sip traces. [Proxy is : 7080 , gateway : 5060]</strong></p>
<p>BYE sip:+xxxxxxxxxxxx@xxxxxxxxxxxx:35465 SIP/2.0<br>
Via: SIP/2.0/UDP xxxxxxxxxxxx:5060;branch=z9hG4bK05c0a4d6<br>
Route: sip:xxxxxxxxxxxx:7080;lr;transport=UDP;did=492.d7f1<br>
Max-Forwards: 70<br>
From: sip:xxxxxxxxxxxx@xxxxxxxxxxxx;tag=as4ab1ab4b<br>
To: "+xxxxxxxxxxxx" sip:+xxxxxxxxxxxx@xxxxxxxxxxxx;tag=8110a0S32NHgp<br>
Call-ID: 8fa995a0-061c-11ea-8d83-00505697042b<br>
CSeq: 102 BYE<br>
User-Agent: SM SoftSwitch 11-06C13<br>
X-Asterisk-HangupCause: Normal Clearing<br>
X-Asterisk-HangupCauseCode: 16<br>
Content-Length: 0</p>
<p>SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP xxxxxxxxxxxx:5060;rport=5060;branch=z9hG4bK05c0a4d6<br>
From: sip:xxxxxxxxxxxx@xxxxxxxxxxxx;tag=as4ab1ab4b<br>
To: "+xxxxxxxxxxxx" sip:+xxxxxxxxxxxx@xxxxxxxxxxxx;tag=8110a0S32NHgp<br>
Call-ID: 8fa995a0-061c-11ea-8d83-00505697042b<br>
CSeq: 102 BYE<br>
User-Agent: Janus WebRTC Gateway SIP Plugin 0.0.6<br>
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, UPDATE<br>
Content-Length: 0</p>
<p>BYE sip:xxxxxxxxxxxx:7080;lr;transport=UDP;did=492.d7f1 SIP/2.0<br>
Via: SIP/2.0/UDP xxxxxxxxxxxx:7080;branch=z9hG4bK461c.5003522650d9dbb33e47c6d83d7465b8.1<br>
Via: SIP/2.0/UDP xxxxxxxxxxxx:5060;rport=5060;branch=z9hG4bK05c0a4d6<br>
Max-Forwards: 69<br>
From: sip:xxxxxxxxxxxx@xxxxxxxxxxxx;tag=as4ab1ab4b<br>
To: "+xxxxxxxxxxxx" sip:+xxxxxxxxxxxx@xxxxxxxxxxxx;tag=8110a0S32NHgp<br>
Call-ID: 8fa995a0-061c-11ea-8d83-00505697042b<br>
CSeq: 102 BYE<br>
User-Agent: SM SoftSwitch 11-06C13<br>
X-Asterisk-HangupCause: Normal Clearing<br>
X-Asterisk-HangupCauseCode: 16<br>
Content-Length: 0</p>
<p>BYE sip:xxxxxxxxxxxx:7080;lr;transport=UDP;did=492.d7f1 SIP/2.0<br>
Via: SIP/2.0/UDP xxxxxxxxxxxx:7080;branch=z9hG4bK461c.5003522650d9dbb33e47c6d83d7465b8.1<br>
Via: SIP/2.0/UDP xxxxxxxxxxxx:5060;rport=5060;branch=z9hG4bK05c0a4d6<br>
Max-Forwards: 69<br>
From: sip:xxxxxxxxxxxx@xxxxxxxxxxxx;tag=as4ab1ab4b<br>
To: "+xxxxxxxxxxxx" sip:+xxxxxxxxxxxx@xxxxxxxxxxxx;tag=8110a0S32NHgp<br>
Call-ID: 8fa995a0-061c-11ea-8d83-00505697042b<br>
CSeq: 102 BYE<br>
User-Agent: SM SoftSwitch 11-06C13<br>
X-Asterisk-HangupCause: Normal Clearing<br>
X-Asterisk-HangupCauseCode: 16<br>
Content-Length: 0</p>
<p>BYE sip:xxxxxxxxxxxx:7080;lr;transport=UDP;did=492.d7f1 SIP/2.0<br>
Via: SIP/2.0/UDP xxxxxxxxxxxx:7080;branch=z9hG4bK461c.5003522650d9dbb33e47c6d83d7465b8.1<br>
Via: SIP/2.0/UDP xxxxxxxxxxxx:5060;rport=5060;branch=z9hG4bK05c0a4d6<br>
Max-Forwards: 69<br>
From: sip:xxxxxxxxxxxx@xxxxxxxxxxxx;tag=as4ab1ab4b<br>
To: "+xxxxxxxxxxxx" sip:+xxxxxxxxxxxx@xxxxxxxxxxxx;tag=8110a0S32NHgp<br>
Call-ID: 8fa995a0-061c-11ea-8d83-00505697042b<br>
CSeq: 102 BYE<br>
User-Agent: SM SoftSwitch 11-06C13<br>
X-Asterisk-HangupCause: Normal Clearing<br>
X-Asterisk-HangupCauseCode: 16<br>
Content-Length: 0</p>
<p>BYE sip:xxxxxxxxxxxx:7080;lr;transport=UDP;did=492.d7f1 SIP/2.0<br>
Via: SIP/2.0/UDP xxxxxxxxxxxx:7080;branch=z9hG4bK461c.5003522650d9dbb33e47c6d83d7465b8.1<br>
Via: SIP/2.0/UDP xxxxxxxxxxxx:5060;rport=5060;branch=z9hG4bK05c0a4d6<br>
Max-Forwards: 69<br>
From: sip:xxxxxxxxxxxx@xxxxxxxxxxxx;tag=as4ab1ab4b<br>
To: "+xxxxxxxxxxxx" sip:+xxxxxxxxxxxx@xxxxxxxxxxxx;tag=8110a0S32NHgp<br>
Call-ID: 8fa995a0-061c-11ea-8d83-00505697042b<br>
CSeq: 102 BYE<br>
User-Agent: SM SoftSwitch 11-06C13<br>
X-Asterisk-HangupCause: Normal Clearing<br>
X-Asterisk-HangupCauseCode: 16<br>
Content-Length: 0</p>

<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/2129?email_source=notifications&email_token=ABO7UZJADPA47VQRANEB4K3QTWDYDA5CNFSM4JNPDU62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZMNFGA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJNYSQMZNCG3N3KCUTQTWDYDANCNFSM4JNPDU6Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZNW2X237KWG7ITTJETQTWDYDA5CNFSM4JNPDU62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZMNFGA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2129?email_source=notifications\u0026email_token=ABO7UZJADPA47VQRANEB4K3QTWDYDA5CNFSM4JNPDU62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZMNFGA",
"url": "https://github.com/kamailio/kamailio/issues/2129?email_source=notifications\u0026email_token=ABO7UZJADPA47VQRANEB4K3QTWDYDA5CNFSM4JNPDU62YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZMNFGA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>