Please see the documentation on the wiki at https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace for more information