<?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 IP Phone disconnect detection in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4636553#M3279</link>
    <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are trying to detect if a Cisco TAPI device ( can be IP Phone , IP Communicator etc)&amp;nbsp; is disconnected from the network or powered off .&amp;nbsp; From Cisco TAPI we couldnt find an option to get an event in the case of such an incident.&amp;nbsp; We are not getting any events in the line call back also&amp;nbsp; if a network disconnect or power off is happening.&amp;nbsp; &amp;nbsp;We also tried using the PHONECALLBACK function , but the initialize using&amp;nbsp;phoneInitializeExA&amp;nbsp; is returning 0 devices although we have one IP communicator being registered in the CUCM.&amp;nbsp; &amp;nbsp;Any help to resolve this issue is highly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Abdul Rasheed&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jun 2022 12:41:09 GMT</pubDate>
    <dc:creator>rasheed_speechlogix</dc:creator>
    <dc:date>2022-06-22T12:41:09Z</dc:date>
    <item>
      <title>IP Phone disconnect detection</title>
      <link>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4636553#M3279</link>
      <description>&lt;P&gt;Hello ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are trying to detect if a Cisco TAPI device ( can be IP Phone , IP Communicator etc)&amp;nbsp; is disconnected from the network or powered off .&amp;nbsp; From Cisco TAPI we couldnt find an option to get an event in the case of such an incident.&amp;nbsp; We are not getting any events in the line call back also&amp;nbsp; if a network disconnect or power off is happening.&amp;nbsp; &amp;nbsp;We also tried using the PHONECALLBACK function , but the initialize using&amp;nbsp;phoneInitializeExA&amp;nbsp; is returning 0 devices although we have one IP communicator being registered in the CUCM.&amp;nbsp; &amp;nbsp;Any help to resolve this issue is highly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Abdul Rasheed&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 12:41:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4636553#M3279</guid>
      <dc:creator>rasheed_speechlogix</dc:creator>
      <dc:date>2022-06-22T12:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: IP Phone disconnect detection</title>
      <link>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4636760#M3280</link>
      <description>&lt;P&gt;In general, any time a monitored device is no longer visible to CTI Manager (i.e. due to network disconnect or power off), the monitoring TAPI application will receive PHONE_STATE (PHONESTATE_SUSPEND) and/or LINE_LINEDEVSTATE (LINEDEVSTATE_OUTOFSERVICE) messages.&amp;nbsp; When the device re-registers, corresponding PHONE_STATE (PHONESTATE_RESUME) / LINE_LINEDEVSTATE&lt;BR /&gt;(LINEDEVSTATE_INSERVICE) messages will indicate monitoring/control can be resumed.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 16:56:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4636760#M3280</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2022-06-22T16:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: IP Phone disconnect detection</title>
      <link>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4636811#M3281</link>
      <description>&lt;P&gt;Thank you dstaudt .&amp;nbsp; Are these PHONE_STATE messages available in the line call back function initialized from lineInitializeEx API ?&amp;nbsp; i think LINEDEVSTATE events will be available in line call back function , but i was wondering if PHONE_STATE events will be reported in another call back function , can you please clarify ? .&amp;nbsp; Also we didnt recieve any LINEDEVSTATE events during the disconnection of the phone.&amp;nbsp; Will it take some time to get these events ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rasheed&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 17:21:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4636811#M3281</guid>
      <dc:creator>rasheed_speechlogix</dc:creator>
      <dc:date>2022-06-22T17:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: IP Phone disconnect detection</title>
      <link>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4636869#M3282</link>
      <description>&lt;P&gt;The PHONE stuff is a different callback, i.e. from implementing phoneInitializeEx - possibly not necessary since you're already using the LINE interface, unless there is other functionality in the PHONE area you need.&lt;/P&gt;
&lt;P&gt;Looks like you will need to do lineSetStatusMessages with dwLineStates setting INSERVICE and OUTOFSERVICE in order to receive the events.&lt;BR /&gt;As these events are indirect - CTI Manager being the 'source of truth' for the device connectivity status - timing could be an issue depending on the device's signaling protocol (UDP may take longer to detect than TCP) and the nature of the de-registration, i.e. a graceful/TCP IP Communicator exit (instant) vs. removing the network cable from a UDP/SIP desk phone (could take 3 x heartbeat-interval to detect.)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 17:52:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4636869#M3282</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2022-06-22T17:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: IP Phone disconnect detection</title>
      <link>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4637514#M3284</link>
      <description>&lt;P&gt;Hi dstaudt,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&amp;nbsp; We initialized the app using lineinitialize&amp;nbsp; , then opened each line with lineopen and then for each line we called the &lt;SPAN&gt;lineSetStatusMessages&amp;nbsp;with&amp;nbsp;dwLineStates&amp;nbsp; =&amp;nbsp;LINEDEVSTATE_OUTOFSERVICE .&amp;nbsp; we tested it with one IP communicator and we have closed the IP communicator to see if the LINEDEVSTATE_OUTOFSERVICE is triggered in the line call back&amp;nbsp; but it is not happening.&amp;nbsp; Following is the code snippet where we are logging these messages if LINEDEVSTATE_OUTOFSERVICE is triggered.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ase LINE_LINEDEVSTATE:&lt;BR /&gt;{&lt;BR /&gt;switch (dwParam1)&lt;BR /&gt;{&lt;BR /&gt;case LINEDEVSTATE_OUTOFSERVICE:&lt;BR /&gt;{&lt;BR /&gt;sprintf(logString,"*************LINEDEVSTATE_OUTOFSERVICE [%d]",dwDevice);&lt;BR /&gt;// OutputDebugString(logString);&lt;BR /&gt;cTapi-&amp;gt;m_pLog-&amp;gt;WriteLog(GENERAL_ERROR,logString);&lt;/P&gt;&lt;P&gt;}break;&lt;BR /&gt;case LINEDEVSTATE_INSERVICE:&lt;BR /&gt;{&lt;BR /&gt;sprintf(logString,"*************LINEDEVSTATE_INSERVICE [%d]",dwDevice);&lt;BR /&gt;// OutputDebugString(logString);&lt;BR /&gt;cTapi-&amp;gt;m_pLog-&amp;gt;WriteLog(GENERAL_ERROR,logString);&lt;/P&gt;&lt;P&gt;}break;&lt;BR /&gt;default:&lt;BR /&gt;{&lt;BR /&gt;sprintf(logString,"*************LINE_LINEDEVSTATE [%d]",dwDevice);&lt;BR /&gt;// OutputDebugString(logString);&lt;BR /&gt;cTapi-&amp;gt;m_pLog-&amp;gt;WriteLog(GENERAL_ERROR,logString);&lt;BR /&gt;}&lt;BR /&gt;break;&lt;BR /&gt;}&lt;BR /&gt;}break;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To include both &lt;SPAN&gt;&amp;nbsp;INSERVICE and OUTOFSERVICE in the dwlinestate parameter ,&amp;nbsp; we tried to do the logical OR .&amp;nbsp; But still it didnt work out.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;can you please let us know your suggestions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Abdul Rasheed&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 13:14:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/ip-phone-disconnect-detection/m-p/4637514#M3284</guid>
      <dc:creator>rasheed_speechlogix</dc:creator>
      <dc:date>2022-06-23T13:14:08Z</dc:date>
    </item>
  </channel>
</rss>

