Re: [asterisk-users] Locking phones at night...

2006-10-18 Thread Tzafrir Cohen
On Tue, Oct 17, 2006 at 09:42:37PM +0100, Conrad Wood wrote: On Wed, 2006-10-18 at 08:55 +1300, Hadley Rich wrote: On Wednesday 18 October 2006 05:47, Conrad Wood wrote: To do something similar, I created a dialplan extension that - if dialled - creates a file on the server. If dialled

Re: [asterisk-users] Locking phones at night...

2006-10-18 Thread Conrad Wood
On Wed, 2006-10-18 at 13:24 +0200, Tzafrir Cohen wrote: On Tue, Oct 17, 2006 at 09:42:37PM +0100, Conrad Wood wrote: On Wed, 2006-10-18 at 08:55 +1300, Hadley Rich wrote: On Wednesday 18 October 2006 05:47, Conrad Wood wrote: To do something similar, I created a dialplan extension that -

Re: [asterisk-users] Locking phones at night...

2006-10-18 Thread Benjamin Jacob
Conrad Wood wrote: On Wed, 2006-10-18 at 13:24 +0200, Tzafrir Cohen wrote: On Tue, Oct 17, 2006 at 09:42:37PM +0100, Conrad Wood wrote: On Wed, 2006-10-18 at 08:55 +1300, Hadley Rich wrote: On Wednesday 18 October 2006 05:47, Conrad Wood wrote: To do something

Re: [asterisk-users] Locking phones at night...

2006-10-18 Thread Tzafrir Cohen
On Wed, Oct 18, 2006 at 12:40:38PM +0100, Conrad Wood wrote: On Wed, 2006-10-18 at 13:24 +0200, Tzafrir Cohen wrote: On Tue, Oct 17, 2006 at 09:42:37PM +0100, Conrad Wood wrote: On Wed, 2006-10-18 at 08:55 +1300, Hadley Rich wrote: On Wednesday 18 October 2006 05:47, Conrad Wood wrote:

Re: [asterisk-users] Locking phones at night...

2006-10-18 Thread Tzafrir Cohen
On Wed, Oct 18, 2006 at 05:26:49PM +0530, Benjamin Jacob wrote: Conrad Wood wrote: On Wed, 2006-10-18 at 13:24 +0200, Tzafrir Cohen wrote: On Tue, Oct 17, 2006 at 09:42:37PM +0100, Conrad Wood wrote: On Wed, 2006-10-18 at 08:55 +1300, Hadley Rich wrote: On Wednesday 18

Re: [asterisk-users] Locking phones at night...

2006-10-18 Thread Benjamin Jacob
Tzafrir Cohen wrote: On Wed, Oct 18, 2006 at 05:26:49PM +0530, Benjamin Jacob wrote: Conrad Wood wrote: On Wed, 2006-10-18 at 13:24 +0200, Tzafrir Cohen wrote: On Tue, Oct 17, 2006 at 09:42:37PM +0100, Conrad Wood wrote: On Wed, 2006-10-18 at 08:55 +1300,

Re: [asterisk-users] Locking phones at night...

2006-10-18 Thread Mojo with Horan Company, LLC
Tzafrir Cohen wrote: Is there a simple and safe way to query the astdb database outside of Asterisk? after writing to it with: asterisk -rx 'database put phones locked 1' something like asterisk -rx 'database get phones locked' returns 1... Is this what you mean by outside of asterisk? Sorry

Re: [asterisk-users] Locking phones at night...

2006-10-18 Thread Marco Mouta
A simple way would be: IVR menu that locks the phone, using function DB(family/key), try show function DB in your dialplan. With DB(family/key) you may insert data into AstDB ; you lock the phone you may define family= LockedPhones , and the key is the callerid number of the phone With

[asterisk-users] Locking phones at night...

2006-10-17 Thread Carlos Chavez
I have a customer that wants to lock his phone when he goes home at night so no one else can use it. What would be the easiest way to do this? -- Carlos Chavez Prats Director de Tecnología Telecomunicaciones Abiertas de México S.A. de C.V. Tel: +52-55-91169161 Ext 2001 signature.asc

Re: [asterisk-users] Locking phones at night...

2006-10-17 Thread Conrad Wood
On Tue, 2006-10-17 at 10:25 -0500, Carlos Chavez wrote: I have a customer that wants to lock his phone when he goes home at night so no one else can use it. What would be the easiest way to do this? To do something similar, I created a dialplan extension that - if dialled - creates a

Re: [asterisk-users] Locking phones at night...

2006-10-17 Thread Marco Mouta
Use AstDB to keep State from Lock and Unlock and create a simple menu where user with a pincode may unlock his phone (also stored in Astdb, or other database) So 2 Menus one to lock the phone with a *XXX combination call, and another to unlock requesting pin code. Seems to me the simple way

Re: [asterisk-users] Locking phones at night...

2006-10-17 Thread Mojo with Horan Company, LLC
As mentioned recently on the list in other posts, don't forget to allow emergency calls through no matter what unless you have tremendous lawyers Conrad Wood wrote: On Tue, 2006-10-17 at 10:25 -0500, Carlos Chavez wrote: I have a customer that wants to lock his phone when he goes

Re: [asterisk-users] Locking phones at night...

2006-10-17 Thread Hadley Rich
On Wednesday 18 October 2006 05:47, Conrad Wood wrote: To do something similar, I created a dialplan extension that - if dialled - creates a file on the server. If dialled again, it removes the file again. Then, in the context of the phone I check for existence of that file and if it exists I

Re: [asterisk-users] Locking phones at night...

2006-10-17 Thread Conrad Wood
On Wed, 2006-10-18 at 08:55 +1300, Hadley Rich wrote: On Wednesday 18 October 2006 05:47, Conrad Wood wrote: To do something similar, I created a dialplan extension that - if dialled - creates a file on the server. If dialled again, it removes the file again. Then, in the context of the

Re: [asterisk-users] Locking phones at night...

2006-10-17 Thread C F
Use a master context that include the context holding the extens based on time: http://www.voip-info.org/wiki/index.php?page=Asterisk+tips+openhours On 10/17/06, Carlos Chavez [EMAIL PROTECTED] wrote: I have a customer that wants to lock his phone when he goes home at night so no one