Add Customized file with custom jobs to the Instances configuration file of the provider and reseller instance.
customizations/ExportTo<your_reseller>.php
, and define abstract/missing methods (here Minitel
is an example of reseller name).
class ExportToMiniTel extends ExportCDRSToReseller { /** * @return string */ function getResellerCode() { return 'mini-tel'; } public function getActivationDate() { // NOTE: before this date the info is manually sent, retrieving from the historic data. // From this data the info is sent live, the rates are aligned. return strtotime('2014-01-01'); } }
/** * Allows exporting info about used communication channels, * in case they must be known from the Reseller, for applying different rates on them. * * The used name, is `ar_communication_channel_type.internal_name`. * * @return array a map between channel name on provider, and name to use when exporting to the reseller. * Channels that are not matching will be exported to the reseller using the default channel name. * Channel Names are exported in this way: * - empty string when there is no channel info exported * - the channel name otherwise * Channel Names are imported on the reseller side in this way: * - "provider-name" when there is no channel info exported * - "provider-name-" otherwise * By default (without specifying nothing) the services are exported like 'system-service-cdr' */ public function exportedCommunicationChannels() { return array(); }
custom_export_cdrs_jobs = [ 'ExportToMiniTel' ]
ExportServiceCDRSToReseler
.