0 like 0 dislike
522 views
Hi,
I am on A2Billing 1.8.1 and customers have been complaining lately that they are getting an email "DID Released"
How can this be fixed? I do not want these DIDs automatically released
in Education & Reference by | 522 views

1 Answer

0 like 0 dislike
Hi

If on the monthly anniversary of setting the DID destination, there are insufficient funds to pay for the DID monthly rental, it will be released.

To prevent this behaviour, stop the cronjob that does this check BUT then Monthly DID usage will not be billed, although per minute will be, and DID will not be released when the customer has no funds to pay.
by
0 0
If I erase the following lines from "a2billing_bill_diduse.php", will it simply stop the DIDs from being released, and not have any other affect on my services?

I do still want the monthly cost for the DID to be deducted from the customer balance, that is why I do not want to stop the entire cronjob

Code:

                        // RELEASE THE DID
                        $QUERY = "UPDATE cc_did set iduser = 0, reserved = 0 WHERE id='" . $mydids[0] . "'";
                        if ($verbose_level >= 1)
                                echo "==> UPDATE DID QUERY:     $QUERY\n";
                        $result = $instance_table->SQLExec($A2B->DBHandle, $QUERY, 0);

                        $QUERY = "UPDATE cc_did_use set releasedate = now() WHERE id_did = '" . $mydids[0] . "' and activated = 1";
                        $result = $instance_table->SQLExec($A2B->DBHandle, $QUERY, 0);
                        if ($verbose_level >= 1)
                                echo "==> UPDATE DID USE QUERY:         $QUERY\n";

                        $QUERY = "INSERT INTO cc_did_use (activated, id_did) VALUES ('0','" . $mydids[0] . "')";
                        $result = $instance_table->SQLExec($A2B->DBHandle, $QUERY, 0);
                        if ($verbose_level >= 1)
                                echo "==> INSERT NEW DID USE QUERY:     $QUERY\n";

                        $QUERY = "DELETE FROM cc_did_destination WHERE id_cc_did =" . $mydids[0];
                        $result = $instance_table->SQLExec($A2B->DBHandle, $QUERY, 0);
                        if ($verbose_level >= 1)
                                echo "==> DELETEDID did_destination QUERY:      $QUERY\n";

                        $mail_user = true;
                        $mail = new Mail(Mail::$TYPE_DID_RELEASED,$mydids[4] );
                        $mail -> replaceInEmail(Mail::$DID_NUMBER_KEY,$mydids[7]);
                        $mail -> replaceInEmail(Mail::$DID_COST_KEY,$mydids[3]);
                        $mail -> replaceInEmail(Mail::$BALANCE_REMAINING_KEY, $mydids[5]);
                }
        }

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked Aug 11, 2013 in Education & Reference by Dyna | 1.7k views
0 like 0 dislike
1 answer
asked May 29, 2014 in Education & Reference by digital (40 points) | 36 views
0 like 0 dislike
1 answer
asked Mar 1, 2014 in Education & Reference by india2014 (150 points) | 41 views
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
asked Feb 25, 2014 in Education & Reference by india2014 (150 points) | 72 views
1 like 0 dislike
1 answer
1 like 0 dislike
1 answer
asked Feb 27, 2014 in Education & Reference by india2014 (150 points) | 77 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,202 questions
1,347 answers
553 comments
1,994 users