Displaying 2 results from an estimated 2 matches for "db_dump185".
Did you mean:
db1_dump185
2009 Feb 24
0
db_dump185.c missing if Asterisk 1.4 source file
Hi,
In http://downloads.digium.com/pub/asterisk/releases/asterisk-1.4.22.tar.gz,
you can read db_dump185 among main/astdb/Makefile targets, though this
target is commented out from all target :
...
LIBDBSO=libdb.so.$(SOVER)
PROG= db_dump185
...
SHOBJS= $(patsubst %.o,%.os,$(OBJS))
include $(ASTTOPDIR)/Makefile.rules
all: $(LIBDB) #$(LIBDBSO) $(PROG)
db_dump185.o: db_dump185.c
$(CL) -o $@...
2009 Jan 24
2
Reading/Writing the Astdb
...k -rx "database show" >
output.txt and work with that and then set a new value such as asterisk
-rx "database put $key $value". The whole process can take over 1
second for EACH ENTRY which adds up for more than a few keys.
What I do now is dump the entire Astdb using "db_dump185" in about
0.003 ms, and then read the entire Astdb output as a hash and then
manipulate key, value pairs that way. The entire process will take me
less than 0.020 ms total.
My problem is this. I am unable to find a corresponding way of doing
this in reverse. That is, I do not have a correspon...