[Freeswitch-dev] mod-java - initialization error

jonathan augenstine jaugenstine at gmail.com
Fri Apr 4 03:38:40 EDT 2008


I have a mod-java script that is encountering an error on the latest version
from svn.

The script runs successfully on build: FreeSwitch Version 1.0.pre3 (7616M)

When I retrieve the latest version from svn (8019) I get the following
output from the console:

2008-04-04 02:03:15 [ERR] switch_cpp.cpp:146 getVariable() session is not
initalized
2008-04-04 02:03:15 [ERR] switch_cpp.cpp:146 getVariable() session is not
initalized
2008-04-04 02:03:15 [ERR] switch_cpp.cpp:153 execute() session is not
initalized
2008-04-04 02:03:15 [DEBUG] switch_cpp.cpp:98 ~CoreSession()
CoreSession::~CoreSession desctructor

Java code that works on 7616 but fails on 8019:

    public void run(String sessionUuid, String args)
    {
        freeswitch.console_log("notice", "INBOUND UUID: " + sessionUuid + "
ARGS: " + args + "\n");
        JavaSession session = null;

        try
        {
            session = new JavaSession(sessionUuid);

            session.setAutoHangup(false);

            String raw_dnis =
session.getVariable("originate_caller_id_number");
            String raw_ani = session.getVariable("caller_id_number");

Has something changed on the Java module.  Do I need any new additional
initialization?

Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080404/975b6f2b/attachment.html 


More information about the Freeswitch-dev mailing list