overloads.conf 796 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<?php

/* ### Overloads configuration ### */

/*
 * Set the following to TRUE to overload the xmlrpc_recover_phone_account function
 *
 * Default value: FALSE
 */
define('XMLRPC_RECOVER_PHONE_ACCOUNT_OVERLOAD', FALSE);

/** ### Overloads implementation */
// We may need to access some of the functions provided by the server (database access at least)
// so we need to know where to find them
define("PATH_TO_INSTALLATION", "/opt/belledonne-communications/share/flexisip-account-manager");

if (XMLRPC_RECOVER_PHONE_ACCOUNT_OVERLOAD === True) {
	include_once PATH_TO_INSTALLATION . '/database/database.php';
}

// args = [phone, [domain], [lang]]
// is expected to return the recovered account username or ACCOUNT_NOT_FOUND
function xmlrpc_recover_phone_account_overload($method, $args) {
}

?>