1. Brekeke Product Name and version: Sip Server 2.4.7.3/286.1
2. Java version: 1.6.0_17
3. OS type and the version: 2.6.18-194.32.1.el5.centos.plus
4. UA (phone), gateway or other hardware/software involved:
X-lite on windows7
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html : Sip Server is in the public and both softclients are in the same LAN behind NAT
6. Your problem: Databse query in dialplan does not work
I created a test dialplan with a database query as it is explained in the BKK wiki, however the query gets never executed.
MySQL db:
-------------
a mysql database "mydb" with a table "bbb" and column "aaa"
In Configuration -> Advanced i add the following rules
---------------------------------------
mydb.driver = com.mysql.jdbc.Driver
mydb.url = jdbc:mysql://domain/serverdb
mydb.user = user
mydb.password = password
Matching pattern
----------------
$Request=^INVITE
$db.query( "mydb", "select aaa from bbb where 1=1") = (.+)
Deploy pattern
---------------
$response=603
I also checked the log from the MYSQL server but there is never a attempt to do something with the query.
It seems BKK does not execute the query, what am i doing wrong?
Thanks.
2. Java version: 1.6.0_17
3. OS type and the version: 2.6.18-194.32.1.el5.centos.plus
4. UA (phone), gateway or other hardware/software involved:
X-lite on windows7
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html : Sip Server is in the public and both softclients are in the same LAN behind NAT
6. Your problem: Databse query in dialplan does not work
I created a test dialplan with a database query as it is explained in the BKK wiki, however the query gets never executed.
MySQL db:
-------------
a mysql database "mydb" with a table "bbb" and column "aaa"
In Configuration -> Advanced i add the following rules
---------------------------------------
mydb.driver = com.mysql.jdbc.Driver
mydb.url = jdbc:mysql://domain/serverdb
mydb.user = user
mydb.password = password
Matching pattern
----------------
$Request=^INVITE
$db.query( "mydb", "select aaa from bbb where 1=1") = (.+)
Deploy pattern
---------------
$response=603
I also checked the log from the MYSQL server but there is never a attempt to do something with the query.
It seems BKK does not execute the query, what am i doing wrong?
Thanks.