<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Answering call without adding callobserver in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/answering-call-without-adding-callobserver/m-p/3454293#M500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using CallCtlTermConnRingingEv to answer the call.&lt;/P&gt;&lt;P&gt;CallCtlTermConnRingingEv event means terminal is ringing and we answer the call when phone rings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Nov 2014 07:22:17 GMT</pubDate>
    <dc:creator>ashish.nijai</dc:creator>
    <dc:date>2014-11-13T07:22:17Z</dc:date>
    <item>
      <title>Answering call without adding callobserver</title>
      <link>https://community.cisco.com/t5/call-control/answering-call-without-adding-callobserver/m-p/3454291#M498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we answer a call without adding call observer to terminal or address?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find my code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CiscoTerminal terminal = provider&lt;/P&gt;&lt;P&gt;&amp;nbsp; .createTerminal("SEP101F740EEA25");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; TerminalConnection[] terminalConnections = terminal.getTerminalConnections();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (terminalConnections!=null){&lt;/P&gt;&lt;P&gt;&amp;nbsp; for (TerminalConnection tc : terminalConnections){&lt;/P&gt;&lt;P&gt;&amp;nbsp; tc.answer();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am unable to answer the call using above mentioned logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At same time I can answer the call when I add an empty call observer to terminal.&lt;/P&gt;&lt;P&gt;Empty call observer means empty callchanged method like below:&lt;/P&gt;&lt;P&gt;public synchronized void callChangedEvent(CallEv[] eventList) {&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;For answering call , I have to give sleep of 100 milliseconds to make code run.&lt;/P&gt;&lt;P&gt;If i don't put sleep in my code, the code is not answering the call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my code with&amp;nbsp; observer will be like: &lt;/P&gt;&lt;P&gt;CiscoTerminal terminal = provider&lt;/P&gt;&lt;P&gt;&amp;nbsp; .createTerminal("SEP101F740EEA25");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;terminal.addCallObserver(callObserver);&lt;/P&gt;&lt;P&gt;Thread.sleep(100);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; TerminalConnection[] terminalConnections = terminal.getTerminalConnections();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (terminalConnections!=null){&lt;/P&gt;&lt;P&gt;&amp;nbsp; for (TerminalConnection tc : terminalConnections){&lt;/P&gt;&lt;P&gt;&amp;nbsp; tc.answer();&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to solve this.&lt;BR /&gt;Can we answer call without call observer?&lt;/P&gt;&lt;P&gt;And if we attach call observer then why we need Thread.sleep() to answer the call.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does JTAPI signalling take that much of time due to which we require Thread.sleep()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 10:23:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/answering-call-without-adding-callobserver/m-p/3454291#M498</guid>
      <dc:creator>ashish.nijai</dc:creator>
      <dc:date>2014-11-12T10:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Answering call without adding callobserver</title>
      <link>https://community.cisco.com/t5/call-control/answering-call-without-adding-callobserver/m-p/3454292#M499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need have call observer on address or terminal to see the call or terminal connections. JTAPI is not aware of the call until application adds call observer. &lt;/P&gt;&lt;P&gt;Signal flow about the call from CTI to JTAPI starts only after call observer is added and it takes a few hundred milli seconds for it to complete hence the need for delay. &lt;/P&gt;&lt;P&gt;Normally applications should use CallCtrlTermConnTalkingEv to answer the call which doesn't need any delay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 17:37:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/answering-call-without-adding-callobserver/m-p/3454292#M499</guid>
      <dc:creator>mpotluri</dc:creator>
      <dc:date>2014-11-12T17:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Answering call without adding callobserver</title>
      <link>https://community.cisco.com/t5/call-control/answering-call-without-adding-callobserver/m-p/3454293#M500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using CallCtlTermConnRingingEv to answer the call.&lt;/P&gt;&lt;P&gt;CallCtlTermConnRingingEv event means terminal is ringing and we answer the call when phone rings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Nov 2014 07:22:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/answering-call-without-adding-callobserver/m-p/3454293#M500</guid>
      <dc:creator>ashish.nijai</dc:creator>
      <dc:date>2014-11-13T07:22:17Z</dc:date>
    </item>
  </channel>
</rss>

