Examples of cancelEventSubscriptions()


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

          subscribed = false;
          manager.connect();
        } else {
          if (!subscribed) {
            log.info("Subscribing for ESL events.");
                  c.cancelEventSubscriptions();
                  c.addEventListener(eslEventListener);
                  c.setEventSubscriptions( "plain", "all" );
                  c.addEventFilter( EVENT_NAME, "heartbeat" );
                  c.addEventFilter( EVENT_NAME, "custom" );
                  c.addEventFilter( EVENT_NAME, "background_job" );
View Full Code Here

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

        log.info( "Client connected .." );
       
//      client.setEventSubscriptions( "plain", "heartbeat CHANNEL_CREATE CHANNEL_DESTROY BACKGROUND_JOB" );
        client.setEventSubscriptions( "plain", "all" );
        client.addEventFilter( "Event-Name", "heartbeat" );
        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" );
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.