Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Questions regarding to mod_nibble


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
ahmedmunir007 at gmail...
Guest





PostPosted: Thu Oct 08, 2009 10:47 pm    Post subject: [Freeswitch-users] Questions regarding to mod_nibble Reply with quote

I want to ask three questions related to mod_nibble bills, as I'm listing down below;

1- Can we select/use dynamic tables for billing using nibble bill?
2- Can we define more than two tables and attributes in nibblebill.conf.xml?
3- As Nibble bill is use to deduct amount of user account, Can we deduct minutes instead of cash? Because my case is, if a user buy a package and I only want to deducts his/her minutes. How we can resolve it by nibble bill? / What other way we can resolve it?

Kindly advise soon.
--
Regards,

Ahmed Munir
Back to top
jmesquita at freeswitc...
Guest





PostPosted: Sat Oct 10, 2009 9:39 am    Post subject: [Freeswitch-users] Questions regarding to mod_nibble Reply with quote

I am testing the latest version of nibblebill so let me see if I can help you with your questions.

jm

On Fri, Oct 9, 2009 at 12:39 AM, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)> wrote:
Quote:
I want to ask three questions related to mod_nibble bills, as I'm listing down below;

1- Can we select/use dynamic tables for billing using nibble bill?
What do you mean for dynamic tables? Like LCR does that you can specify your own SQL statement to be executed? If that's what you are asking, no, but it would be a nice todo.
 
Quote:
2- Can we define more than two tables and attributes in nibblebill.conf.xml?
What else do you want to define and how do you imagine it to behave?
 
Quote:
3- As Nibble bill is use to deduct amount of user account, Can we deduct minutes instead of cash? Because my case is, if a user buy a package and I only want to deducts his/her minutes. How we can resolve it by nibble bill? / What other way we can resolve it?
When we say cash on the column, we are really saying just a number that is being deducted, that's it. If you deduct 1 every 60 seconds, you will have your "cash" converted to minutes, won't you?
 
Quote:

Kindly advise soon.
--
Regards,

Ahmed Munir



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
dome at tel.co.th
Guest





PostPosted: Sat Oct 10, 2009 10:12 am    Post subject: [Freeswitch-users] Questions regarding to mod_nibble Reply with quote

2009/10/9 Ahmed Munir <ahmedmunir007@gmail.com>:
Quote:
I want to ask three questions related to mod_nibble bills, as I'm listing
down below;

1- Can we select/use dynamic tables for billing using nibble bill?
2- Can we define more than two tables and attributes in nibblebill.conf.xml?
3- As Nibble bill is use to deduct amount of user account, Can we deduct
minutes instead of cash? Because my case is, if a user buy a package and I
only want to deducts his/her minutes. How we can resolve it by nibble bill?
/ What other way we can resolve it?
My solution (Postgresql 8.4 with postgresql-prefix).
1. modify mod_nibblebill.c change sqlupdate command to update
duration in my cdr table (insert blank data when start billing)
2. create trigger to deduct balance.


Dome C.
Quote:

Kindly advise soon.

--
Regards,

Ahmed Munir



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
shaheryarkh at googlem...
Guest





PostPosted: Sat Oct 10, 2009 2:11 pm    Post subject: [Freeswitch-users] Questions regarding to mod_nibble Reply with quote

I haven't don't any nibble bill project so i am not aware of its configuration details but here are some of the feature of mod_nibble (reference to wiki url http://wiki.freeswitch.org/wiki/Mod_nibblebill),
  • Debit credit/cash from accounts real-time
  • Allow for billing at different rates during a single call
  • Allow for warning callers when their balance is low (via audio, in-channel)
  • Allow for disconnecting or re-routing calls when balance is depleted
  • Allow billing functions listed above to operate with multiple concurrent calls
This means you can have packages where you offer users say X amount of free minutes and when they are all used up, you can start charging cost Y WITHOUT dropping user's call. All you need to do is (reference to JM's reply below),

1. Set X in cash column, and deduct 1 per 60 seconds. If you are billing on different time scale then per minute charges then cash value would be,

Cash = X * 1/T

Where,
X = number of free minutes in package
T = billing interval in minutes

So, if you have 30 free minutes and 30 second billing interval then cash would be 30 x 1/0.5 = 60.

2. After X minutes have passed during a call (i.e. when cash value becomes zero), you can change billing rate to whatever you want to charge user on per minute basis (or whatever your billing interval may be) without dropping the call (but it would be good to warn user about it before you start charging him money).

Lastly using different tables schema for mod_nibble may not be a good idea. I recommend using a standard billing table like mod_nibble already has. You can of course extend this schema to store addition information of your choice OR you can use SQL Views to combine different tables and behave as a single table for any pre-existing reports etc. But do remember that SQL Views are normally Read Only in nearly all modren DBMS.

Thank you.


2009/10/10 João Mesquita <jmesquita@freeswitch.org (jmesquita@freeswitch.org)>
Quote:
I am testing the latest version of nibblebill so let me see if I can help you with your questions.

jm

On Fri, Oct 9, 2009 at 12:39 AM, Ahmed Munir <ahmedmunir007@gmail.com (ahmedmunir007@gmail.com)> wrote:
Quote:
I want to ask three questions related to mod_nibble bills, as I'm listing down below;

1- Can we select/use dynamic tables for billing using nibble bill?

What do you mean for dynamic tables? Like LCR does that you can specify your own SQL statement to be executed? If that's what you are asking, no, but it would be a nice todo.
 
Quote:
2- Can we define more than two tables and attributes in nibblebill.conf.xml?

What else do you want to define and how do you imagine it to behave?
 
Quote:
3- As Nibble bill is use to deduct amount of user account, Can we deduct minutes instead of cash? Because my case is, if a user buy a package and I only want to deducts his/her minutes. How we can resolve it by nibble bill? / What other way we can resolve it?

When we say cash on the column, we are really saying just a number that is being deducted, that's it. If you deduct 1 every 60 seconds, you will have your "cash" converted to minutes, won't you?
 
Quote:

Kindly advise soon.
--
Regards,

Ahmed Munir




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
________________________________________________________
|                                                                                                |
| FATAL ERROR                                                           --- O X |
|_______________________________________________________|
|                        You have moved the mouse.                            |
| Windows must be restarted for the changes to take effect.   |
|                                        <OK>                                              |
####################################/


Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +92 334 422 40 88
MSN: shari_786pk@hotmail.com (shari_786pk@hotmail.com)
Email: shaheryarkh@googlemail.com (shaheryarkh@googlemail.com)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services