Asterisk version : 188.8.131.52
Dahdi version : 184.108.40.206
There is requirement in my project to hangup inbound call in certain cases, For that I have made php script that runs every second and hangup a call if it matchs the condition.
For hangup channel i use below syntax :
echo system(“asterisk -rx ‘hangup requst $channel’”).
It is working fine if i run script from Terminal .
When i add script in cronjob at that time script is running fine but echo system(“asterisk -rx ‘hangup requst $channel’”). command does not execute.
Please suggest how to execute above command from cronjob