>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of Mike Nugent
>Sent: Tuesday, February 08, 2005 5:31 PM
>To: asterisk-users@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 <[EMAIL PROTECTED]>
>
>
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


_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to