[OpenSIPS-Users] db_berkeley append <db> <datafile>

Bogdan-Andrei Iancu bogdan at voice-system.ro
Fri Mar 5 09:04:00 CET 2010


Hi,

The datafile is the file containing the table you want to append to . 
OpenSIPS provides the structures for all the tables it uses.

In the source tree, see for example:
    scripts/db_berkeley/opensips/domain

or with data

    scripts/db_berkeley/opensips/version


Regards,
Bogdan

liuf wrote:
> I'm trying to use db_berkeley module. When I want to append some data rows to
> table 'load_balancer', I have confused with the command 'opensipsdbctl bdb
> append <db> <datafile>'. How can I form the <datafile>? 
> My tried datafile as below. 
>
> datafile_example_1
> =======================================================
> METADATA_COLUMNS
> id(int) group_id(int) dst_uri(str) resources(str) probe_mode(int)
> description(str)
> METADATA_KEY
>
> METADATA_READONLY
> 0
> METADATA_LOGFLAGS
> 0
> METADATA_DEFAULTS
> NIL|0|NIL|NIL|0|''
> 1|1|sip:192.168.3.3:5060|0|''
> 2|1|sip:192.168.3.5:5062|0|''
> 3|2|sip:192.168.3.7:5064|0|''
>
> =======================================================
>
>
> datafile_example_2
> =======================================================
> 1|1|sip:192.168.3.3:5060|0|''
> 2|1|sip:192.168.3.5:5062|0|''
> 3|2|sip:192.168.3.7:5064|0|''
>
> =======================================================
>
> After the 'append' command and replace load_balancer.new, I tried to startup
> opensips, but failed. In the opensips log, I can find some error of
> db_berkeley reading. My appended 'datafile' has some error?
>
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list