<div><div dir="auto">How can I do that I didn't get any example over freeswitch wiki... it would be really for me if you can suggest me or give me a demo script.</div><br><div class="gmail_quote"><div>On Fri, 15 Sep 2017 at 9:38 PM, Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span style="font-size:12.8px"> session = new JavaSession(sessionUuid); is not returning a valid session so then session.answer() will not work because the session is not initialized.</span><br><div><span style="font-size:12.8px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 14, 2017 at 7:37 AM, Freeswitch user <span><<a href="mailto:freeswitch940@gmail.com" target="_blank">freeswitch940@gmail.com</a>></span> wrote:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hello Everyone,<div><br></div><div>Sorry to disturb you.I'm getting an error while i'm trying to call java file from dialplan.</div><div><br></div><div>Error:-  [ERR] switch_cpp.cpp:683 object is not initalized</div><div><br></div><div>i have compiled mod_java successfully. there was no error during make and make install.  but it's showing error in below java code.</div><div><br></div><div><div>-------------------------------------------</div></div><div><br></div><div><div>import org.freeswitch.*;</div><div>import org.freeswitch.swig.*;</div><div><br></div><div>public class PhoneTest implements FreeswitchScript, DTMFCallback, HangupHook</div><div>{</div><div>    public PhoneTest()</div><div>    {</div><div>    }</div><div><br></div><div>    public String onDTMF(Object object, int i, String arg)</div><div>    {</div><div>        if (object instanceof String)</div><div>            freeswitch.console_log("notice", "DTMF: " + (String)object + " ARG: " + arg + "\n");</div><div>        else</div><div>            freeswitch.console_log("notice", "WOW GOT AN EVENT: " + object.toString());</div><div>        return "true";</div><div>    }</div><div><br></div><div>    public void onHangup()</div><div>    {</div><div>        freeswitch.console_log("notice", "HANGUP!\n");</div><div>    }</div><div><br></div><div>    public void run(String sessionUuid, String args)</div><div>    {</div><div>        freeswitch.console_log("notice", "UUID: " + sessionUuid + " ARGS: " + args + "\n");</div><div>        JavaSession session = null;</div><div>        try</div><div>            {</div></div><div><br></div><div><div>{</div><div>                session = new JavaSession(sessionUuid);</div><div>               session.answer();  // getting Error in This Line      </div><div>                freeswitch.console_log("INFO","\nHIII\n");</div><div>            }catch(Exception ee){freeswitch.console_log("error",ee.getMessage());}</div><div>        finally</div><div>            {</div><div>                if (session != null)</div><div>                    session.delete();</div><div>            }</div><div>    }</div><div>}</div></div><div><br></div></div>
<br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_4536601818582914108gmail_signature" data-smartmail="gmail_signature"><div><div><div><div><div><div><div>Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬<div><br><div>☞ <a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a>  ☞ <a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>  ☞ <a href="http://twitter.com/FreeSWITCH" target="_blank">http://twitter.com/FreeSWITCH</a></div><div><div>☞ <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch ☞ <u><a href="http://freeswitch.org/g+" target="_blank">http://freeswitch.org/g+</a></u><br><br></div><div>ClueCon Weekly Development Call <br></div><div>☎ <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a>  ☎ +19193869900 </div><div><br></div></div></div><div><a href="https://www.youtube.com/watch?v=oAxXgyx5jUw" target="_blank">https://www.youtube.com/watch?v=oAxXgyx5jUw</a><br></div><div><a href="https://www.youtube.com/watch?v=9XXgW34t40s" style="color:rgb(17,85,204);font-size:12.8000001907349px" target="_blank">https://www.youtube.com/watch?v=9XXgW34t40s</a></div><div><a href="https://www.youtube.com/watch?v=NLaDpGQuZDA" target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a><br></div></div></div></div></div></div></div></div></div>
</div>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a></blockquote></div></div>