Forums Read-only archive

Dial plan plugin help please

2 posts · Brekeke SIP Server Forum

ahatoom_vip8 Original post
1. Brekeke Product Name and version:

2. Java version:JRE6

3. OS type and the version:Windows server 2003

4. UA (phone), gateway or other hardware/software involved:

5. Select your network pattern from http://www.brekeke-sip.com/bbs/network/ ... terns.html :

6. Your problem:
i can't know why my plugin dial plan it not working
first: is there any log file or any way for logging in brekeke to trace what is happing when i try to invoke a method in any class i alredy put it in the lib directory.

second why it is not working i did all steps, my program is:

package com.mysql.jdbc ;
import com.mysql.jdbc.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.*;
public class connectdb
{


static public int exeQuery() {

try {
Connection con = null;
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = (Connection) DriverManager.getConnection("jdbc:mysql://127.0.0.1/serverdb","pbx", "pbx");
if(!con.isClosed())
return 1;
else
return 0;

} catch (SQLException e) {
return 0;
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return 0;
} catch (IllegalAccess Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
return 0;
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return 0;
}



}
}

it simple program trying to make connection with mySQL database to make query on it
i made compilation for this code and i move the class file to the required directory C:\Program Files\Brekeke\proxy\webapps\proxy\WEB-INF\lib
but still not working
do you think that i have to put any external JARS or what?

please help me in this problem
james
>> do you think that i have to put any external JARS or what?

Yes
Create JAR file and put it at "lib:.