Hi guys,
I am trying to get the php code to run and send a notification from the web browsers internally before adding to a dial plan.
I have created push_notification.php in the www folder ( for now ) and made it an Hello World script.
I ran
http://192.168.1.2/push_notification.php
and got the hello world text so php is running okay.
I have updated your script as follows:
added after <?php
error_reporting(E_ALL);
ini_set('display_errors','on');
added my firebase API key
I have placed the php file in the var/www/fusionpbx folder ( is this location okay ??)
From the internal network when I run with
http://192.168.1.2/push_notification.php/extent=1005
I get the push notification to my android device ( as I have used the Android tokenID )
1. In my dial plan I manually edit the type to system. Leave the field and save. The type just changes back to whichever one I selected.
2. When I want to updated my script what things do I stop / refresh in Sip status ( at the moment I'm doing all )