i am using minicom program( shell -> sudo minicom) to execute AT command AT+CDV=phone_number to make a phone call.
I am able to do this manually.
How ever i need to automate this process using php.
I will receive phone_number from web form then pass the variable phone_number to minicom program to make phone call.
Please help me how to execute the command (AT+CDV=phone_number from PHP code) to the running minicom program or for each request to start minicom program and execute AT+CDV=phone_number
Someone suggested i use shell_exec(), but i fail to use it.
Please help me how to accomplish that.