[asterisk-users] API Originate Action - distinguishing between No
Answer and Invalid phone number
Michael Collins
mcollins at fcnetwork.com
Thu Feb 1 18:35:32 MST 2007
I've discovered that when dialing out using API's Originate action, a no
answer is considered a failed attempt, while a busy is considered a
successful attempt. The problem I'm having is that when I dial an
invalid number, say a disconnected number that gives a fast busy, my
CDRs are identical to those generated by a no answer attempt.
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.
I'm familiar with the 'OriginateFailure' event and it's 'Reason' field,
but I don't know how to get that reason into the CDR. Is that possible?
Thanks,
MC
More information about the asterisk-users
mailing list