sip server standard 2.4.8.6
2. Java version:
jre x86 1.6.0.16
3. OS type and the version:
win2008R2 x64
4. UA (phone), gateway or other hardware/software involved:
moimstone phone, nortel SSW
5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :
pattern 9 + pattern 10
6. Your problem:
Sorry for bad english
I know advanced version has $db.query function.
But we use standard version.
since bkk is based tomcat, database configuration is set to tomcat.
1) Modify "ProgramFiles\Brekeke\proxy\conf\server.xml"
Code: Select all
<Context path="/proxy">
<Resource name="jdbc/mytro" auth="Container"
type="javax.sql.DataSource"
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
maxActive="20" maxIdle="10" maxWait="5000"
username="bkk"
password="bkk1234"
url="jdbc:sqlserver://192.168.20.12;DatabaseName=BREKEKE" />
</Context>
Code: Select all
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/mytro</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
4) Added MSSQL JDBC driver to "ProgramFiles\Brekeke\proxy\common\lib\"
Test with dialplan -> Exception ?? Error??
Test with jnditest.jsp file -> OK
Please help.