login | register
Thu 21 of Aug, 2008 [06:07 UTC]

voip-info.org

History

Asterisk h extension

Created by: JustRumours,Last modification on Sat 09 of Aug, 2008 [12:33 UTC]

The h extension


Gets executed after a call has been terminated.

Note

Use with great care: Apparently some channel variables get destroyed when the call is hung up, and those variables aren't available anymore (or have inconsistent values) when the h extension is being called. Therefore you shouldn't rely on this special extension for billing/calling card purposes.

${CHANNEL} correctly delivers the channel that was/is to be hung up
${EXTEN} shows 'h', so that's probably not what you are interested in

Update:
With bug/patch 6193 Asterisk 1.4 will now close the CDR before entering the h extension if the corresponding option has been set. This means that e.g. a DeadAGI() script called from h is able to access and act on the call's CDR data.

add an option to cdr.conf that enables ending CDRs before executing the "h" extension as opposed to afterwards


See also

  • Monitor with option 'm' to trigger an action after the monitored call has been completed


Go back to Asterisk standard extensions


Comments