I noticed that amportal start action always returns 1 as return value. This is because the last function called in freepbx_engine script is “call_hook”. This function always returns 1 if there isn’t any hook script. I think this behaviour is wrong, because the script has to return 0 independently if a hook script exists or not.
I need to control amportal’s return value, how can I fix it?
Thanks in advance,