Examples of EslMessage


Examples of org.freeswitch.esl.client.transport.message.EslMessage

        if ( events != null && !events.isEmpty() ) {
            sb.append( ' ' );
            sb.append( events );
        }
       
        EslMessage response = handler.sendSyncSingleLineCommand( channel, sb.toString() );

        return new CommandResponse( sb.toString(), response );
    }
View Full Code Here

Examples of org.freeswitch.esl.client.transport.message.EslMessage

    public CommandResponse cancelEventSubscriptions()
    {
        checkConnected();
       
        InboundClientHandler handler = (InboundClientHandler)channel.getPipeline().getLast();
        EslMessage response = handler.sendSyncSingleLineCommand( channel, "noevents" );

        return new CommandResponse( "noevents", response );
    }
View Full Code Here

Examples of org.freeswitch.esl.client.transport.message.EslMessage

        {
            sb.append( ' ' );
            sb.append( valueToFilter );
        }
       
        EslMessage response = handler.sendSyncSingleLineCommand( channel, sb.toString() );
       
        return new CommandResponse( sb.toString(), response );
    }
View Full Code Here

Examples of org.freeswitch.esl.client.transport.message.EslMessage

       
        if ( valueToFilter != null && !valueToFilter.isEmpty() ) {
            sb.append( ' ' );
            sb.append( valueToFilter );
        }
        EslMessage response = handler.sendSyncSingleLineCommand( channel, sb.toString() );

        return new CommandResponse( sb.toString(), response );
    }
View Full Code Here

Examples of org.freeswitch.esl.client.transport.message.EslMessage

    public CommandResponse sendMessage( SendMsg sendMsg )
    {
        checkConnected();
       
        InboundClientHandler handler = (InboundClientHandler)channel.getPipeline().getLast();
        EslMessage response = handler.sendSyncMultiLineCommand( channel, sendMsg.getMsgLines() );
       
        return new CommandResponse( sendMsg.toString(), response );
    }
View Full Code Here

Examples of org.freeswitch.esl.client.transport.message.EslMessage

        if ( level != null && !level.isEmpty() )
        {
            sb.append( "log " );
            sb.append( level );
        }
        EslMessage response = handler.sendSyncSingleLineCommand( channel, sb.toString() );

        return new CommandResponse( sb.toString(), response );
    }
View Full Code Here

Examples of org.freeswitch.esl.client.transport.message.EslMessage

    public CommandResponse cancelLogging()
    {
        checkConnected();
       
        InboundClientHandler handler = (InboundClientHandler)channel.getPipeline().getLast();
        EslMessage response = handler.sendSyncSingleLineCommand( channel, "nolog" );

        return new CommandResponse( "nolog", response );
    }
View Full Code Here

Examples of org.freeswitch.esl.client.transport.message.EslMessage

    public CommandResponse close()
    {
        checkConnected();
       
        InboundClientHandler handler = (InboundClientHandler)channel.getPipeline().getLast();
        EslMessage response = handler.sendSyncSingleLineCommand( channel, "exit" );

        return new CommandResponse( "exit", response );
    }
View Full Code Here

Examples of org.freeswitch.esl.client.transport.message.EslMessage

      for (String itemName : provider.getItemNames()) {
        FreeswitchBindingConfig config = provider.getFreeswitchBindingConfig(itemName);
        if(config.getType() == FreeswitchBindingType.MESSAGE_WAITING){
          String account = config.getArgument();
          if(!mwiCache.containsKey(account) &&  clientValid()){
            EslMessage msg = inboudClient.sendSyncApiCommand("vm_boxcount", account);
            if(msg.getBodyLines().size() == 1){
              try {
                int messages = Integer.parseInt(msg.getBodyLines().get(0));
                mwiCache.put(account, new MWIModel(messages > 0, messages));
                updateMessageWaitingItem(config);
              } catch (Exception e) {
                logger.error("Could not parse messages", e);
              }
View Full Code Here

Examples of org.freeswitch.esl.client.transport.message.EslMessage

    if(args.length == 0){
      logger.error("Command did not contain a valid command string {}");
      return null;
    }
   
    EslMessage msg = inboudClient.sendSyncApiCommand(args[0],
        args.length > 1 ? args[1] : "");
   
    List<String> bodyLines = msg.getBodyLines();
   
    StringBuilder builder = new StringBuilder();
    for(String line : bodyLines){
      if(builder.length() > 0)
        builder.append(",");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.