I want to do a callback scenario. Each time asterisk receive a call, it creates a callfile, sends back the hangup signal and dial back the extension. Here the default CDR logging is enabled. If a dial attempt is failed then a CDR is generated. How I do a trick to stop CDR logging for all callfiles, without changing the default behaviour of CDR logging. I know its NoCDR() function that will disable CDR() logging, But how it will be done in callfiles ????? Thanks, M. Faheem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090903/20dec7ef/attachment.htm
Have your callfile work through a context instead of dialing. The context can disable CDR. _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Faheem Sent: Thursday, September 03, 2009 7:57 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] How to Disable CDR for callfile? I want to do a callback scenario. Each time asterisk receive a call, it creates a callfile, sends back the hangup signal and dial back the extension. Here the default CDR logging is enabled. If a dial attempt is failed then a CDR is generated. How I do a trick to stop CDR logging for all callfiles, without changing the default behaviour of CDR logging. I know its NoCDR() function that will disable CDR() logging, But how it will be done in callfiles ????? Thanks, M. Faheem -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090903/8e568c03/attachment.htm
You can do this through your dial plan by using the "failed" extension within your context. Add this to your dial plan: Exten => failed,1,NoCDR() When using a call file and the call fails, the call will jump to the failed extension within your dial plan. Any post-processing that you want to do can be done through that extension. Dave -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090904/4456a793/attachment.htm