[SR-Users] Kamailio 5.1.2 and Module PDB: pdb_query returns always 0

Henning Westerholt hw at kamailio.org
Mon Jun 18 23:13:08 CEST 2018


Am Montag, 18. Juni 2018, 07:51:24 CEST schrieb Stefan Rüetschli:
> Thanks for coming back to this.
> I didn't solve it until now, I don't know where to search.
> Does somebody also use PDB with 5.1.2 on Ubuntu 16.04.4?

Hello Stefan,

I digged further into this issue and looked to the protocol format in utils/pdbt/docs/
network_protocol.txt.

One strange thing I noticed:

> > > [pdb.c:157]: pdb_msg_dbg(): Kamailio pdb client sends:#012version =
> > > 1#012type = 0#012code = 0#012id = 256#012len = 17#012payload = 30 31 32
> > > 33 33 33 34 34 35 35 00

Kamailio sends a request in version 1 out, this is the default since 2015 or so.

> > > [pdb.c:157]: pdb_msg_dbg(): Kamailio pdb client receives:#012version =
> > > 0#012type = 0#012code = 0#012id = 256#012len = 17#012payload = 30 31 32
> > > 33 33 33 34 34 35 35 00

Kamailio recieves a reply in version 0, it should be version 1 as well.

> > > I use this already with Kamailio 4.3.6 and there it is working.

Do you query with the Kamailio 5.1.x to the pdbt server in version 4.x? If yes then I 
suspect this is the problem.

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

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180618/ce96a320/attachment.html>


More information about the sr-users mailing list