Hi,

Can you please paste me your sample java dialplan code that work for you ? 
..coz m also facing the same problem.

My mod_java is loaded properly.
Also /usr/lib/jvm/java-1.5.0-gcj-4.3-1.5.0.0/jre/lib/i386/client/libjvm.so and 
freeswitch.jar in java.conf.xml is specified properly.

I have written a java code to print HIIIIIIIIII on the console but its not 
printing. Level mentioned is INFO.

on FS console it just prints
EXECUTE sofia/internal/1...@192.168.1.144:5061 java(testing.class)


I am attaching my java code herewith.
Can u just tell me where more i should do the modification to get my dialplan 
work.

Waiting for your kind reply.

Thanks & Regards,
Dipen Velani

On Fri 19/12/08  4:09 AM , kriko <kristjan.ug...@gmail.com> wrote:

> Seems like my dialplan was a bit problematic, it works now.
> Thanks.
> On Thu, 18 Dec 2008 15:19:22 +0100, Anthony Minessale  
> wrote:
> > did you turn up your console log level high enough to see it? The
> default
> > level is "INFO"
> >
> >
> >>
> >> _______________________________________________
> >> Freeswitch-users mailing list
> >> 
> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >>
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> >> http://www.freeswitch.org
> >>
> >
> >
> >
> -- 
> kriko
> _______________________________________________
> Freeswitch-users mailing list
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> 
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
> 
> 
---- Msg sent via @Mail - http://atmail.com/
import org.freeswitch.*;
import org.freeswitch.swig.*;

public class testing implements FreeswitchScript, DTMFCallback, HangupHook

{
    public testing()
    {
    } 

    public String onDTMF(Object object, int i, String arg)
    {
        if (object instanceof String)
            freeswitch.console_log("notice", "DTMF: " + (String)object + " ARG: 
" + arg + "\n");
        else
            freeswitch.console_log("notice", "WOW GOT AN EVENT: " + 
object.toString());
        return "true";
    }

    public void onHangup()
    {
        freeswitch.console_log("notice", "HANGUP!\n");
    }

    public void run(String sessionUuid, String args)
    {
        freeswitch.console_log("INFO", "UUID: " + sessionUuid + " ARGS: " + 
args + "\n");
        JavaSession session = null;
        try
            {
                session = new JavaSession(sessionUuid);
                //session.setDTMFCallback(this, TEST);
                //session.setHangupHook(this);
                
                session.answer();               
                
                //session.streamFile(args,0);
                freeswitch.console_log("INFO","\n\n\n\nHIIIIIII\n\n\n");
                
                //session.hangup("");
                
            }
        finally
            {
                if (session != null)
                    session.delete();
            }
    }
}

_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Reply via email to