I think I understand how it could be done through ESL, but there's no mechanism to look up sessions? That seems really weird. On Fri, Jan 2, 2015 at 2:48 PM, David Villasmil Govea < david.villasmil@gmail.com> wrote:
Well, if you don't have a lot of traffic, you can just use nibblebill as suggested. You can just use account balances * 100 if you can't use floats or decimals.
Else, you need to use ESL and keep track of all calls, store states somewhere like a db, so that when you need to change timeouts you know which ones to change.
But again, if you don't have too much traffic, you might look into nibblebill, I used it some time ago and it works ok with small traffic. On Jan 2, 2015 5:42 PM, "Kurtis Heimerl" <kheimerl@cs.berkeley.edu> wrote:
Here's the use case.
A new call comes in. I have to find all calls from that user account and reset their timeouts (as a new call will change the total billable time). So I need a mechanism from the dialplan that can search for all calls (and their uuids) with a certain variable set. Does that make sense?
On Fri, Jan 2, 2015 at 2:37 PM, David Villasmil Govea < david.villasmil@gmail.com> wrote:
I'm not sure how you intent to use it, but if you set a variable, when cdrs are saved, the variables are saved just like any other channel variable, of course along uuids, etc. On Jan 2, 2015 5:34 PM, "Kurtis Heimerl" <kheimerl@cs.berkeley.edu> wrote:
On Fri, Jan 2, 2015 at 2:30 PM, David Villasmil Govea < david.villasmil@gmail.com> wrote:
I don't think you can cancel a sched_hangup, but you can afaik re-issue the command with a new time.
If that'll erase the old one, that's totally sufficient. Great!
Regarding the tag, if you need it as a cdr field, you just need to set a custom variable, they get saved automatically when saving the cdr.
Is there a way to look up a uuid via these variables?
On Jan 2, 2015 5:17 PM, "Kurtis Heimerl" <kheimerl@cs.berkeley.edu> wrote:
No! I hadn't seen it. My brief reading says it may be able to fit our needs. There are some issues though (for instance, it's commonly known to never use a float/double for currencies and we do bill per second). So I'll follow up with that and see if it's a solution.
Barring that, is there any other way to do the two things I'm looking for?
On Fri, Jan 2, 2015 at 1:57 PM, Brian West <brian@freeswitch.org> wrote:
> This is why mod_nibblebill exists, have you looked at it? > > On Fri, Jan 2, 2015 at 3:53 PM, Kurtis Heimerl < > kheimerl@cs.berkeley.edu> wrote: > >> Hello Freeswitch-users, >> >> I'm building a group billing solution for our freeswitch system. >> Our account management is external, so I need to make something custom. I >> have two questions about how to do some stuff in FS. >> >> 1) I know how to limit call length (sched_hangup). I can query an >> external account via REST to see how many credits they have and limit the >> call with that. However, when a second user on the same account calls in, I >> need to change that timeout. Is there a way to cancel a sched_hangup? I >> found sched_cancel, but that seems to be for broadcasts and transfers, >> neither of which I'm doing. I *guess* I could transfer to a hangup >> extension instead of hanging up... but that seems awful ugly. >> >> 2) Is there a way to "tag" a call (uuid) with an arbitrary text >> string and then look it up by that? That would allow me to tag each call >> with the account name and later get all calls under that account. >> >> Thanks! >> >> >> _________________________________________________________________________ >> Professional FreeSWITCH Consulting Services: >> consulting@freeswitch.org >> http://www.freeswitchsolutions.com >> >> Official FreeSWITCH Sites >> http://www.freeswitch.org >> http://confluence.freeswitch.org >> http://www.cluecon.com >> >> 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 >> > > > > -- > > *Brian West* > brian@freeswitch.org > > > *Twitter: @FreeSWITCH , @briankwest* > http://www.freeswitchbook.com > http://www.freeswitchcookbook.com > > *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) > *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest > > > _________________________________________________________________________ > Professional FreeSWITCH Consulting Services: > consulting@freeswitch.org > http://www.freeswitchsolutions.com > > Official FreeSWITCH Sites > http://www.freeswitch.org > http://confluence.freeswitch.org > http://www.cluecon.com > > 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 >
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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