On 2/1/07, <b class="gmail_sendername">Michael Collins</b> <<a href="mailto:mcollins@fcnetwork.com">mcollins@fcnetwork.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there a way to distinguish between a no answer and an invalid? For<br>me, a 'failed' attempt is dialing an invalid number, and I'd like the<br>CDRs to reflect that. I'd like a no answer to be as 'successful' as a
<br>busy.</blockquote><div><br>The ${DIALSTATUS} channel variable stores the result of the dial attempt:<br>
<a href="http://www.voip-info.org/wiki-Asterisk+variable+DIALSTATUS">http://www.voip-info.org/wiki-Asterisk+variable+DIALSTATUS</a> <br></div><div><br></div></div>You can store it on the CDR's userfield column using the cdr function:
<br>Set(CDR(userfield)=${DIALSTATUS})<br><br><br>