Is there a way to execute “,h” only for a specific extension?
When my extension 1181@extern hangs up, then this should be executed:
exten => h,1,NoOp(Unlocking 1181)
same => n,Set(DB(locked/1181)=)
and when my extension 1179@extern hangs up, then this should be executed:
exten => h,1,NoOp(Execute Shell Script)
same => n,System(/etc/asterisk/script.sh)
Currently, I have only:
[extern]
exten => 1181,1,Answer()
.......
n,Hangup()
exten => h,1,NoOp(Unlocking 1181)
same => n,Set(DB(locked/1181)=)
If another extension, that is NOT 1181, hangs up, this is still executed:
exten => h,1,NoOp(Unlocking 1181)
same => n,Set(DB(locked/1181)=)
Thank you in advance for your help.