I need to execute additional code in my dialplan code after Hangup() command (I need to run some shell command). Is there any way how to tell asterisk to continue after Hangup() command ? or I have to use another command ? Thank you.
Use the h extension. It gets run after the channel has hungup.
I have multiple hangups() there and I want to run this code only after one of them, may I pass some value to Hangup so I would recognize in h extension which Hangup() was actually executed ?
create a variable with value 0;
if you want the code to be excecuted, change to value to 1
And then you check after hangup what the value of the variable is, if it is 1, you can let the code run.