HangUp extension

I want to update a table of my DB with the costs of the call I receive on the central.

I use


but this works only if the hangup happen by asterisk, if the operator or the caller hangup the call, script don’t read the cdr field to insert the cost of the call on my db

Can you help me?

Wrong forum: use Asterisk Support (assuming this is not about a GUI). You will need to provide the contents of the AGI script. If you didn’t write it, you should consult its author, as it is not part of Asterisk.

The version number will probably help, as well.