Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 718 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 718 Bytes

freeswitch-php-esl

Alternative way to have FreeSWITCH php-esl working

Building

Requires PHP devel

git checkout
phpize
./configure --enable-ESL
make
make install
put ESL.php in the path execution of your app

Docker

FROM php:alpine
RUN wget https://github.com/lazedo/freeswitch-php-esl/archive/esl7-1.6.19.tar.gz \
	&& mkdir -p /tmp/esl \
	&& tar -xf esl7-1.6.19.tar.gz -C /tmp/esl --strip-components=1 \
	&& rm esl7-1.6.19.tar.gz \
	&& docker-php-ext-configure /tmp/esl --enable-ESL \
	&& docker-php-ext-install /tmp/esl \
        && apk --update add libstdc++ \
        && cp /tmp/esl/ESL.php `pear config-show | grep php_dir | tr -s ' ' | cut -d ' ' -f 4` \
        && rm -r /tmp/esl