Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 5:58 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: DiD Realese problem
PostPosted: Thu Oct 22, 2009 9:18 am 
Offline
User avatar

Joined: Mon Jul 13, 2009 9:58 pm
Posts: 18
Im getting this error message when my customers release a DID any reply with information on how to fix this problem would be very apreciated :)


Fatal error: Uncaught exception 'phpmailerException' with message 'Message body empty' in /usr/local/src/a2billing/common/lib/mail/class.phpmailer.php:503 Stack trace: #0 /usr/local/src/a2billing/common/lib/Misc.php(89): PHPMailer->Send() #1 /usr/local/src/a2billing/customer/A2B_entity_did.php(105): a2b_mail('[email protected]...', '[Thu Oct 22 5:0...', NULL, 'a2billing_alert...', 'A2BILLING ALERT') #2 {main} thrown in /usr/local/src/a2billing/common/lib/mail/class.phpmailer.php on line 503


Top
 Profile  
 
 Post subject: Re: DiD Realese problem
PostPosted: Thu Oct 29, 2009 12:42 pm 
Offline

Joined: Tue May 27, 2008 9:29 am
Posts: 5
Hi,
I noticed the same problem as well. The problem seems to be in the code /usr/local/src/a2billing/customer/A2B_entity_did.php where the variable $messagetext is not actually defined.
Here is a simple fix i wrote, I modified my own A2B_entity_did.php and added the following code:

Code:
       $QUERY = "SELECT cc_did.did,cc_card.username FROM (cc_did INNER JOIN cc_card on cc_card.id=cc_did.iduser) WHERE cc_did.id=$choose_did;";
        $resmax = $DBHandle_max->Execute($QUERY);
   if ($resmax) {
      $row = $resmax->fetchRow();
      $mydid = $row[0];
                $myusername = $row[1];
   }
        $messagetext = "DID $mydid has been released from Account Number $myusername ";



Make sure the above code is added just below the following code in line 47.

Code:
if ($action_release == "confirm_release") {


What that should do is, in the message body of the email being sent to the Admin email address, it says the DID that has been released and which Account number it is released from.
I guess someone should probably report this as a bug fix.

Kind Regards,
Kayode.


Top
 Profile  
 
 Post subject: Re: DiD Realese problem
PostPosted: Thu Oct 29, 2009 5:42 pm 
Offline

Joined: Sun Mar 12, 2006 2:49 pm
Posts: 954
Location: Barcelona
I think this might be fixed on 2458

Yours,
/Areski


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group