# Questions about multiple CDR entries and ringing sounds

**URL:** <https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529>\
**Category:** Asterisk Support\
**Created:** [February 13, 2019, 4:04am UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529 "2019-02-13T04:04:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![stillastudent009](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@stillastudent009](https://community.asterisk.org/u/stillastudent009)\
**Post date:** [February 13, 2019, 4:04am UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529/1 "2019-02-13T04:04:45Z")

</div>

Hey everyone,

I have a very simple Asterisk 16.0.0 on Ubuntu 18.04 setup. I have just two phone numbers from a SIP provider that I’m matching directly in my extensions.conf without any wildcards. Each of these extensions is basically -

```auto
1,Wait(5) 
2,Hangup()

```

That’s all I’m doing in extensions.conf.

I’ve enabled unanswered call logging for my CDR in cdr.conf, and I don’t have any ring groups or internal extensions to dial.

My questions are -

1. I’m seeing multiple entries per call in my CDR (Master.csv). Sometimes calls have just one entry, and sometimes they have several (up to ten or twelve) entries. Some of them are marked “NO ANSWER” and some of them are marked “FAILED.” Can someone here shed some light on why this is happening? Most of my Google-ing seems to indicate that ring groups lead to multiple entries, but like I said before I don’t have any ring groups set up.

2. When I call one of the two numbers from my own phone, I don’t hear a ringing sound. Is this normal behavior? Again other posts seem to indicate configuring hold\_music = RING on FreePBX or configuring certain settings on Ring Groups, neither of which are applicable in my case. Any insights on this?

Thank you very much! My setup is sparse because I’m a student just getting the hang of Asterisk, and am not someone in IT with several hundred phones to manage. Thanks for reading!

---

<div class="post-metadata">

**Author:** ![annusfictus](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@annusfictus](https://community.asterisk.org/u/annusfictus)\
**Post date:** [February 13, 2019, 10:42am UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529/2 "2019-02-13T10:42:12Z")

</div>

Hello,

```
  some DIDs providers not recognize correctly a Hangup cause and

```

try to send you newly the call.

Try to change:

```auto
2,Hangup()

```

to

```auto
2,Hangup(603)

```

Regards

---

<div class="post-metadata">

**Author:** ![stillastudent009](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@stillastudent009](https://community.asterisk.org/u/stillastudent009)\
**Post date:** [February 13, 2019, 5:23pm UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529/3 "2019-02-13T17:23:37Z")

</div>

Thank you for your response!

Unfortunately that doesn’t seem to work. I’m still getting multiple entries in my CDR.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [February 13, 2019, 5:30pm UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529/4 "2019-02-13T17:30:04Z")

</div>

What is the actual console output for this?

---

<div class="post-metadata">

**Author:** ![stillastudent009](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@stillastudent009](https://community.asterisk.org/u/stillastudent009)\
**Post date:** [February 13, 2019, 5:31pm UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529/5 "2019-02-13T17:31:08Z")

</div>

By console output do you mean the CDR entries themselves or the logs I see when running asterisk -c?

Sorry if my questions are simple, I’m still fairly new to this.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [February 13, 2019, 5:34pm UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529/6 "2019-02-13T17:34:53Z")

</div>

The logs when running “asterisk -c”.

---

<div class="post-metadata">

**Author:** ![stillastudent009](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@stillastudent009](https://community.asterisk.org/u/stillastudent009)\
**Post date:** [February 13, 2019, 5:54pm UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529/7 "2019-02-13T17:54:50Z")

</div>

Thanks for your response.

My current dialplan is -

> 1,Log(NOTICE,Incoming Call from ${CALLERID(all)})  
> n,Hangup(21)

This is the console output for one call from my phone to the Asterisk number. I got this output by running “asterisk -rvvvvv” to connect to Asterisk.

> == Using SIP RTP CoS mark 5  
> \> 0x7fc0b4034920 – Strict RTP learning after remote address set to: REMOVED  
> – Executing [PHONENUMBERREMOVED@incoming:1] Log(“SIP/192.168.5.233-0000007c”, “NOTICE,Incoming Call from “LOCATIONREMOVED” PHONENUMBERREMOVED”) in new stack  
> [Feb 13 12:45:12] NOTICE[2567][C-0000007d]: Ext. PHONENUMBERREMOVED @ incoming: Incoming Call from “LOCATIONREMOVED” PHONENUMBERREMOVED  
> – Executing [PHONENUMBERREMOVED@incoming:2] Hangup(“SIP/192.168.5.233-0000007c”, “21”) in new stack  
> == Spawn extension (incoming, PHONENUMBERREMOVED, 2) exited non-zero on ‘SIP/192.168.5.233-0000007c’  
> == Using SIP RTP CoS mark 5  
> \> 0x7fc0b40d6c80 – Strict RTP learning after remote address set to: REMOVED  
> – Executing [PHONENUMBERREMOVED@incoming:1] Log(“SIP/192.168.18.40-0000007d”, “NOTICE,Incoming Call from “LOCATIONREMOVED” PHONENUMBERREMOVED”) in new stack  
> [Feb 13 12:45:14] NOTICE[2568][C-0000007e]: Ext. PHONENUMBERREMOVED @ incoming: Incoming Call from “LOCATIONREMOVED” PHONENUMBERREMOVED  
> – Executing [PHONENUMBERREMOVED@incoming:2] Hangup(“SIP/192.168.18.40-0000007d”, “21”) in new stack  
> == Spawn extension (incoming, PHONENUMBERREMOVED, 2) exited non-zero on ‘SIP/192.168.18.40-0000007d’

I’m using Hangup(21) because 21 is the ISDN mapping for SIP 603.

For this one call, I have two entries in my CDR and two entries in my messages log file.

Thanks!

Edit - I have also tried Hangup(603) to similar effect.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [February 13, 2019, 6:11pm UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529/8 "2019-02-13T18:11:02Z")

</div>

So yes, it appears as though the originating source is just attempting the call repeatedly. You’d need to figure out what will stop it from doing so. The behavior is up to the remote side.

---

<div class="post-metadata">

**Author:** ![stillastudent009](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@stillastudent009](https://community.asterisk.org/u/stillastudent009)\
**Post date:** [February 13, 2019, 7:46pm UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529/9 "2019-02-13T19:46:35Z")

</div>

Understood, thank you very much!

Do you also happen to have any insights on the ringing question?

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [February 13, 2019, 7:52pm UTC](https://community.asterisk.org/t/questions-about-multiple-cdr-entries-and-ringing-sounds/78529/10 "2019-02-13T19:52:11Z")

</div>

You’d need to show the console output for that scenario so it can be seen what precisely is going on.
