Hello,
There may not be a major issue here but some people may want this feature. I know it just takes a small change in the Class.A2billing.php or A2billing.php file. So please moderators, answer the question...
As of now, DID are mapped to one destination with one card number and they are billed. Why cant we enter in many Destinations for one DID with different accounts?
Then when user 123 calls DID it goes to say US destinations, and user 456 calls DID and goes to UK destination. Why is this not possible?
I tried changed few things in A2billing.php but with no luck. Please help me and probably some other people and assist us with this.
Looking at the A2billing.php file, in the DB query:
Code:
$QUERY = "SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username, useralias, connection_charge, selling_rate, did".
" FROM cc_did, cc_did_destination, cc_card ".
" WHERE id_cc_did=cc_did.id AND cc_card.status=1 and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='".$A2B-> destination."' ".
" AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL";
This gets the destination, and user call informaiton. There must be a small change needed there to get the destination from a specific user each time. Anyone have any ideas?
Jroper, Stavros, waiting for a nice reply.
Regards