Free Billing, Routing and Management software for Asterisk and VOIP
Home | Forums | Wiki | Manual | Open Source | Billing and BSS | Demo | Contact Us
DownLoad | Bugs | Help Wanted | Numbering Plan
  
 

Tenants/Resellers

 
By Skippy at Wed, 2006-03-15 20:54 | AstBill Software - General and Support

Hi

There has been some confusion about the tenant/reseller features.

I have updated 3 files this week for the following reasons:
astadmin.module
astcallcard.module
astpbx.module

When you create a tenant and a adoroar user account in AstBill/drupal the
Current code allows the adoroar user to see all accounts for all clients in the
following sections
AstBill Admin
CallingCard
Payments
Credit

The changes in the code allows you to give access to make a payment/credit
and allows Astbill Admin to be enabled for the adoroar/User along with
calling card.

Now when an adoroar user logs into his account he only views the clients that belong
to the user logged in, protecting all other data for other tenants.

My UnderStanding:

Tenant feature is designed to allow the main account holder to have sub
users that can sell services and maintain his own client records.

Example:

If I the main account holder with username Admin creates a tenant and a
user adoroar for Example, voiptelco as an adoroar user.
Using the three files I have updated you can enable the payments, Astbill
Admin, Create Account and calling card features for adoroar users.

They will only see the accounts that are created by them with the username
they have authenticated with.

This with the direction of being able to have multiple websites will allow
each site owner to have resellers/tenants that maintain there own client
accounts.

What is not yet completed is the ability to for the main Admin account to
gather all call charges made by clients under these tenants/resellers.
Allowing admin to invoice the charges for the usage.

I am thinking this might be prepaid and postpaid. I would like to work on
Postpaid then enlarge for prepaid to the tenant.

Please comment on your ideas relating to this.

I am sorry if I'm not completely clear, feel free to ask me questions.

4 User Levels

Admin

Adoroar

Authenticated

Anonymous

Features Enabled: Example

Admin: has access control to all:

Adoroar: has access to features that relate to tenant/reseller using the three files
updated:

Enabled so far:

astadmin payment
can use callcard
astentry account settings
astpbx user switchboard
astpbx voip account
can use admin astpbx
astpricelist can use
astroute pricelist edit
astroute pricelist export
astroute pricelist import
can use astentry
access content

Authenticated:

Enabled so far:

astpbx voip account
access content

Anonymous: Has access to content

Enabled:

access content

Roles:

Admin = main service owner (Controls, Maintains All Services)
adoroar = Reseller/Tenant (Client Control)
Authenticated User = A Client that can view there call history, account details etc.
Anonymous = General Visitor

You can enable other features and test them. Please feel free to post back items that need to be corrected

I have not posted the link to download the files that are updated as im not sure if they will be used in the next release. You can request the files dirrect from myself if you wish to test:

To test the above:
1. Backup the 3 files you will be replacing
2. Copy the edited files into place
3. Confirm you have the correct access control items selected for the User types listed above
4. Log as admin and view the menu items available
5. log in as an adoroar user create an account etc
6. Log in as a authenticated normal user and view menu items
7. Report back here any issues or other features you have enabled and tested for each user level access

Cheers
Skippy
greg@da-bratz.com

Tenants/Resellers

By Skippy on Fri, 2006-03-17 01:08

Hi i have now completed a module called:

Tenant Call Records.

This displays all payments made to tenants by clients and all expenditure. Displays balances etc.

This is for the admin section to allow invoicing of tenants for there clients usage.

Code needs a little clean up and maybe add display totals for each tenant.

Please test it also and provide feedback.

Cheers
Skippy
email to request the file for testing.
greg@da-bratz.com

» login or register to post comments

PLZ

By asghar on Fri, 2006-07-28 21:21

Plz may i have modules my email is asghar144@yahoo.com

» login or register to post comments

Tennants/Reseller

By ron on Mon, 2006-03-20 13:27

Hi Greg,

Can i please have a copy of your new modules, I tried emaling you but my emailed bounce. I got this error:

:
194.19.9.90 does not like recipient.
Remote host said: 554 : Relay access denied
Giving up on 194.19.9.90.

If you can, kindly email it to ron@silverbackasp.com I'd like to play with that. Thank You

Regards
Ron

» login or register to post comments

Tenants/Resellers

By Skippy on Tue, 2006-03-21 04:21

Hi Ron

The files have been emailed.

Ive now edited my contact to my own email account as im not sure whats up with the astbill email system.

Cheers
Skippy

» login or register to post comments

Update

By Skippy on Mon, 2006-03-20 04:07

Ok there is now.

3 files edited and 2 new files completed to enlarge the solution to cover Tenants/Resellers and normal users access to Details and call records , payments , etc..

astadmin.module
astcallcard.module
astpbx.module

tenantbill.module
astphoneuser.module

Please test and report:

Features Enabled: Examples

Admin: has access control to all:
Include : tenantbill.module

Adoroar: has access to features that relate to tenant/reseller using the three files
updated:

Enabled so far:

astadmin payment
can use callcard
astentry account settings
astpbx user switchboard
astpbx voip account
can use admin astpbx
astpricelist can use
astroute pricelist edit
astroute pricelist export
astroute pricelist import
can use astentry
access content

Authenticated:

Enabled so far:

astphoneuser.module
access content

Anonymous: Has access to content

Enabled:

access content

Roles:

Admin = main service owner (Controls, Maintains All Services)

adoroar = Reseller/Tenant (Client Control)

Authenticated User = A Client that can view there call history, account details etc.

Anonymous = General Visitor

You can enable other features and test them. Please feel free to post back items that need to be corrected

To test the above:
1. Backup the 3 files you will be replacing
2. Copy the edited files into place and the 2 new files
3. Confirm you have the correct access control items selected for the User types listed above
4. Log as admin and view the menu items available
5. Create an authenticated user in drupal example: 8855885588
6. log in as an adoroar user type and create an account example: 8855885588
7. Log in as a authenticated normal drupal user and view menu items example: 8855885588
8. Report back here any issues or other features you have enabled and tested for each user level access

Request files for testing please

Cheers
Skippy

» login or register to post comments

Files for Testing

By duminkala on Thu, 2006-04-20 15:43

Hi

could we have the files for testing the TEnant / Reseller features as at version .16.

Thanks

Sanibee

» login or register to post comments

Test Results

By Skippy on Thu, 2006-03-30 21:39

Hi

If you have tested these updates can you please post comments.

Please report issues found or ideas to make them better.

Cheers
Skippy

» login or register to post comments

The following is the user

By anil on Thu, 2006-03-16 04:03

The following is the user level permissions in astbill:

1) System Admin (Drupal user NO 1)
2) Astbill admins
3) Resellers
4) Customers
5) users (Authenticated User)
6) Anonymous

Drupal user no 1, does not need any permissions defined, and is granted superuser permissions.

astbill admins are granted permission by defining them in the user roles.

Resellers have customers.
customers have user accounts
user accounts can view and look at their accounts only.

» login or register to post comments

Tenents/Resellers Levels of Hierarchy

By p2pvoice on Fri, 2006-04-07 14:50

I think describing six levels of hierarchy can be confusing. I am sure, part of the confusion comes from correlating AstBill roles with Drupal. Three levels (plus anonymous/visitor) should suffice as mentioned by Skippy here in this thread.

From AstBill deployer's perspective, describe AstBill roles and map them to Drupal.

Also, "customers have user accounts" should be a choice rather than the hard-coded default. Please see my post http://astbill.com/node/565

Thanks.
-p2pvoice

» login or register to post comments

Users

By Skippy on Thu, 2006-03-16 04:21

Hi

Yes thats correct a user can only see there own account, but with the updates i have completed to the files listed it allows resellers to maintain own client accounts and protects others from viewing and editing them.

your listed users 1 & 2 are both the same roles.

Resellers now have there own role and maintain the customers they gather.

customers and users are also the same role.

Simple:

Admin
Reseller
Customers
Anonymous

as demonstrated

Cheers
Skippy

» login or register to post comments

Hi Greg, Is there any

By voipco on Wed, 2006-03-15 21:24

Hi Greg,

Is there any significance to the name "Adoroar" I found this confusing when first starting out. In fact I completely deleted the role thinking it was left in there by mistake from the development team.

Maybe we could give this role a more descriptive default name?

- Daryl

» login or register to post comments

Tenants/Resellers

By Skippy on Wed, 2006-03-15 21:31

Hi Daryl

No you can use any name you wish.
The default installation uses Adoroar so i left the example as that but i changed the name myself for something i could understand.

Cheers
Skippy

» login or register to post comments

Sorry, I took it for granted

By voipco on Wed, 2006-03-15 23:41

Sorry, I took it for granted that you were one of those who could change this default setting in the distribution to save others confusion. I can submit this as a bug, but I do wonder if anyone even look at those. :-)

- Daryl

» login or register to post comments

Adoroar

By london3 on Thu, 2006-03-16 19:06

This is good work.

Daryl We do work with the bug tracker and it is the best place to report issues. It looks a bit dead now as must issues there are new features not really bugs. :-)

You are right about the AdoRoar group. It have no purpose and can be deleted. I think Renaming it to TenantAdmin is more clear as we now are updating the Tenant feature.

ARE --
http://astartelecom.com - Independent VOIP Telecoms Broker. Consulting in Asterisk and Drupal

» login or register to post comments

Tenants/Resellers

By Skippy on Wed, 2006-03-15 23:51

Hi

Yes i can have this changed in the core project but its best its decided as a team. I will take this to the dev list and deal with it there. For now im looking for test results from users in this thread.

Have you tested the 3 files and the configuration roles yet. Please post results here.

Your suggestion is a good one and im sure it will be adjusted to include a new name for the role

Cheers
Skippy

» login or register to post comments

New Module

By waqarsheikh on Tue, 2006-05-30 20:21

Hi,

I have installed .17 version can you please let me have the new module for testing with the new version.

Waqar
waqar@gigo.co.uk

» login or register to post comments

could I have a copy of the modules to test

By ramprasadh on Thu, 2006-04-06 21:07

I would like to include these modules to test with our setup of astbill. I am using the .14 version. Lemme know if this will work..

» login or register to post comments

Testing with .14

By Skippy on Thu, 2006-04-06 21:23

Hi

Yes i can not see any reason why the files will now work with .14 after the next release they will not work. But i will keep the files available for users using older versions.

Please make sure you download the files again some corrections have been made and files updated

Cheers
skippy

» login or register to post comments

modules

By microcosmic on Sat, 2006-05-20 15:55

hello...

we are using 0.9.0.16 of astbill and would like to have that modules too...

is there any chance to get it ? are they working with the latest version of astbill ???

please email me @ mic29 [at] web.de

» login or register to post comments

Ver 16

By Skippy on Mon, 2006-05-22 21:34

Hi yes they are working with the latest release.

Emailing the download link now.

Cheers
Skippy

» login or register to post comments

still no mail from you skippy

By microcosmic on Mon, 2006-06-05 15:28

please mail me at mic29[at]web[dot]de

i would like to have this modules :)

» login or register to post comments

skippy ... i didnt get any

By microcosmic on Sat, 2006-05-27 11:47

skippy ...

i didnt get any mail yet ... :(

maybe you should mail it too micn00b[at]hotmail[dot]com

thanks

» login or register to post comments

Can i too

By aster on Fri, 2006-05-26 20:39

Can i get the download link as well please?
Or would it be good to provide the link in the forum.

email: asterone at gmail.com

Edit to add email Addr

» login or register to post comments

Hello, could i have the

By Takis on Fri, 2006-05-26 07:50

Hello, could i have the download link too?
my e-mai is takis at hostaa dot com
Thanks

» login or register to post comments

Link please - to the updated modules

By Biztek on Fri, 2006-06-23 09:57

I am interested in the tenant/reseller modules - please email the download link to ajaz@biztek.co.uk - thanks. (ajaz at biztek dot co dot uk).

» login or register to post comments

I am interested in the

By eman33 on Wed, 2008-07-30 04:24

I am interested in the tenant/reseller modules too, and alreday seup astbill 0.9.20 running up,anyone have tenant/reseller module, please email the download link to eman33@yahoo.cn - thanks

» login or register to post comments

I am interested in the

By valterhjr on Wed, 2008-08-13 19:44

I am interested in the tenant/reseller modules - please email the download link to valterhjr@gmail.com - thanks.

» login or register to post comments
  
BerliOS Developer LogoSourceForge.net Logo Drupal.org Logo