Package org.freeswitch.swig

Examples of org.freeswitch.swig.JavaSession


            if (gateway.split(",").length > 2) {
              dialsuffix = gateway.split(",")[2];
            }

            session = new JavaSession(
                "{ignore_early_media=true, Cid=" + Callid + "}"
                    + dialstring + Caller + dialsuffix);
            if (session.ready()) {
              Query = "Update Call_history set Gateway_id="
                  + Gatewayid + " where id=" + Callid;
View Full Code Here


  boolean debug = true;
  JavaSession session;
  @Override
  public void run(String arg0, String arg1) {
    // TODO Auto-generated method stub
    session = new JavaSession(arg0);
    session.setHangupHook(this);
    Caller = session.getVariable("caller_id_number");
   
    Connection con = new DatabaseHandler().getConnection();
    // Check for App registration
View Full Code Here

}
  @Override
  public void run(String arg0, String arg1) {
    // TODO Auto-generated method stub
    freeswitch.consoleLog("INFO", "Initializing bootstrap class..." );
    JavaSession session = null;
        try
            {
                session = new JavaSession(arg0);
                session.answer();
                session.hangup("NORMAL_CLEARING");
            }
        finally
            {
                if (session != null)
                    session.destroy();
            }
        while(true){
          cmd=read();
         
          if(cmd!=null || cmd.toLowerCase().equals("start")){
View Full Code Here

TOP

Related Classes of org.freeswitch.swig.JavaSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.