<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaTempEditStyle"></style><style title="owaParaStyle"><!--P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
--></style>
</head>
<body ocsi="x">
<div style="FONT-FAMILY: Tahoma; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: x-small">
<div></div>
<div dir="ltr"><font color="#000000" size="2" face="Tahoma">Hi,</font></div>
<div dir="ltr"><font face="tahoma"></font> </div>
<div dir="ltr"><font face="tahoma">I am using org.freeswitch.esl.client-0.9.2 to ask freeswitch to make an outbound call in the following java class.</font></div>
<div dir="ltr"><font face="tahoma">I want to be able to get notified when a call is not answered for whatever reason.</font></div>
<div dir="ltr"><font face="tahoma"><font face="tahoma">However,</font> I don't get any events from freeswitch. What am I missing here?</font></div>
<div dir="ltr"><font face="tahoma">Thanks.</font></div>
<div dir="ltr"> </div>
<div dir="ltr">public class esl implements IEslEventListener {<br>
<br>
/**<br>
* @param args<br>
*/<br>
public static void main(String[] args) {<br>
esl e = new esl();<br>
Client client = new Client();<br>
EslMessage response = null;<br>
<br>
try {<br>
client.connect("192.168.6.18", 8021, "ClueCon", 10);<br>
client.addEventListener(e);<br>
<br>
response = client.sendSyncApiCommand("originate", "{ignore_early_media=true}sofia/gateway/broadvoice/1112223333 9886");<br>
<br>
CommandResponse cr = client.close();<br>
System.out.println("Done.");<br>
<br>
} catch (InboundConnectionFailure ex) {<br>
ex.printStackTrace();<br>
}<br>
}</div>
<div dir="ltr"> @Override<br>
public void backgroundJobResultReceived(EslEvent arg0) {<br>
System.out.println("backgroundJobResultReceived");<br>
}</div>
<div dir="ltr"> @Override<br>
public void eventReceived(EslEvent arg0) {<br>
System.out.println(String.format("eventReceived, event name=%s", arg0.getEventName()));<br>
}</div>
<div dir="ltr">}</div>
</div>
</body>
</html>