sessionUuid is probably not a valid existing call uuid, kid of a rude post BTWOn Mon, Sep 18, 2017 at 1:16 AM, Freeswitch user <freeswitch940@gmail.com> wrote:Error:- [ERR] switch_cpp.cpp:683 object is not initalizedimportorg.freeswitch.*;importorg.freeswitch.swig.*;publicclassPhoneTestimplementsFreeswitchScript, DTMFCallback, HangupHook{publicPhoneTest(){}publicString onDTMF(Object object,inti, String arg){if(objectinstanceofString)freeswitch.console_log("notice","DTMF: "+ (String)object +" ARG: "+ arg +"\n");elsefreeswitch.console_log("notice","WOW GOT AN EVENT: "+ object.toString());return"true";}publicvoidonHangup(){freeswitch.console_log("notice","HANGUP!\n");}publicvoidrun(String sessionUuid, String args){freeswitch.console_log("notice","UUID: "+ sessionUuid +" ARGS: "+ args +"\n");JavaSession session =null;try{session =newJavaSession(sessionUuid);session.setDTMFCallback(this,"TEST"); // Getting error in this line. session object not initilizingsession.setHangupHook(this);session.answer();session.streamFile(args,0);session.hangup("");}finally{if(session !=null)session.delete();}}}__________________________________________________________________________________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
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--Anthony Minessale II ♬ @anthmfs ♬ @FreeSWITCH ♬
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
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