1. Brekeke Product Name and Version: Brekeke SIP Server 3.6.2.5
2. Java version:1.7
3. OS type and the version: 64-bit RHEL6.6
4. UA (phone), gateway or other hardware/software involved:
5. Your problem:Dial Plan Plugin Not Working
Here is what I did.
1. Created a CLASS_PATH environment variable with value
CLASS_PATH=/usr/local/apache-tomcat-7.0.72/webapps/sip/WEB-INF/lib/ondosip.jar
2. Created sni.java file with following content:
package plugin ;
import java.util.* ;
public class sni
{
static public String hello( String[] arg, com.brekeke.net.sip.SIPpacket sippacket, Properties pr ) throws Exception
{
return ( "hello" ) ;
}
static public String get_sip_call_id( String[] arg, com.brekeke.net.sip.SIPpacket sippacket, Properties pr ) throws Exception
{
String sipcallid = sippacket.getValue("Call-ID");
return ( sipcallid ) ;
}
}
3. Compiled it by "javac -g sni.java".
4. Created a jar file by "jar -tvf sni.jar sni.class"
5. copied the sni.jar file in /usr/local/apache-tomcat-7.0.72/webapps/sip/WEB-INF/lib
6. added the following line in a working DialPlan Matching Pattern
[Matching Pattern]
$sni.get_sip_call_id = (.+)
7. Added the following line in deploy pattern
$log = mydebug:%3
When the call comes in call it not matching on the dial plan. What am I doing wrong?
2. Java version:1.7
3. OS type and the version: 64-bit RHEL6.6
4. UA (phone), gateway or other hardware/software involved:
5. Your problem:Dial Plan Plugin Not Working
Here is what I did.
1. Created a CLASS_PATH environment variable with value
CLASS_PATH=/usr/local/apache-tomcat-7.0.72/webapps/sip/WEB-INF/lib/ondosip.jar
2. Created sni.java file with following content:
package plugin ;
import java.util.* ;
public class sni
{
static public String hello( String[] arg, com.brekeke.net.sip.SIPpacket sippacket, Properties pr ) throws Exception
{
return ( "hello" ) ;
}
static public String get_sip_call_id( String[] arg, com.brekeke.net.sip.SIPpacket sippacket, Properties pr ) throws Exception
{
String sipcallid = sippacket.getValue("Call-ID");
return ( sipcallid ) ;
}
}
3. Compiled it by "javac -g sni.java".
4. Created a jar file by "jar -tvf sni.jar sni.class"
5. copied the sni.jar file in /usr/local/apache-tomcat-7.0.72/webapps/sip/WEB-INF/lib
6. added the following line in a working DialPlan Matching Pattern
[Matching Pattern]
$sni.get_sip_call_id = (.+)
7. Added the following line in deploy pattern
$log = mydebug:%3
When the call comes in call it not matching on the dial plan. What am I doing wrong?