would be nice to store accountcode for inbound routing
CDR record. Better if we could to store this name from
added "inbound route config" accountcode field, but I don't
know where can be stored then DID number oneself in
CDR record, so I store accountcode=DID number to
accountcode field for billing purpose.
(1.10.009 version)
/var/www/html/admin/did.php
94d93
< $addarray[] = array('ext-
did',$account,$i++,'SetAccount',$accoun
t,'','0');
and need write updating script
AMP/upgrades/1.10.009/upgrade_did.php
like
AMP/upgrades/1.10.008beta3/upgrade_did.php
only with changes:
row18:
$sql = "UPDATE extensions SET priority = '5' WHERE
context = 'ext-did' AND extension = '".$value[0]."' AND
priority = '4' LIMIT 1";
row23:
$sql = "INSERT INTO extensions (context, extension,
priority, application, args, descr, flags) VALUES ('ext-
did', '".$value[0]."', '4', 'SetAccount', $value[0]."', '' , '0')";