From stefan@solnet.ch Wed Jun 20 17:56:06 2018 From: Stefan =?utf-8?q?R=C3=BCetschli?= To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Kamailio 5.1.2 and Module PDB: pdb_query returns always 0 Date: Wed, 20 Jun 2018 17:56:00 +0200 Message-ID: <6337ce3a-7ec2-df34-06de-804ef2129323@solnet.ch> In-Reply-To: <2564700.st92FH0W6O@linux-rdlu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0808684995==" --===============0808684995== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hi Henning! Thank you very much, the hint with strings helped me. It was really a version problem, it was an old pdb_server. I compiled from source 5.1.2 and now it works! Thank you for your time! Regards Stefan Am 20.06.18 um 17:23 schrieb Henning Westerholt: > > 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: