Daniel Gonzalez
2015-Feb-26 11:57 UTC
[asterisk-users] How to perform some tasks after the CDR has been closed?
Hi, I would like to do some tasks after the CDR has been closed, and the CDR(end), CDR(billsec) and CDR(duration) fields are available. I have tried to do that on the h extension, but it seems the CDR is not yet complete in the h extension. When is the CDR closed? How can I trigger some actions after that event? It would be nice if the channel is still available, since I need access to other channel variables. An alternative would be to pass those variables via the CDR if the channel has been deleted. Thanks, Daniel Gonzalez -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150226/ca7bd686/attachment.html>
Ishfaq Malik
2015-Feb-26 12:02 UTC
[asterisk-users] How to perform some tasks after the CDR has been closed?
On 26 February 2015 at 11:57, Daniel Gonzalez <gonvaled at gonvaled.com> wrote:> Hi, > > I would like to do some tasks after the CDR has been closed, and the > CDR(end), CDR(billsec) and CDR(duration) fields are available. I have tried > to do that on the h extension, but it seems the CDR is not yet complete in > the h extension. > > When is the CDR closed? How can I trigger some actions after that event? > > It would be nice if the channel is still available, since I need access to > other channel variables. An alternative would be to pass those variables > via the CDR if the channel has been deleted. > > Thanks, > Daniel Gonzalez > > -- > _____________________________________________________________________ > >Have you set endbeforehexten=yes in your cdr.conf ? -- Ishfaq Malik Department: VOIP Support Company: Packnet Limited t: +44 (0)845 004 4994 f: +44 (0)161 660 9825 e: ish at pack-net.co.uk w: http://www.pack-net.co.uk Registered Address: PACKNET LIMITED, Duplex 2, Ducie House 37 Ducie Street Manchester, M1 2JW COMPANY REG NO. 04920552 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150226/798c0b39/attachment.html>