i have been trying to get that extracharge_did feature to work but it does not in my case.
i don't understand how it is supposed to capture the DID i'am calling from
i have gerry-rigged it to work differently where I overtly pass it the number I am calling from in the DeadAGI function call
I know that the portion of the routine that compares the numbers in the a2billing.conf and then computes the additional price works. But I can't get the A2B->dnid to work because I don't have a DNID. when I call my DNID value always says unknown
Quote:
// if an extracharge DID number was called increase rates with the extracharge fee
if (strlen($A2B->dnid)>2 && is_array($A2B->agiconfig['extracharge_did']) && in_array($A2B->dnid, $A2B->agico$
{
$fee=$A2B->agiconfig['extracharge_fee'][array_search($A2B->dnid, $A2B->agiconfig['extracharge_did'])$
$A2B->write_log("[CC_asterisk_rate-engine: Extracharge DID found: ".$A2B->dnid.", extra fee: ".$fee.$
for ($i=0; $i<count($this->ratecard_obj); $i++)