I don't think you can cancel a sched_hangup, but you can afaik re-issue the command with a new time. 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. 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