Hi Team,
Configuration :
Asterisk version : 1.8.21.0
Dahdi version : 2.7.0.1
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 .
Issue:
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