<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>&nbsp;</div>
<div dir="ltr"><font face="tahoma">I am using org.freeswitch.esl.client-0.9.2 to ask&nbsp;freeswitch to make an outbound call&nbsp;in the following java class.</font></div>
<div dir="ltr"><font face="tahoma">I want to be able to&nbsp;get notified when&nbsp;a call is not answered for whatever reason.</font></div>
<div dir="ltr"><font face="tahoma"><font face="tahoma">However,</font>&nbsp;I&nbsp;don't&nbsp;get any&nbsp;events from freeswitch. What am I missing here?</font></div>
<div dir="ltr"><font face="tahoma">Thanks.</font></div>
<div dir="ltr">&nbsp;</div>
<div dir="ltr">public class esl implements IEslEventListener {<br>
&nbsp;<br>
&nbsp;/**<br>
&nbsp; * @param args<br>
&nbsp; */<br>
&nbsp;public static void main(String[] args) {<br>
&nbsp;&nbsp;esl e = new esl();<br>
&nbsp;&nbsp;Client client = new Client();<br>
&nbsp;&nbsp;EslMessage response = null;<br>
&nbsp;&nbsp;<br>
&nbsp;&nbsp;try {<br>
&nbsp;&nbsp;&nbsp;client.connect(&quot;192.168.6.18&quot;, 8021, &quot;ClueCon&quot;, 10);<br>
&nbsp;&nbsp;&nbsp;client.addEventListener(e);<br>
&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;response = client.sendSyncApiCommand(&quot;originate&quot;, &quot;{ignore_early_media=true}sofia/gateway/broadvoice/1112223333 9886&quot;);<br>
&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;CommandResponse cr = client.close();<br>
&nbsp;&nbsp;&nbsp;System.out.println(&quot;Done.&quot;);<br>
&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;} catch (InboundConnectionFailure ex) {<br>
&nbsp;&nbsp;&nbsp;ex.printStackTrace();<br>
&nbsp;&nbsp;}<br>
&nbsp;}</div>
<div dir="ltr">&nbsp;@Override<br>
&nbsp;public void backgroundJobResultReceived(EslEvent arg0) {<br>
&nbsp;&nbsp;System.out.println(&quot;backgroundJobResultReceived&quot;);<br>
&nbsp;}</div>
<div dir="ltr">&nbsp;@Override<br>
&nbsp;public void eventReceived(EslEvent arg0) {<br>
&nbsp;&nbsp;System.out.println(String.format(&quot;eventReceived, event name=%s&quot;, arg0.getEventName()));<br>
&nbsp;}</div>
<div dir="ltr">}</div>
</div>
</body>
</html>