<?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 JTAPI Getting Conference parties in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/jtapi-getting-conference-parties/m-p/5051417#M3536</link>
    <description>&lt;P&gt;HI guys,&lt;BR /&gt;I'm trying to get a list of conferenced parties from CiscoConferenceEndEv by calling the cev.getFinalCall().getConnections() method.&lt;/P&gt;&lt;P&gt;The problem I'm hitting is, sometimes I'll get the entire list of participants, sometimes I'll get a NullPointerException. (Stack below)&lt;/P&gt;&lt;P&gt;Does anyone have an idea why this happens?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException: null&lt;BR /&gt;at com.nexlabs.iptel.misc.TerminalLogger.callChangedEvent(TerminalLogger.java:782) [classes/:?]&lt;BR /&gt;at com.cisco.jtapi.ObserverProxy.Z(CTQF) [jtapi115.jar:11.5(1.18900)-2 Release]&lt;BR /&gt;at com.cisco.jtapi.ObserverThread.messageReceived(CTQF) [jtapi115.jar:11.5(1.18900)-2 Release]&lt;BR /&gt;at com.cisco.cti.util.MessageThread.append(CTQF) [jtapi115.jar:11.5(1.18900)-2 Release]&lt;BR /&gt;at com.cisco.cti.util.MessageThread.CTQF(CTQF) [jtapi115.jar:11.5(1.18900)-2 Release]&lt;BR /&gt;at com.cisco.cti.util.MessageThread.run(CTQF) [jtapi115.jar:11.5(1.18900)-2 Release]&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2024 13:45:56 GMT</pubDate>
    <dc:creator>mervkwok1</dc:creator>
    <dc:date>2024-03-27T13:45:56Z</dc:date>
    <item>
      <title>JTAPI Getting Conference parties</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-getting-conference-parties/m-p/5051417#M3536</link>
      <description>&lt;P&gt;HI guys,&lt;BR /&gt;I'm trying to get a list of conferenced parties from CiscoConferenceEndEv by calling the cev.getFinalCall().getConnections() method.&lt;/P&gt;&lt;P&gt;The problem I'm hitting is, sometimes I'll get the entire list of participants, sometimes I'll get a NullPointerException. (Stack below)&lt;/P&gt;&lt;P&gt;Does anyone have an idea why this happens?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException: null&lt;BR /&gt;at com.nexlabs.iptel.misc.TerminalLogger.callChangedEvent(TerminalLogger.java:782) [classes/:?]&lt;BR /&gt;at com.cisco.jtapi.ObserverProxy.Z(CTQF) [jtapi115.jar:11.5(1.18900)-2 Release]&lt;BR /&gt;at com.cisco.jtapi.ObserverThread.messageReceived(CTQF) [jtapi115.jar:11.5(1.18900)-2 Release]&lt;BR /&gt;at com.cisco.cti.util.MessageThread.append(CTQF) [jtapi115.jar:11.5(1.18900)-2 Release]&lt;BR /&gt;at com.cisco.cti.util.MessageThread.CTQF(CTQF) [jtapi115.jar:11.5(1.18900)-2 Release]&lt;BR /&gt;at com.cisco.cti.util.MessageThread.run(CTQF) [jtapi115.jar:11.5(1.18900)-2 Release]&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 13:45:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-getting-conference-parties/m-p/5051417#M3536</guid>
      <dc:creator>mervkwok1</dc:creator>
      <dc:date>2024-03-27T13:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: JTAPI Getting Conference parties</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-getting-conference-parties/m-p/5051516#M3537</link>
      <description>&lt;P&gt;In general you will want to avoid performing JTAPI operations during the course of a JTAPI event callback - the best practice would be to return as quickly as possible, processing the event information separately, i.e. in another thread/message queue.&amp;nbsp; Not sure that's what's happening, but a thought...more here: &lt;A href="https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/14_0_1/cucm_b_cisco-unified-jtapi-developers-guide-14/cucm_b_cisco-unified-jtapi-developers-guide-1251_chapter_00.html#CUCM_TP_T14C195F_00" target="_blank" rel="noopener"&gt;Threaded Callbacks&lt;/A&gt;&lt;BR /&gt;My first guess at what's happening is some kind of race condition, where your app thinks the conference is fully established, but the JTAPI library is not yet ready.&amp;nbsp; It would be interesting to put a small (non-blocking) delay in before &lt;STRONG&gt;getConnections()&lt;/STRONG&gt; - if that reduces the occurrence of the null pointer exception, then you may need to look at which event your app is using as a signal of conference 'ready' state (and ensure JTAPI has a chance to fully process its threads - see above).&lt;BR /&gt;Another thing to keep in mind is that call signaling events and media events are somewhat de-coupled in CUCM - they may not always arrive in the same order (i.e. media start events for the conference could arrive before the conference signaling events do).&amp;nbsp; Make sure you are awaiting the right kind of events - media vs. signaling...call/address vs. terminal- to update the JTAPI library state before making requests.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 15:49:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-getting-conference-parties/m-p/5051516#M3537</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2024-03-27T15:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: JTAPI Getting Conference parties</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-getting-conference-parties/m-p/5067126#M3542</link>
      <description>&lt;P&gt;Thanks! Out of curiosity, is there a best practice/method for querying for conference parties during a call?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 11:00:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-getting-conference-parties/m-p/5067126#M3542</guid>
      <dc:creator>mervkwok1</dc:creator>
      <dc:date>2024-04-12T11:00:05Z</dc:date>
    </item>
  </channel>
</rss>

