- Joined
- Oct 20, 2020
- Messages
- 2
- Reaction score
- 0
Okay so I've managed to get the CISCO 7070 phones to work and I can also get he Address Book directory URL to work using an external webserver with a php server if I add <?php header(' html/xml') ?> before the actual XML code.
However if I use the cisco_phonebook.xml which 3cx generates dynamically the phone does not recognise it as a genuine XML file, I don't believe the issue is with SSL etc. the issue is how nginx servers/presents the XML file.
I cannot run a php script from the 3cx server because I'm assuming, although PHP is installed ngnix does not recognise the php as an executable file, I've added the following to the config file:
location ~ \.php$ {
try_files $uri =404;
include snippets/fastcgi-php.conf;
# With php5-cgi alone:
#fastcgi_pass 127.0.0.1:9000;
# With php5-fpm:
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
#fastcgi_index index.php;
include fastcgi_params;
}
However it still doesn't execute the PHP script :-(
If I can get PHP to run I could quite easily manipulate the cisco_phonebook.XML to work with the phones. The reason why we want to get these phones working is because we have a lot of 7970 phones out there and want to migrate from freePBX (which works perfectly) to 3cx.
However if I use the cisco_phonebook.xml which 3cx generates dynamically the phone does not recognise it as a genuine XML file, I don't believe the issue is with SSL etc. the issue is how nginx servers/presents the XML file.
I cannot run a php script from the 3cx server because I'm assuming, although PHP is installed ngnix does not recognise the php as an executable file, I've added the following to the config file:
location ~ \.php$ {
try_files $uri =404;
include snippets/fastcgi-php.conf;
# With php5-cgi alone:
#fastcgi_pass 127.0.0.1:9000;
# With php5-fpm:
#fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
#fastcgi_index index.php;
include fastcgi_params;
}
However it still doesn't execute the PHP script :-(
If I can get PHP to run I could quite easily manipulate the cisco_phonebook.XML to work with the phones. The reason why we want to get these phones working is because we have a lot of 7970 phones out there and want to migrate from freePBX (which works perfectly) to 3cx.