You can add any logging messages to the script. Please make sure you redirecting messages to a file which is permissive to write, for example, to
/usr/local/FlashphonerWebCallServer/logs/record.log
You can also provide SSH access to the server using this form, we will check