Long time user of FreePBX. I’m trying to hook into macro’s for running an AGI script during the hangup routine, but the default macro-hangupcall always exits with a non-zero status, interrupting the routine and my script never runs. When I check the Asterisk full logs with debug on, I see this as the error:
chan_pjsip.c: AST hangup cause 16 (no match found in PJSIP)
For the life of me, I can’t figure how why this is happening. Any suggestions?
Note: My trunk using from-pstn context and my extension uses from-internal context.
What is the extra logging I should enable before I provide the dialplan execution output? And is there a better place to capture that output other than cat’ing /var/log/asterisk/full?
I guess what I’m asking is, what is the exact command which prints the dialplan execution output? I’m only familiar with the Asterisk full log. I suspect I can get the dialplan execution output from the Asterisk console, but I don’t know which command that would be.