If you are using the embedded version of PHP support that arrives with FS, you must set a whole list of environment stuff.
You first need to have the esl.so file loaded, but only if you have dl.so enabled in php.ini or php.d you'll be able to do so.

I used a simpler version of ESL, that was based on FusionPBX and using pure TCP sockets rather then the shard library, and it works great, but you require to do additional work yourself.

Ido

On Fri, Jul 17, 2015 at 9:31 PM, Admin <smontour@twc.com> wrote:
I am getting the following error when trying to test an inbound
connection to FS using ESL with PHP.

---------------------------------------------------------------
> php test.php
PHP Warning:  dl(): Dynamically loaded extensions aren't enabled
in /usr/share/php/ESL.php on line 22
PHP Fatal error:  Call to undefined function new_ESLconnection()
in /usr/share/php/ESL.php on line 155
----------------------------------------------------------------

The installation (make phpmod-install) went just fine with no errors.
It copied ESL.so to '/usr/lib/php5/20131226' and created esl.ini under
"/etc/php5/apache2/conf.d/esl.ini"

I had ESL php working last year when I was testing a php application.
But then I was running Debian 7.1 and PHP 5.5.

Now i am using the following:
FreeSWITCH Version 1.4.20+git~20150703T164215Z~b95362f965~64bit
PHP 5.6.9-0+deb8u1 (cli)
Debian 8.1 64-bit

Any help is very much appreciated. Thanks.




_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org