Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 12:08 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: Fri Feb 29, 2008 5:02 am 
Offline

Joined: Wed Feb 20, 2008 6:38 am
Posts: 8
Perfectly makes sense. Brilliant idea.

But this will require the call to hop from one a2b agi to another a2b agi ... not such a big deal, but still 2 seperate processing ...

Wouldn't it be nice just to have a step somewhere which just checks the balance before proceeding with the call ...

Waiting to hear more experts comment ...


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 29, 2008 9:15 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I do exactly what kk described. Admittedly it's horribly inefficient to maintain every call on 1 extra Asterisk server for each 'layer' of reselling.
For the moment the overhead of this isn't causing me any trouble, but when my monitoring indicates we're starting to stretch the legs of the servers I'm intending to take another look at this. Implementing the necessary changes to A2Billing should be fairly trivial. Of course, if you're in the mood for development, patches would be very welcome.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 04, 2008 2:53 pm 
Offline

Joined: Sat Mar 01, 2008 4:09 am
Posts: 37
Ok, you can make resellers like described at the previous page, but what about the buy rate that you want to set for your sellers... that will be a problem I think.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 04, 2008 3:02 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
That's the advantage of going the VPS route: each reseller has independant rate-tables, so everyone has their own buy and sell rates. Most resellers will be sourcing their buy-rates from the sell-rate of another VPS on the same system, whilst the top level reseller(s) will source their buy-rate from their carriers.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 04, 2008 3:25 pm 
Offline

Joined: Sat Mar 01, 2008 4:09 am
Posts: 37
True, but why don't we make a hack than where a reseller is actually an administrator that can only see his own customers and where his buy rates are solid and set by the root of the system.

I'm just still brainstorming what would be the best way to get to this :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 12, 2008 2:12 pm 
Offline

Joined: Sun Feb 10, 2008 4:00 pm
Posts: 8
Location: Greece
Nice job coborop! It works very good. But I was wondering, what about local calls between different instances of A2B ? How would customers be able to make free calls between themselves, meaning, for example, if they have got an account from a different reseller?

Has anyone some solution to post for this? coborop maybe?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 12, 2008 2:33 pm 
Offline

Joined: Sat Mar 01, 2008 4:09 am
Posts: 37
Good one, I would like to know this one too.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 12, 2008 5:09 pm 
Offline

Joined: Thu Sep 13, 2007 12:46 pm
Posts: 254
Location: Naples, Fl ( USA )
krzykat wrote:
I haven't used a reseller module yet (can't wait to get into that), but if you've got 2 A2B's back to back, then I assume you would just have your first A2B system with the reseller's account as the trunk that he uses to process all of his calls.

System A = your main system
System B = reseller's virtual system

System A has a A2B user created that is Wholesaler (B)
System B sets up a SIP trunk to System-A as he is a user of this system.

Did I make any sense on this? Your system is the provider for the Virtual system. So he can't use more than you allow him with his account on System-A.


My suggestion to the reseller module would be to add a field to all the tables involved in the operation of the a2billing and the main account woud be 0 and for resellers an account would be created just like the pin number and once the reseller is logged in his account# would be globally set and every acction he take the account number would be used to save new customers or retreive new customers new trunk ect. it is just an Idea I am trying to create something like this but I am not an Expert in PHP I am a beginner and but I think something like that would work quite nicely.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 14, 2008 11:28 pm 
Offline
User avatar

Joined: Sun Jul 22, 2007 4:07 pm
Posts: 26
Location: Rome, Italy
imitrik wrote:
Nice job coborop! It works very good. But I was wondering, what about local calls between different instances of A2B ? How would customers be able to make free calls between themselves, meaning, for example, if they have got an account from a different reseller?

Has anyone some solution to post for this? coborop maybe?


Hi imitrik, hi Matboy, unfortunately I have don't have any installation with this need
so I've never dig the code to permit a feature like that.

If a customer of mine happens to ask me this,
if successful, I'll share the hack here.

Have a nice day,
mike


Top
 Profile  
 
 Post subject: A2B "Clones" security flaw and patch
PostPosted: Mon Mar 24, 2008 6:37 pm 
Offline
User avatar

Joined: Sun Jul 22, 2007 4:07 pm
Posts: 26
Location: Rome, Italy
Hi All,

to everyone is using my solution, or a derivate of it,
I found some time to patch a serious security flaw in that hack.

You may have noticed that, by having, for example, two clones,
you can:
* authenticate as an admin in one clone, let's say: http://1.2.3.4/A2Billing_UI_1/
and once correctly authenticated,
change the url in, for example,
http://1.2.3.4/A2Billing_UI_2/Public/A2 ... &section=1
to enter in the second clone's admin UI, without providing any credentials.

I've consequently edited my previous post, the one documenting this hack, to include this patch.
For your convenience, I'm reporting it also here:

- harden the a2b login routine, by editing, in every clone, the file:
~A2Billing_UI*/lib/module.access.php
and force a2b to re-check the credentials in every page, by adding,
around line 135, just before the "FUNCTIONS" part, this:

$DBHandle = DbConnect();
$return = login ($_SESSION["pr_login"], $_SESSION["pr_password"]);
if (!is_array($return) || $return[1]==0 ) {
header ("HTTP/1.0 401 Unauthorized");
Header ("Location: index.php?error=1");
die();
}

Regards,
Mike


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 25, 2008 1:59 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
I have also noticed that problem a why ago. I have trace the issue to the file module.access.php. The code is:

Code:
if (!isset($_SESSION)) {
   session_name("UIADMINSESSION");
   session_start();
}


IMHO, this code should be changes the session name of your clones version of the admin UI. Your both clones are running on the same server and have the same domain name/IP. In addition to that, the identical session name can only lead to a very predictable behavior. This does not happen between different domains. The only annoying thing that I found about the interface is that when you logout from the Customer UI, any Admin UI on the same domain and the same browser will also be logged out. Even though the session names are different.

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 29, 2008 8:03 pm 
Offline
User avatar

Joined: Sun Jul 22, 2007 4:07 pm
Posts: 26
Location: Rome, Italy
Hi asiby,

my first attempt to fix that bug was to dig for cookies name ... session names ... something like that. In fact I was hoping to find a unique identifier to recognize the session.

I prefer your solution but I can't replicate it.
I've changed around line 40 the file lib/module.access.php from:

session_name("UIADMINSESSION");
session_start();

to

if (!isset($_SESSION)) {
session_name("UIADMINSESSION");
session_start();
}

and gave a different name than "UIADMINSESSION" to both clones,
but the problem still persists.

However, I think that your solution is more toward the right direction
than my poor patch.

Thanks for your time.

Regards,
Mike


Top
 Profile  
 
 Post subject: Reseller Module
PostPosted: Thu Jul 03, 2008 10:29 pm 
Offline

Joined: Thu Jul 03, 2008 10:12 pm
Posts: 17
Location: USA
I am looking for reseller module with following features:

Owner can creat multiple reseller accounts.
Owner can setup credit limit for each reseller and reseller batches stops when the reseller balance get to null.
Owner can charge reseller either by a rate table or commission basis.
Reseller can charge the end users based on plan/packages, fixed per minute rates or commission etc. reseller may have option to creat commision agent.
reseller can brand their website running on A2billing servers virtual direcotry.
reseller can have reporting avaialble for profit and usage for thier accounts
Owner can view reports for one or all resellers for usage/profit etc.

I am willing to contribute in donation if support can help me for this task? It will also be good for all comunity looking for same features. Please let me know if some one can.


Top
 Profile  
 
 Post subject: Re: Reseller Module
PostPosted: Fri Jul 04, 2008 1:47 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
asiatel wrote:
I am willing to contribute in donation if support can help me for this task? It will also be good for all comunity looking for same features. Please let me know if some one can.
I'm sure if someone were to put a bounty of EUR 10,000 out there, this work could be completed in a few months, perhaps less.


Top
 Profile  
 
 Post subject: Reseller module,, clonning idea not so cool
PostPosted: Thu Jul 24, 2008 4:14 am 
Offline

Joined: Thu Jul 03, 2008 10:12 pm
Posts: 17
Location: USA
Clonning of the A2B is may be good for system partitioning but it is not the actual solution people are looking for. Becuause system owner can not control the prepay fund of the each clone partition user. So that means each clone owner is unrestricted and can use like he is the owner of switch. Community is still seeking for real reseller billing module.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 posts ]  Go to page Previous  1, 2, 3, 4  Next
Hosted Voice Broadcast


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group