In order to create a coredump in Asterisk you must compile it with “DEBUG_THREADS” and “DONT_OPTIMIZE” options turned on, remember to start it with:
# /bin/bash /usr/sbin/safe_asterisk
Se the Asterisk start script coredump-dir (DUMPDROP) as you prefer (the default is /tmp).
Now, send a kill -6 signal to the Asterisk process. That should produce a coredump. Don’t forget to read doc/backtrace.txt
Thanks for reading.