Hi all,
i have found this old topic, because I have the same problems with 1.3.3 (time to upgrade to new version not possible).
Well i found by this
Ticket512 and
here partial solution to my problem. But I need other than evaluation of DNID and evaluation of CID.
I have 1 CallPlan with 3 RateCard:
1_RateCard: From Mobil and Local
CID=all to Local
DNID=4932_RateCard: From Landline
CID=493 to ToolFree
DNID=498003_RateCard: From Mobil
CID=491 to ToolFree
DNID=49800All DNID and CID ONLY Prefix, not full number!
So my question. If the following change in A2billing.php work?
instead of:
Code:
if ($agi->request['agi_extension']=='s'){
$A2B->dnid = $agi->request['agi_dnid'];
}else{
$A2B->dnid = $agi->request['agi_extension'];
}
this
Code:
if ($agi->request['agi_extension']=='s'){
$A2B->dnid = $A2B->agiconfig['our_own_custom_forced_dnid'];
$A2B->CallerID = $A2B->agiconfig['our_own_custom_forced_cid'];
}else{
$A2B->dnid = $agi->request['agi_extension'];
}
and I made 3 agi-conf with add two new variable:
Code:
our_own_custom_forced_dnid =
our_own_custom_forced_cid =
Thanks in advance!
Sorry for my bad Englisch.