Re: [asterisk-users] Adding 4000 Lines to asteriskdb via asterisk -rx ?

2007-01-11 Thread Tzafrir Cohen
On Thu, Jan 11, 2007 at 10:28:27AM +, Gordon Henderson wrote: > On Mon, 8 Jan 2007, Christoph Adomeit wrote: > > >Are there some external utilities to lock and update the asteriskdb ? > >Is there a better way ? > > A bit late on this and I see that there's a nice bit of perl posted to use >

Re: [asterisk-users] Adding 4000 Lines to asteriskdb via asterisk -rx ?

2007-01-11 Thread Gordon Henderson
On Mon, 8 Jan 2007, Christoph Adomeit wrote: Are there some external utilities to lock and update the asteriskdb ? Is there a better way ? A bit late on this and I see that there's a nice bit of perl posted to use the manager interface, but I've been doing something similar by writing a file

Re: [asterisk-users] Adding 4000 Lines to asteriskdb via asterisk -rx ?

2007-01-10 Thread Ron Wellsted
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What is needed is a family of astdb manipulation commands: astdbput family key value astdbget family [key] astdbdel family [key] any others? - -- Ron Wellsted [EMAIL PROTECTED] http://www.wellsted.org.uk N 52.567623, W 2.137621 Linux Counter No. 202

Re: [asterisk-users] Adding 4000 Lines to asteriskdb via asterisk -rx ?

2007-01-10 Thread Christoph Adomeit
> Option A: Use the manager interface. > Tzafrir , Thanks, the idea to use the manager interface is wonderful. It is really fast and no data gets lost. I don't think 4000 Rows are a noticeable amaount of data for a db1 database. I coded this: #!/usr/bin/perl use Asterisk::Manager; my $astman

Re: [asterisk-users] Adding 4000 Lines to asteriskdb via asterisk -rx ?

2007-01-08 Thread Tzafrir Cohen
On Mon, Jan 08, 2007 at 04:59:58PM +0100, Christoph Adomeit wrote: > Hi there, > > I want to add 4000 Callerids and Callernames to my asterisk-db. > (/var/lib/asterisk/astdb) > > I do not want an external database or an sql-database because I do > not want asterisk to depend on external processe

[asterisk-users] Adding 4000 Lines to asteriskdb via asterisk -rx ?

2007-01-08 Thread Christoph Adomeit
Hi there, I want to add 4000 Callerids and Callernames to my asterisk-db. (/var/lib/asterisk/astdb) I do not want an external database or an sql-database because I do not want asterisk to depend on external processes. However, when I do 4000 "database put number name" via a shellscript and "ast