real time billing ? functions

297 views
Skip to first unread message

someone

unread,
May 11, 2018, 8:32:43 AM5/11/18
to ASTPP

hello every one
iam new here
and new to astpp


so let me explain in my bad english what i understand from new real time billing ability
its bill the user in when he have working call until his balance end
example
user have 10 dollar balance = 20 min talk time
user have 10 phones
when he used first phone its said max talk time 20 min
                second phone its said max talk time 20 min
                others   phone its said max talk time 20 min
so he get total more than 20 min and his blance go under zero
so real time billing fix that and stop all calls when his balance go to zero in life time no wait to hugup


if that's right . 
as i want to know if i understand it well as i am get other way i want to talk about it but i get 5 sec delay time loses 

 

Darren Williams

unread,
May 11, 2018, 9:03:29 AM5/11/18
to as...@googlegroups.com
The new realtime billing feature uses mod_nibblebill. With nibblebill it
checks every x seconds to see if there is any balance left and then cuts off
the calls so there is room for a small amount of negative balance.

If you want true realtime billing you need to look at something like
cgrates.

With cgrates, cgrates bills the call in front so for example the default is
10 seconds. As soon as the call is answered it deducts 10 seconds of
balance then after 10 seconds another 10 and so on. If the phone is
suddenly put down 7 seconds into a block then it refunds you three seconds.
This way you can never go negative.

There is no GUI though for cgrates.

someone

unread,
May 11, 2018, 11:42:59 AM5/11/18
to ASTPP
thank you very much but because iam not coder iam nerd of tech

i use good way without use any mode or any thing
only add 3 functions to astpp and work every 5 sec not 10 as you say.

because iam not coder , no learning , only read samples and code
so i was look for sample solution and take advantage of the tons of codes in astpp
i  modified only 3 functions in astpp code that made realtime billing very easy and with good interface
i make it for inbound , so its easy to apply in out bound too can any one help me in code it in better way

sman

unread,
May 11, 2018, 11:55:59 AM5/11/18
to as...@googlegroups.com
I played around with cgrates but I found it really difficult to use with very sparse documentation.  It can do just about everything though and supports MongoDB now.  So no need to use separate Redis and MySQL DBs.  Although, like everything else about that project, documentation is very sparse and difficult to understand at times.

I decided it was too difficult to work with and probably overkill for anything I want to do.  If there was a GUI that would help.  Yes there is one GUI on github that hasn't been updated in 3 years with no screenshots and no text documentation.  Be my guest...lol.

Darren Williams

unread,
May 11, 2018, 12:51:57 PM5/11/18
to ASTPP
I have used cgrates for years now it is amazing and continues to get better all the time, its particularly good at high performance stuff.

That said for many people ASTPP is a great solution I use it for another residential type project where this issue does not arise.

Though I have not tried yet the realtime functionality, I use nibblebill in other projects and have no doubt it will work well.

The heartbeat time should be configurable and by default is in the nibblebill config file.


On Friday, 11 May 2018 13:32:43 UTC+1, someone wrote:

mah ar

unread,
May 11, 2018, 1:30:34 PM5/11/18
to as...@googlegroups.com
ok thank iam stupid one but astpp already have the codes for realtime billing without any new codes
so how i done it in inbound calls
using modules active calls
using sql
use freeswtich comand

i take live calls json data
and modfied it and alow user to see only his active calls
and compare with rates , accounts id ,
add to its end if total cost of active user calls <= his blance from sql
use free switch comand to terminate this channels
and its work good

so why make new mods and alot of un needed codes for it
astpp has a tons of codes we can use them to do what we need

only my problem is that iam not coder so it take form me to learn make it 4 days to learn how to make the code and done it.
so after this i think astpp have alot of hidden power just need to rechecked and to make it more sample


--
=====================================================================
Documentation : https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/3dd70c71-9f0f-49d6-b896-26fd3aa95d7a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Luis Daniel Lucio Quiroz

unread,
May 11, 2018, 11:16:13 PM5/11/18
to as...@googlegroups.com
If you are using FusionPBX, or you are willing to switch, I have Billing for Fusionpbx that has that capability you need.


For more information, or contact through the page.

Ld

To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

--
=====================================================================
Documentation : https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

Samir Doshi

unread,
May 12, 2018, 2:19:48 AM5/12/18
to ASTPP
Hi Luis, 

Don't do your marketing here. This is not a marketing forum. 
Feel free to help users for technical issues and improvements.



Mailtrack Sender notified by
Mailtrack

Best Regards
--
Samir Doshi
iNextrix Technologies Pvt. Ltd.
http://www.inextrix.com


Disclaimer:
The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance on the contents of this information is strictly prohibited and may be unlawful. Please notify the sender immediately and destroy all copies of this message and any attachments contained in it.

To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

--
=====================================================================
Documentation : https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.

--
=====================================================================
Documentation : https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+unsubscribe@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

mah ar

unread,
May 12, 2018, 9:29:56 PM5/12/18
to as...@googlegroups.com
i wonder for replays not as expected form Samir Doshi , and FusionPBX

only there comments was for sales? ,,,are it open source to convert its aim and all work to profit >?

if we need strong code plz comments sales ,is unwanted also because
 its opensource so that why we talk here free work unprofitable but has good use to all developers or users the same
can make use for it for profits or for safe money time , develop 10 lines of code and other dev add more 10
easy steps save alot of time and no losses
so better than think of sales both of you think on how to simplified built all things need , fix errors i think this is more profitable for all  

Samir Doshi

unread,
May 12, 2018, 11:41:17 PM5/12/18
to ASTPP
What contributions you have given so far to ASTPP open source community?

To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

--
=====================================================================
Documentation : https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

--
=====================================================================
Documentation : https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

--
=====================================================================
Documentation : https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.

--
=====================================================================
Documentation : https://astpp.readthedocs.io/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.

To post to this group, send email to as...@googlegroups.com.
Visit this group at https://groups.google.com/group/astpp.
Reply all
Reply to author
Forward
0 new messages