Star2Billing / a2billing

A2Billing is a telecom switch and billing system capable of providing and billing a range of telecom products and services to customers such as calling card products, residential and wholesale VoIP termination, DID resale and callback services.
www.asterisk2billing.org
Other
181 stars 175 forks source link

adding multiple dids #166

Open marcin11 opened 4 years ago

marcin11 commented 4 years ago

This is regarding older version of a2b 1.9.4 (Cuprum) to be exact. When adding multiple dids using list separated by comma individual dids are being inserted in to cc_did table, but only last did is inserted in to cc_did_use table. The result is that the customer is not being charge monthly rate at the time of creating did destination using did that is not in cc_did_use table. I have been searching the code, but I was unable to find a function that runs the loop and inserts new dids in to these 2 tables when multiple dids are being added.

Anyone can point me at the right direction.