[Asterisk-Users] astcc with multiple access
Karl H. Putz
kputz at columbus.rr.com
Tue Feb 8 16:26:02 MST 2005
>-----Original Message-----
>From: asterisk-users-bounces at lists.digium.com
>[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Mike Nugent
>Sent: Tuesday, February 08, 2005 5:31 PM
>To: asterisk-users at lists.digium.com
>Subject: [Asterisk-Users] astcc with multiple access
>
>
>
>
>I'm looking at astcc and it seems that setting up a script that will
>allow multiple people to access a calling card simultaneously would be
>fairly difficult. Before I endevour to develop this, has anyone already
>done it/looked at this/can point me in the right direction?
>
>Thanks.
>
>--
>Mike Nugent <asterisk at illuminatus.org>
>
>
Mike,
It would not really be very difficult to remove all references to the
'inuse' field.
But, you may want to consider possibly using that field as a counter rather
than
a boolean flag. That way, you could impose a maximum number of simultaneous
users of an account.
Basically rather than setting 0 or 1, you could increment the field by 1
when a new
user authenticates and decrement when that caller drops. Check the value
against
your desired maximum instead of a simple boolean 1 to block additional users
of
that account.
Be aware that if you allow this type of use, your account balance could very
easily
go negative.
Good luck!
Karl Putz
More information about the asterisk-users
mailing list