Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Dial plan plugin help please
Author Message
ahatoom_vip8
Brekeke Newbie


Joined: 25 Jan 2010
Posts: 1
Location: kuwait

PostPosted: Tue Jan 26, 2010 2:26 am    Post subject: Dial plan plugin help please Reply with quote

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/networkpatterns.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
Back to top
View user's profile
james
Brekeke Master Guru


Joined: 10 Dec 2007
Posts: 498

PostPosted: Tue Jan 26, 2010 7:52 pm    Post subject: Reply with quote

>> do you think that i have to put any external JARS or what?

Yes
Create JAR file and put it at "lib:.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1