Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 2:48 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Voucher did not work with account numbers [RESOLVED]
PostPosted: Wed Jan 23, 2008 4:16 am 
Offline

Joined: Sat Jul 28, 2007 5:51 am
Posts: 79
Vouchers work great with CID, but when I tried account numbers, the amount of the voucher is not added to the account, please tell me how to fix this bug.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 23, 2008 4:56 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I just tested v1.3.2 authenticating via CallerID and then via cardnumber. Both times the voucher I redeemed in the IVR was credited to my account successfully.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 23, 2008 5:23 am 
Offline

Joined: Sat Jul 28, 2007 5:51 am
Posts: 79
sorry but my version is 1.3.1. Please understand that my version is under production. I cant just update to any version anytime.

I was looking at the Class.a2billing.php file, and my debug screen I see that when i enter the account number, the "accountcode" = blank. Still do not know why it acting like that.

manually enter account number:
Code:
file:Class.A2Billing.php - line:1265 - [VOUCHER REFILL CARD: UPDATE cc_card SET credit=credit+'10' WHERE username='']


CID:
Code:
file:Class.A2Billing.php - line:1265 - [VOUCHER REFILL CARD: UPDATE cc_card SET credit=credit+'10' WHERE username='xxxxxxxxx']


Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 23, 2008 5:40 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
To the best of my knowledge the voucher redemption code is unchanged since v1.3.0.
In v1.3.1 the statement that issues that debug message is on line 1285, not 1265 as yours shows. Try reverting to v1.3.1 as it shipped without your modifications to see if that fixes the problem.
I tested by pressing 8 in the IVR. Are you calling A2B directly in 'voucher' mode from the dialplan?

Added after 1 minutes:

I just noticed that in version v1.3.0 that debug statement was on line 1265. If you're not running a customised version then you failed to recursively copy the files when upgrading.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 23, 2008 5:47 am 
Offline

Joined: Sat Jul 28, 2007 5:51 am
Posts: 79
i used either mode it still give me the same error. I trying to compare Class.a2billing.php of version 1.3.1 and 1.3.2, that give me the same line of error which is 1262.

Thanks alot for replying my post fast, but still cant solve the problem. :D

Added after 4 minutes:

Let me make sure that we are testing the same thing.

when i said with CID, i meant that i have my number added as callerid under customers tab in admin_UI (web)

when i said manually enter account number, i meant that i removed the phone number from callerid list and enter the account number to authenticate, then enter the voucher number after the prompt, it said it added, but looking at the debug screen, the username or the accountcode is blank, which mean that it didnt know which account that voucher was for.

Actually, my version is 1.3.0


Last edited by lnb2g on Wed Jan 23, 2008 5:52 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 23, 2008 6:04 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
You must have got the files mixed up somehow, mate. It's definitely on line 1285 in v1.3.1 and v1.3.2. Line 1262 is just '{' in both versions.

Added after 1 minutes:

Quote:
when i said with CID, i meant that i have my number added as callerid under customers tab in admin_UI (web)

when i said manually enter account number, i meant that i removed the phone number from callerid list and enter the account number to authenticate
Identical methodology here.

Added after 14 minutes:

Oh, you're on v1.3.0 now? I just installed 1.3.0_Beta (can't lay my hands on 1.3.0 stable at this moment), tested and got:
Code:
a2billing.php|1: file:Class.A2Billing.php - line:1261 - QUERY UPDATE CARD: UPDATE cc_card SET credit=credit+'10' WHERE username=''
There's you problem then: v1.3.0. Sorry I fed you misinformation earlier about things not having changed.
An upgrade will fix this for you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 8 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