[Kamailio-Users] Manipulate Berkeley DB

Henning Westerholt henning.westerholt at 1und1.de
Tue Jan 26 17:48:52 CET 2010


On Tuesday 26 January 2010, Santiago Soares wrote:
> I'd like to use dispatcher module with Berkeley DB.
> How can I manipulate the dispatcher table, I mean, insert or delete
>  gateways? kamctl seems not to work:
> 
> [root at vnsiprtest ~]# kamctl  dispatcher addgw 1 '1.2.3.4' 1 'test'
> /usr/local/sbin/kamctl: line 1458: insert into dispatcher
>                  ( setid, destination, flags, description )
>                VALUES (1,'1.2.3.4',1,'test');: command not found
> ERROR: dispatcher - SQL Error

Hi Santiago,

i think you could use for example the db_load utility:
http://www.oracle.com/technology/documentation/berkeley-
db/db/api_reference/C/db_load.html

according the docs it can parse text files and could be configured to several 
formats.

Cheers,

Henning



More information about the Users mailing list