XMLRPC client for cnxcc to synchronize in-memory information to persistent storage. This script works as a helper for https://github.com/caruizdiaz/cnxcc-web.
- xmlrpc module for php
Database configuration should be put in "dbconfig.include.php"
php cnxcc-db-sync.php <sip-server-ip> <xmlrpc-port>
To check and update the database in a more real-time fashion, it is recommended to run to script every 1 second
while true; do php cnxcc-db-sync.php 127.0.0.1 5060; sleep 1; done;
- When the scripts freezes, for no apparent reason, maybe kamailio is wrongly configured
- Don't forget to enable tcp on Kamailio
- Load xmlrpc module, and configure it using the following parameters:
modparam("xmlrpc", "route", "XMLRPC")
Ignore any other parameters.