package com.voxeo.rayo.client.samples; import java.net.URI; import com.rayo.core.CallRef; public class DialSample extends BaseSample { public void run() throws Exception { //client.dial(new URI("sip:192.168.1.34:5060")); CallRef dialRef = client.dial("192.168.1.33",new URI("sip:mperez@192.168.1.33:3060")); client.waitFor("answered"); client.say("hello. how are you", dialRef.getCallId()); Thread.sleep(5000); client.hangup(dialRef.getCallId()); } public static void main(String[] args) throws Exception { DialSample sample = new DialSample(); sample.connect("jabber.org", "mpermar", "Voxeo2008", "telefonica115.orl.voxeo.net"); sample.run(); sample.shutdown(); } }