Michael Collins
2006-Dec-07 20:00 UTC
[asterisk-users] AMI - Originate Action and Busy, NoAnswer calls - CDR
Gang, I'm wondering if anyone has run into this problem and found a solution. When I use the manager interface to generate a call, I don't get very much information in my CDR records when the dial status is BUSY, FAILED, NOANSWER, etc. I am putting the dialed number into the CDR Userfield in my dialplan, but the field doesn't populate the CDR record unless the Originate action is successful and the dialed party answers the call. I need to postprocess the CDR records and I absolutely have to have the phone number in the CDR. Ideally I'd like to populate the CDR Userfield with several pieces of information, which I am able to do only if the Dial() or Originate operation results in a connect. I've tried numerous variations of context/extension wrangling to no avail. I can supply examples of what didn't work but I'm really interested in hearing about examples that do work. Has anyone found a workaround or a best practice that allows CDR records to contain the dialed phone number for every Dial() or Originate that Asterisk processes? Thanks, MC -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061207/a9c7c597/attachment.htm
Nick Adams
2006-Dec-07 21:35 UTC
[asterisk-users] Re: AMI - Originate Action and Busy, NoAnswer calls - CDR
Michael Collins wrote:> Has anyone found a workaround or a best practice that allows CDR records > to contain the dialed phone number for every Dial() or Originate that > Asterisk processes?I got around this by generating a call to a "Local" channel which is always (well...nearly always) successful. The Local channel then issues the Dial command and the dialplan captures the ${DIALSTATUS} via AGI. Messy but works.
Possibly Parallel Threads
- API Originate Action - distinguishing between No Answer and Invalid phone number
- Switched from Asterisk 1.8 to 13 - CDR ringtime now always zero (Joshua C. Colp)
- DIALSTATUS weirdness (CHANUNAVAIL instead of BUSY, NOANSWER instead of CHANUNAVAIL)
- Setting CDR(userfield) from Macro called from feature doesn't work with cdr_mysql
- Howto change CDR record on calling channel from called thread?