Am Dienstag, 19. Juni 2018, 17:24:04 CEST schrieb Stefan Rüetschli:

> [..]

> I tried to use the pdb server from kamailio 4.x (because I was sure it

> works) and I also used only the pdb-server on localhost where kamailio

> 5.1.2 is running.

> But the result is the same, asking with version 1, response with version

> 0 and result=0.

 

Hello Stefan,

 

I today tried to reproduce this with current git master. It worked for me ok in the simple test case

 

0(12121) DEBUG: pdb [pdb.c:239]: pdb_query(): querying '495041748'...

0(12121) DEBUG: pdb [pdb.c:264]: pdb_query(): flushed 0 packets for 'localhost:5574'

0(12121) DEBUG: pdb [pdb.c:162]: pdb_msg_dbg(): Kamailio pdb client sends:

version = 1

type = 0

code = 0

id = 0

len = 16

payload = 34 39 35 30 34 31 37 34 38 00

0(12121) DEBUG: pdb [pdb.c:288]: pdb_query(): sending request to 'localhost:5574'

0(12121) DEBUG: pdb [pdb.c:162]: pdb_msg_dbg(): Kamailio pdb client receives:

version = 1

type = 1

code = 1

id = 0

len = 18

payload = 34 39 35 30 34 31 37 34 38 00 00 0C

0(12121) INFO: pdb [pdb.c:386]: pdb_query(): got an answer in 0.316000 ms

0(12121) ERROR: <script>: DEBUG-PDB-HW: 12

 

> How can I check the version of pdb_server to make sure it's up to date

> and should work with kamailio 5.1.2?

>

> > The version change in pdbt was done after the release of the 4.3 branch.

 

There is (unfortunately) no version output in the help, should be added. You can check with strings

 

git master version:

$ strings pdb_server | grep -i version

version = %d

PDB_VERSION_MAX

PDB_VERSION_1

version

pdb_versions

.gnu.version

.gnu.version_r

 

4.3 version:

strings ./pdb_server | grep -i version

.gnu.version

.gnu.version_r

 

Best regards,

 

Henning

 

--

If you like my work in the Kamailio project, it would be great if you could consider supporting me on Patreon: https://www.patreon.com/henningw