[asterisk-users] API Originate Action - distinguishing between No Answer and Invalid phone number

Roi Stork roi.stork at gmail.com
Thu Feb 1 19:31:01 MST 2007


On 2/1/07, Michael Collins <mcollins at fcnetwork.com> wrote:
>
> Is there a way to distinguish between a no answer and an invalid?  For
> me, a 'failed' attempt is dialing an invalid number, and I'd like the
> CDRs to reflect that.  I'd like a no answer to be as 'successful' as a
> busy.


The ${DIALSTATUS} channel variable stores the result of the dial attempt:
http://www.voip-info.org/wiki-Asterisk+variable+DIALSTATUS

You can store it on the CDR's userfield column using the cdr function:
Set(CDR(userfield)=${DIALSTATUS})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070201/1922ad8e/attachment.htm


More information about the asterisk-users mailing list