These notes are interesting only if you want to extend the Asterisell application source code.
config/schema.yml
.
cd /asterisell/scripts ./makedb.sh
data/sql/lib.model.schema.sql
.
InitWithDefaultMySQLStoredProcedures
in case the table content modification implies a CDR rerating.
php54 symfony propel:generate-admin asterisell ArReportScheduler --module=report_scheduling
config/routing.yml
remove code like:
ar_role: class: sfPropelRouteCollection options: model: ArRole module: role prefix_path: /role column: id with_wildcard_routes: true ar_user: class: sfPropelRouteCollection options: model: ArUser module: user prefix_path: /user column: id with_wildcard_routes: true ar_extension_has_code: class: sfPropelRouteCollection options: model: ArExtensionHasCode module: extension_code prefix_path: /extension_code column: id with_wildcard_routes: true ar_organization_unit: class: sfPropelRouteCollection options: model: ArOrganizationUnit module: organization_unit prefix_path: /organization_unit column: id with_wildcard_routes: true
generator: class: sfPropelAdminGenerator param: model_class: ArExtensionHasCode theme: admin non_verbose_templates: true with_show: false singular: ArExtensionHasCode plural: ArExtensionHasCodes route_prefix: ar_extension_has_code with_propel_route: 1 actions_base_class: sfActions fields: ar_extension_id: { name: Extension } ar_extension: { name: Extension } code: { name: Code, help: "An extension can have one or more code (telephone numbers) that are valid alias of them." } list: title: Extension Codes (alias telephone numbers associated to an Extension) display: [ar_extension, =code] filters: [ar_extension_id, code] sort: [code, asc] edit: title: Extension Codes (alias telephone numbers associated to an Extension) display: [ar_extension, code]
makedb.sh
script must be patched for changing the form annotations in case there are tables
with no id
but other primaryKey fields.
debug_mode
in the instance params.
fab upgrade_app:instance_name
, for recompiling from scratch with enabled profiling instructions.
fab connect:instance_name
and then php asterisell.php debug rerate
and php asterisell.php run jobs
for executing a rating pass with the profiling enabled.
rating_tools/utilities/process-haskell-profiling.sh
.
fab upgrade_conf:instance_name
for updating it in a fast way.
debug_mode
, and execute a fab upgrade_app:instance_name
again.
--run-level
options. See the source code of the rating engine for more info.
$this->logMessage('help me!', 'info');
sfContext::getInstance()->getLogger()->info($message); sfContext::getInstance()->getLogger()->err($message);
echo log_message(...);
apps/asterisell/config/app.yml
file, that is generated from fabric_data/lib.py
management tool, according the content of asterisell_instances.py
file.