inspurhua/fscurl

A PHP module to generate and serve FreeSwitch configuration via mod_curl,fork from soulhunter/freeswitch-curl


Keywords
php, postgres, freeswitch, mod_curl

Documentation

/**

  • 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'); /*

save the file

Configuring the XML_CURL Module

cd /usr/local/freeswitch/conf/autoload_configs

vi modules.conf.xml

add line

example below

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

save files

Configuring the xml_curl to take users and dialplan information from Database

vi xml_curl.conf.xml

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