Examples of sendSyncApiCommand()


Examples of org.freeswitch.esl.client.inbound.Client.sendSyncApiCommand()

        client.cancelEventSubscriptions();
        client.setEventSubscriptions( "plain", "all" );
        client.addEventFilter( "Event-Name", "heartbeat" );
        client.addEventFilter( "Event-Name", "channel_create" );
        client.addEventFilter( "Event-Name", "background_job" );
        client.sendSyncApiCommand( "echo", "Foo foo bar" );

//        client.sendSyncCommand( "originate", "sofia/internal/101@192.168.100.201! sofia/internal/102@192.168.100.201!" );
       
//        client.sendSyncApiCommand( "sofia status", "" );
        String jobId = client.sendAsyncApiCommand( "status", "" );
View Full Code Here

Examples of org.freeswitch.esl.client.inbound.Client.sendSyncApiCommand()

//        client.sendSyncCommand( "originate", "sofia/internal/101@192.168.100.201! sofia/internal/102@192.168.100.201!" );
       
//        client.sendSyncApiCommand( "sofia status", "" );
        String jobId = client.sendAsyncApiCommand( "status", "" );
        log.info( "Job id [{}] for [status]", jobId );
        client.sendSyncApiCommand( "version", "" );
//        client.sendAsyncApiCommand( "status", "" );
//        client.sendSyncApiCommand( "sofia status", "" );
//        client.sendAsyncApiCommand( "status", "" );
        EslMessage response = client.sendSyncApiCommand( "sofia status", "" );
        log.info( "sofia status = [{}]", response.getBodyLines().get( 3 ) );
View Full Code Here

Examples of org.freeswitch.esl.client.inbound.Client.sendSyncApiCommand()

        log.info( "Job id [{}] for [status]", jobId );
        client.sendSyncApiCommand( "version", "" );
//        client.sendAsyncApiCommand( "status", "" );
//        client.sendSyncApiCommand( "sofia status", "" );
//        client.sendAsyncApiCommand( "status", "" );
        EslMessage response = client.sendSyncApiCommand( "sofia status", "" );
        log.info( "sofia status = [{}]", response.getBodyLines().get( 3 ) );
       
        // wait to see the heartbeat events arrive
        Thread.sleep( 25000 );
        client.close();
View Full Code Here

Examples of org.freeswitch.esl.client.inbound.Client.sendSyncApiCommand()

        {
            log.error( "Connect failed", e );
            return;
        }
       
        EslMessage response = client.sendSyncApiCommand( "sofia_contact", "internal/102@192.168.100.201" );

        log.info( "Response to 'sofia_contact': [{}]", response );
        for ( Entry<Name, String> header : response.getHeaders().entrySet() )
        {
            log.info( " * header [{}]", header );
View Full Code Here

Examples of org.freeswitch.esl.client.inbound.Client.sendSyncApiCommand()

 
 
  public void broadcast(BroadcastConferenceCommand rcc) {
    Client c = manager.getESLClient();
    if (c.canSend()) {
        EslMessage response = c.sendSyncApiCommand(rcc.getCommand(), rcc.getCommandArgs());
          rcc.handleResponse(response, conferenceEventListener);  
    }
  }
 
  public void getUsers(PopulateRoomCommand prc) {
View Full Code Here

Examples of org.freeswitch.esl.client.inbound.Client.sendSyncApiCommand()

  }
 
  public void getUsers(PopulateRoomCommand prc) {
    Client c = manager.getESLClient();
    if (c.canSend()) {
          EslMessage response = c.sendSyncApiCommand(prc.getCommand(), prc.getCommandArgs());
          prc.handleResponse(response, conferenceEventListener);      
    }
  }
 
  public void mute(MuteParticipantCommand mpc) {
View Full Code Here

Examples of org.freeswitch.esl.client.inbound.Client.sendSyncApiCommand()

  }
 
  public void record(RecordConferenceCommand rcc) {
    Client c = manager.getESLClient();
    if (c.canSend()) {
        EslMessage response = c.sendSyncApiCommand(rcc.getCommand(), rcc.getCommandArgs());
          rcc.handleResponse(response, conferenceEventListener);      
    }
  }
 
    public void setManagerConnection(ManagerConnection manager) {
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.