Logging To CDR After Call File Not Answered
If the end user does not pick up the phone, is there a way to log to the CDR about the call file failing?
/var/log/asterisk/messages does show a NOTICE message
[2015-12-31 06:58:46] NOTICE[28059] pbx_spool.c: Call failed to go through, reason (3) Remote end Ringing
[2015-12-31 06:58:46] NOTICE[28059] pbx_spool.c: Queued call to SIP/102
expired without completion after 0 attempts
but I would rather not have to run a script and search the call log for those two strings, extrapolate the reason code and then compare it to my custom php/database driven scheduler.
Is there a way to have it logged to the server?
Also, both chanunavail attempts and NA attempts both register the status as expried. Is this correct or should one of them be failed? I am trying to be able to distinguish the two conditions by looking at the archived message.
Thanks,
–E
Recommended
Recent Questions
- Asterisk Release 21.1.0
- Asterisk Release 20.6.0
- Asterisk Release 18.21.0
- Mailing List Shutdown Reminder
- Aeap Wss Connection
- SIP_HEADER GET_TRANSFERRER_DATA Chan_pjsip
- Chan_iax2.c:4739 __auto_congest: Auto-congesting Call Due To Slow Response
- Asterisk Release 21.0.2
- Asterisk Release 20.5.2
- Asterisk Release 18.20.2
Frequent Terms
Categories
- Advanced Dialplan
- Asterisk Announces
- Asterisk System Management
- Asterisk Tips
- Asterisk Tutorial
- Asterisk Users
- Book Reviews
- Dialplan Basics
- General
- Initial Configuration of Asterisk
- Installing Asterisk
- IT Jobs
- Java News
- Off Topic News
- Preparing a System for Asterisk
- programming
- Technical News
- Uncategorized
- VoIP News
FAQs Archive
- January 2024 (7)
- December 2023 (12)
- November 2023 (6)
- October 2023 (5)
- September 2023 (7)
- August 2023 (13)
- July 2023 (23)
- June 2023 (17)
- May 2023 (18)
- April 2023 (15)
- March 2023 (5)
- February 2023 (8)
- January 2023 (10)
- December 2022 (9)
- November 2022 (13)
- October 2022 (14)
- September 2022 (10)
- August 2022 (15)
- July 2022 (14)
- June 2022 (7)
- May 2022 (17)
- April 2022 (9)
- March 2022 (14)
- February 2022 (14)
- January 2022 (10)
- December 2021 (15)
- November 2021 (23)
- October 2021 (18)
- September 2021 (12)
- August 2021 (13)
- July 2021 (11)
- June 2021 (13)
- May 2021 (16)
- April 2021 (8)
- March 2021 (11)
- February 2021 (11)
- January 2021 (26)
- December 2020 (36)
- November 2020 (14)
- October 2020 (25)
- September 2020 (21)
- August 2020 (10)
- July 2020 (20)
- June 2020 (37)
- May 2020 (30)
- April 2020 (22)
- March 2020 (22)
- February 2020 (26)
- January 2020 (24)
- December 2019 (26)
- November 2019 (38)
- October 2019 (32)
- September 2019 (23)
- August 2019 (15)
- July 2019 (32)
- June 2019 (20)
- May 2019 (19)
- April 2019 (22)
- March 2019 (31)
- February 2019 (35)
- January 2019 (49)
- December 2018 (35)
- November 2018 (21)
- October 2018 (36)
- September 2018 (18)
- August 2018 (26)
- July 2018 (34)
- June 2018 (34)
- May 2018 (29)
- April 2018 (24)
- March 2018 (31)
- February 2018 (46)
- January 2018 (31)
- December 2017 (39)
- November 2017 (38)
- October 2017 (29)
- September 2017 (28)
- August 2017 (25)
- July 2017 (30)
- June 2017 (43)
- May 2017 (37)
- April 2017 (49)
- March 2017 (36)
- February 2017 (37)
- January 2017 (32)
- December 2016 (45)
- November 2016 (68)
- October 2016 (67)
- September 2016 (65)
- August 2016 (54)
- July 2016 (44)
- June 2016 (59)
- May 2016 (71)
- April 2016 (55)
- March 2016 (77)
- February 2016 (83)
- January 2016 (55)
- December 2015 (44)
- November 2015 (37)
- October 2015 (65)
- September 2015 (68)
- August 2015 (54)
- July 2015 (68)
- June 2015 (78)
- May 2015 (69)
- April 2015 (83)
- March 2015 (113)
- February 2015 (55)
- January 2015 (70)
- December 2014 (68)
- November 2014 (61)
- October 2014 (85)
- September 2014 (72)
- April 2014 (45)
- March 2014 (95)
- February 2014 (72)
- January 2014 (101)
- December 2013 (3)
- November 2013 (1)
- May 2013 (3)
- March 2013 (2)
- February 2013 (1)
- December 2012 (9)
- November 2012 (1)
- October 2012 (2)
- September 2012 (1)
- August 2012 (2)
- July 2012 (3)
- June 2012 (2)
- April 2012 (7)
- March 2012 (5)
- February 2012 (9)
- January 2012 (6)
- December 2011 (11)
- November 2011 (5)
- October 2011 (18)
- September 2011 (12)
- August 2011 (4)
- July 2011 (18)
- June 2011 (5)
- May 2011 (1)
- March 2011 (1)
- February 2011 (2)
- January 2011 (1)
- December 2010 (3)
- November 2010 (3)
- October 2010 (2)
- September 2010 (2)
- August 2010 (1)
Recommended
Frequent Terms
Recent Questions
- Asterisk Release 21.1.0
- Asterisk Release 20.6.0
- Asterisk Release 18.21.0
- Mailing List Shutdown Reminder
- Aeap Wss Connection
- SIP_HEADER GET_TRANSFERRER_DATA Chan_pjsip
- Chan_iax2.c:4739 __auto_congest: Auto-congesting Call Due To Slow Response
- Asterisk Release 21.0.2
- Asterisk Release 20.5.2
- Asterisk Release 18.20.2
Categories
- Advanced Dialplan
- Asterisk Announces
- Asterisk System Management
- Asterisk Tips
- Asterisk Tutorial
- Asterisk Users
- Book Reviews
- Dialplan Basics
- General
- Initial Configuration of Asterisk
- Installing Asterisk
- IT Jobs
- Java News
- Off Topic News
- Preparing a System for Asterisk
- programming
- Technical News
- Uncategorized
- VoIP News
FAQs Archive
- January 2024 (7)
- December 2023 (12)
- November 2023 (6)
- October 2023 (5)
- September 2023 (7)
- August 2023 (13)
- July 2023 (23)
- June 2023 (17)
- May 2023 (18)
- April 2023 (15)
- March 2023 (5)
- February 2023 (8)
- January 2023 (10)
- December 2022 (9)
- November 2022 (13)
- October 2022 (14)
- September 2022 (10)
- August 2022 (15)
- July 2022 (14)
- June 2022 (7)
- May 2022 (17)
- April 2022 (9)
- March 2022 (14)
- February 2022 (14)
- January 2022 (10)
- December 2021 (15)
- November 2021 (23)
- October 2021 (18)
- September 2021 (12)
- August 2021 (13)
- July 2021 (11)
- June 2021 (13)
- May 2021 (16)
- April 2021 (8)
- March 2021 (11)
- February 2021 (11)
- January 2021 (26)
- December 2020 (36)
- November 2020 (14)
- October 2020 (25)
- September 2020 (21)
- August 2020 (10)
- July 2020 (20)
- June 2020 (37)
- May 2020 (30)
- April 2020 (22)
- March 2020 (22)
- February 2020 (26)
- January 2020 (24)
- December 2019 (26)
- November 2019 (38)
- October 2019 (32)
- September 2019 (23)
- August 2019 (15)
- July 2019 (32)
- June 2019 (20)
- May 2019 (19)
- April 2019 (22)
- March 2019 (31)
- February 2019 (35)
- January 2019 (49)
- December 2018 (35)
- November 2018 (21)
- October 2018 (36)
- September 2018 (18)
- August 2018 (26)
- July 2018 (34)
- June 2018 (34)
- May 2018 (29)
- April 2018 (24)
- March 2018 (31)
- February 2018 (46)
- January 2018 (31)
- December 2017 (39)
- November 2017 (38)
- October 2017 (29)
- September 2017 (28)
- August 2017 (25)
- July 2017 (30)
- June 2017 (43)
- May 2017 (37)
- April 2017 (49)
- March 2017 (36)
- February 2017 (37)
- January 2017 (32)
- December 2016 (45)
- November 2016 (68)
- October 2016 (67)
- September 2016 (65)
- August 2016 (54)
- July 2016 (44)
- June 2016 (59)
- May 2016 (71)
- April 2016 (55)
- March 2016 (77)
- February 2016 (83)
- January 2016 (55)
- December 2015 (44)
- November 2015 (37)
- October 2015 (65)
- September 2015 (68)
- August 2015 (54)
- July 2015 (68)
- June 2015 (78)
- May 2015 (69)
- April 2015 (83)
- March 2015 (113)
- February 2015 (55)
- January 2015 (70)
- December 2014 (68)
- November 2014 (61)
- October 2014 (85)
- September 2014 (72)
- April 2014 (45)
- March 2014 (95)
- February 2014 (72)
- January 2014 (101)
- December 2013 (3)
- November 2013 (1)
- May 2013 (3)
- March 2013 (2)
- February 2013 (1)
- December 2012 (9)
- November 2012 (1)
- October 2012 (2)
- September 2012 (1)
- August 2012 (2)
- July 2012 (3)
- June 2012 (2)
- April 2012 (7)
- March 2012 (5)
- February 2012 (9)
- January 2012 (6)
- December 2011 (11)
- November 2011 (5)
- October 2011 (18)
- September 2011 (12)
- August 2011 (4)
- July 2011 (18)
- June 2011 (5)
- May 2011 (1)
- March 2011 (1)
- February 2011 (2)
- January 2011 (1)
- December 2010 (3)
- November 2010 (3)
- October 2010 (2)
- September 2010 (2)
- August 2010 (1)
3 thoughts on - Logging To CDR After Call File Not Answered
Here you go… Found this in cdr.conf.sample.
; Define whether or not to log unanswered calls. Setting this to “yes” will
; report every attempt to ring a phone in dialing attempts, when it was not
; answered. For example, if you try to dial 3 extensions, and this option is “yes”,
; you will get 3 CDR’s, one for each phone that was rung. Default is “no”. Some
; find this information horribly useless. Others find it very valuable. Note, in “yes”
; mode, you will see one CDR, with one of the call targets on one side, and the originating
; channel on the other, and then one CDR for each channel attempted. This may seem
; redundant, but cannot be helped.
;
; In brief, this option controls the reporting of unanswered calls which only have an A
; party. Calls which get offered to an outgoing line, but are unanswered, are still
; logged, and that is the intended behaviour. (It also results in some B side CDRs being
; output, as they have the B side channel as their source channel, and no destination
; channel.)
;unanswered = no
Regards;
John
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of er ic Sent: Thursday, December 31, 2015 7:05 AM
To: Asterisk Users Mailing List – Non-Commercial Discussion Subject: [asterisk-users] Logging to CDR after call file Not Answered
If the end user does not pick up the phone, is there a way to log to the CDR about the call file failing?
/var/log/asterisk/messages does show a NOTICE message
[2015-12-31 06:58:46] NOTICE[28059] pbx_spool.c: Call failed to go through, reason (3) Remote end Ringing
[2015-12-31 06:58:46] NOTICE[28059] pbx_spool.c: Queued call to SIP/102 expired without completion after 0 attempts
but I would rather not have to run a script and search the call log for those two strings, extrapolate the reason code and then compare it to my custom php/database driven scheduler.
Is there a way to have it logged to the server?
Also, both chanunavail attempts and NA attempts both register the status as expried. Is this correct or should one of them be failed? I am trying to be able to distinguish the two conditions by looking at the archived message.
Thanks,
–E
I dont have this info in my cdr.conf.sample
Nor do I think this is what I need.
I believe that will log unanswered calls inside a dialplan. Meaning, if I
call directly from my extension to another extension/number, if they do not pick up, it will log; as it currently does now.
With call files, it is not logging. There is no execution of a dialplan inside my assigned context.
Why don’t you try it and see what happens.
Regards;
John
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] Here you go… Found this in cdr.conf.sample.
; Define whether or not to log unanswered calls. Setting this to “yes” will
; report every attempt to ring a phone in dialing attempts, when it was not
; answered. For example, if you try to dial 3 extensions, and this option is “yes”,
; you will get 3 CDR’s, one for each phone that was rung. Default is “no”. Some
; find this information horribly useless. Others find it very valuable. Note, in “yes”
; mode, you will see one CDR, with one of the call targets on one side, and the originating
; channel on the other, and then one CDR for each channel attempted. This may seem
; redundant, but cannot be helped.
;
; In brief, this option controls the reporting of unanswered calls which only have an A
; party. Calls which get offered to an outgoing line, but are unanswered, are still
; logged, and that is the intended behaviour. (It also results in some B side CDRs being
; output, as they have the B side channel as their source channel, and no destination
; channel.)
;unanswered = no
Regards;
John
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of er ic Sent: Thursday, December 31, 2015 7:05 AM
To: Asterisk Users Mailing List – Non-Commercial Discussion Subject: [asterisk-users] Logging to CDR after call file Not Answered
If the end user does not pick up the phone, is there a way to log to the CDR about the call file failing?
/var/log/asterisk/messages does show a NOTICE message
[2015-12-31 06:58:46] NOTICE[28059] pbx_spool.c: Call failed to go through, reason (3) Remote end Ringing
[2015-12-31 06:58:46] NOTICE[28059] pbx_spool.c: Queued call to SIP/102 expired without completion after 0 attempts
but I would rather not have to run a script and search the call log for those two strings, extrapolate the reason code and then compare it to my custom php/database driven scheduler.
Is there a way to have it logged to the server?
Also, both chanunavail attempts and NA attempts both register the status as expried. Is this correct or should one of them be failed? I am trying to be able to distinguish the two conditions by looking at the archived message.
Thanks,
–E