Created
July 13, 2010 21:17
-
-
Save loopingrage/474545 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
import javax.media.mscontrol.join.Joinable; | |
import com.voxeo.moho.Participant.JoinType; | |
import com.voxeo.logging.Loggerf; | |
import com.voxeo.moho.*; | |
import com.voxeo.moho.event.*; | |
import com.voxeo.moho.media.output.*; | |
import com.voxeo.utils.EventListener as EListen; | |
Loggerf log = Loggerf.getLogger("DialTest"); | |
// ====================================================================================================== | |
Call call = invite.acceptCall() | |
call.join().get() | |
MediaService mediaService = call.getMediaService() | |
CallableEndpoint endpoint = (CallableEndpoint) applicationContext.getEndpoint("sip:bob@172.16.99.19"); | |
log.info("ENDPOINT" + endpoint.getClass()) | |
Call candidate = endpoint.call(call.getAddress(), null, {event -> | |
log.info("EVENT - " + event) | |
} as EListen); | |
call.join(candidate, JoinType.BRIDGE, Joinable.Direction.DUPLEX); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment