<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=utf-8"><meta name=Generator content="Microsoft Word 12 (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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
.MsoPapDefault
        {mso-style-type:export-only;
        text-align:justify;}
@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=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Here you go… Found this in cdr.conf.sample.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; Define whether or not to log unanswered calls. Setting this to "yes" will<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; report every attempt to ring a phone in dialing attempts, when it was not<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; answered. For example, if you try to dial 3 extensions, and this option is "yes",<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; you will get 3 CDR's, one for each phone that was rung. Default is "no". Some<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; find this information horribly useless. Others find it very valuable. Note, in "yes"<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; mode, you will see one CDR, with one of the call targets on one side, and the originating<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; channel on the other, and then one CDR for each channel attempted. This may seem<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; redundant, but cannot be helped.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; In brief, this option controls the reporting of unanswered calls which only have an A<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; party. Calls which get offered to an outgoing line, but are unanswered, are still<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; logged, and that is the intended behaviour. (It also results in some B side CDRs being<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; output, as they have the B side channel as their source channel, and no destination<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>; channel.)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>;unanswered = no<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Regards;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>John<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>er ic<br><b>Sent:</b> Thursday, December 31, 2015 7:05 AM<br><b>To:</b> Asterisk Users Mailing List - Non-Commercial Discussion<br><b>Subject:</b> [asterisk-users] Logging to CDR after call file Not Answered<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='text-align:justify'>If the end user does not pick up the phone, is there a way to log to the CDR about the call file failing?<o:p></o:p></p><div><p class=MsoNormal style='text-align:justify'><o:p> </o:p></p></div><div><p class=MsoNormal style='text-align:justify'><o:p> </o:p></p></div><div><p class=MsoNormal style='text-align:justify'>/var/log/asterisk/messages does show a NOTICE message<o:p></o:p></p></div><div><div><p class=MsoNormal style='text-align:justify'>[2015-12-31 06:58:46] NOTICE[28059] pbx_spool.c: Call failed to go through, reason (3) Remote end Ringing<o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'>[2015-12-31 06:58:46] NOTICE[28059] pbx_spool.c: Queued call to SIP/102 expired without completion after 0 attempts<o:p></o:p></p></div></div><div><p class=MsoNormal style='text-align:justify'><o:p> </o:p></p></div><div><p class=MsoNormal style='text-align:justify'>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. <o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><o:p> </o:p></p></div><div><p class=MsoNormal style='text-align:justify'>Is there a way to have it logged to the server?<o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><o:p> </o:p></p></div><div><p class=MsoNormal style='text-align:justify'>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.<o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'><o:p> </o:p></p></div><div><p class=MsoNormal style='text-align:justify'>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal style='text-align:justify'>--E<o:p></o:p></p></div></div></div></body></html>