XMLRPC client for cnxcc to synchronize in-memory information to persistent storage
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
sql
ActiveClient.class.php
CheckClients.php
Database.class.php
README.md
XMLRPCClient.class.php
cnxcc-db-sync.php
curl.php
dbconfig.include.php
util.inc.php

README.md

cnxcc-db-sync

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.

Dependencies

  • xmlrpc module for php

Usage

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;

Troubleshooting

  • 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.