2017 © Pedro Peláez
 

library freeswitch-curl

A PHP module to generate and serve FreeSwitch configuration via mod_curl

image

soulhunter/freeswitch-curl

A PHP module to generate and serve FreeSwitch configuration via mod_curl

  • Sunday, October 8, 2017
  • by soulhunter
  • Repository
  • 3 Watchers
  • 2 Stars
  • 79 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Users and dialplan use Mysql Database using XML_curl using "intralanman" contrib

Source available /usr/src/freeswitch.trunk/contrib/intralanman # /usr/src ( is the path where i have downloaded the trunk), (*1)

This README. created by Balaji BHR .... balajibhr@gmail.com IRC : ramindia, (*2)

REQUIREMENTS:, (*3)

apt-get install mysql-server libmysqlclient15-dev, (*4)

apt-get install php5 php5-common libapache2-mod-php5 php5-gd php5-dev curl libcurl3 libcurl3-dev php5-curl, (*5)

apt-get install php-pear, (*6)

pecl install pdo, (*7)

pecl install pdo_mysql, (*8)

updatedb, (*9)

vi /etc/php5/apache2/php.ini, (*10)

add below lines, (*11)

extension=pdo.so extension=pdo_mysql.so, (*12)

Copying the Source intralanman to web server root directory

cp -R contrib/intralanman/PHP/fs_curl /var/www, (*13)

Creating the database in Mysql

create database "freeswitch", (*14)

populate the tables in to freeswitch database

mysql -u root -p < /var/www/fs_curl/sql/mysql-5.0-with-samples.sql, (*15)

cd /var/www/fs_curl, (*16)

vi global_defines.php, (*17)

change the below settings according to your setup, (*18)

/** * Defines the default dsn for the FS_PDO class */ define('DEFAULT_DSN', 'mysql:dbname=freeswitch;host=localhost'); /** * Defines the default dsn login for the PDO class */ define('DEFAULT_DSN_LOGIN', 'root'); /** * Defines the default dsn password for the PDOclass */ define('DEFAULT_DSN_PASSWORD', 'password'); /**, (*19)

save the file, (*20)

Configuring the XML_CURL Module

cd /usr/local/freeswitch/conf/autoload_configs, (*21)

vi modules.conf.xml, (*22)

add line , (*23)

example below, (*24)

<load module="mod_console"/>
<load module="mod_xml_curl"/>
<load module="mod_logfile"/>
<!-- <load module="mod_syslog"/> -->

save files, (*25)

Configuring the xml_curl to take users and dialplan information from Database

vi xml_curl.conf.xml, (*26)

add this line "<param name="gateway-url" value="http://localhost/fs_curl/index.php bindings="dialplan|directory"/>, (*27)

example looks like this, (*28)

<param name="gateway-url" value="http://localhost/fs_curl/index.php bindings="dialplan|directory"/> , (*29)

save the file, (*30)

move or remove all userfile from directory/default

example :, (*31)

mv /usr/local/freeswitch/conf/directory/deafult/1000.xml to /usr/local/freeswitch/conf/directory/deafult/1000.xml.noload, (*32)

Restaring the Services

stop the freeswitch, (*33)

start the freeswitch, (*34)

restart apache, (*35)

TESTING

http://ipaddress/fs_curl/index.php?section=directory&user=1000&domain=domain.com, (*36)

you see this results, (*37)

- -

- - - - -
- - - - - - , (*38)

CONGRADULATIONS... XML_CURL with intralan contrib working, (*39)

now its your own, how you like to do next, (*40)

Good luck, (*41)

try login using username and password as show below document, (*42)

http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Some_stuff_to_try_out.21, (*43)

try calling, (*44)

5000 - demo IVR (requires sounds and music files to be installed) 9995 - five second delay echo test 9996 - standard echo test 9999 - music on hold (requires music files to be installed), (*45)

The Versions

08/10 2017

dev-master

9999999-dev

A PHP module to generate and serve FreeSwitch configuration via mod_curl

  Sources   Download

The Requires

  • php >=5.6.0

 

by Dmitry Arkhipov
by Raymond Chandler

php postgres mssql mysql oracle freeswitch mod_curl

31/01 2016

1.0

1.0.0.0

A PHP module to generate and serve FreeSwitch configuration via mod_curl

  Sources   Download

The Requires

  • php >=5.6.0

 

by Dmitry Arkhipov
by Balaji BHR

php postgres mssql mysql oracle freeswitch mod_curl