On Mon, 1 Mar 2010, Emrah wrote:
> The problem with the command you mentioned is... When do I call it? If
> two people happen to enter the conf at the sametime, I have a feeling
> there may be some little confusion there...
If you are using a database, it may provide generic locking that you can
[ab]use.
For example, MySQL provides "get_lock()" which could be used like:
select get_lock('find-usernum', 20);
This would block another process from executing until:
1) 20 seconds is up.
2) the locking process exits.
3) you explicitly release the lock by executing "release_lock()."
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards [email protected] Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users