<?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 Is there a way to decline an incoming call using jtapi? in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4924304#M3467</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have a JTAPI application which can deflect incoming call to another diallable destination using Connection.redirect(destination), but is there any method that will decline the incoming call - resulting in the call being diverted to Voice Mail (without knowing the VM pilot number)?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 22:59:05 GMT</pubDate>
    <dc:creator>royp1</dc:creator>
    <dc:date>2023-09-15T22:59:05Z</dc:date>
    <item>
      <title>Is there a way to decline an incoming call using jtapi?</title>
      <link>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4924304#M3467</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have a JTAPI application which can deflect incoming call to another diallable destination using Connection.redirect(destination), but is there any method that will decline the incoming call - resulting in the call being diverted to Voice Mail (without knowing the VM pilot number)?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 22:59:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4924304#M3467</guid>
      <dc:creator>royp1</dc:creator>
      <dc:date>2023-09-15T22:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to decline an incoming call using jtapi?</title>
      <link>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4926746#M3469</link>
      <description>&lt;P&gt;AFAIK not dynamically.&amp;nbsp; You can enable call-forwarding to voicemail, but that has to be done before the call.&lt;BR /&gt;However, your application can query the configured voicemail profile/pilot at the time of desired 'rejection' and redirect accordingly: &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_010.html#CUCM_TP_V7645166_00" target="_blank"&gt;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_010.html#CUCM_TP_V7645166_00&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 18:06:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4926746#M3469</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-09-20T18:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to decline an incoming call using jtapi?</title>
      <link>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4926798#M3471</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/168718"&gt;@dstaudt&lt;/a&gt;.&lt;/P&gt;&lt;P&gt;I came across the Connection.&lt;STRONG&gt;reject&lt;/STRONG&gt;() method in the javadocs for CallControlTerminalConnection. However when applied to an incoming call (without answering it), I get InvalidStateException thrown - stating that preconditions are not met. Whereas in the same conditions&amp;nbsp;&lt;SPAN&gt;Connection.&lt;STRONG&gt;redirect&lt;/STRONG&gt;(destination) - works fine. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not sure exactly what use-case is covered by the Connection.reject() method then?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;On Cisco phones 88xx - when an incoming call is ringing we get 2 options - &lt;STRONG&gt;Answer&lt;/STRONG&gt; and &lt;STRONG&gt;Decline&lt;/STRONG&gt;&amp;nbsp;on soft buttons. When i Select Decline, the call goes to voice mail. I would lile to know what TAPI/JTAPI method does the Decline button invoke from the physical phone device if it is not the reject() method?&amp;nbsp;&lt;BR /&gt;As a last resort I am inclined to use the sendData to execute CiscoIPPhone with the payload for Decline soft key over JTAPI connection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 20:44:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4926798#M3471</guid>
      <dc:creator>royp1</dc:creator>
      <dc:date>2023-09-20T20:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to decline an incoming call using jtapi?</title>
      <link>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4927465#M3472</link>
      <description>&lt;P&gt;&lt;STRONG&gt;CallControlTerminalConnection.reject()&lt;/STRONG&gt; is only valid if the call is in the &lt;STRONG&gt;CallControlTerminalConnection.OFFERED&lt;/STRONG&gt; state; however Cisco IP Phones under CTI control are modeled as always automatically/immediately performing &lt;STRONG&gt;CallControlTerminalConnection.accept()&lt;/STRONG&gt; on incoming calls, which moves the state to &lt;STRONG&gt;CallControlTerminalConnection.ALERTING&lt;/STRONG&gt; - this causes any attempt to &lt;STRONG&gt;reject()&lt;/STRONG&gt; to fail with invalid state.&lt;BR /&gt;(Note, &lt;STRONG&gt;accept()&lt;/STRONG&gt;/&lt;STRONG&gt;reject()&lt;/STRONG&gt; only come into play with application-controlled CTI Ports/CTI Route Points, which do not by default auto-&lt;STRONG&gt;accept()&lt;/STRONG&gt;.)&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:36:45 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4927465#M3472</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-09-21T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to decline an incoming call using jtapi?</title>
      <link>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4927474#M3473</link>
      <description>&lt;P&gt;Thank you so much,&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/168718"&gt;@dstaudt&lt;/a&gt; for clarifying the use cases for the two methods and workings of CTI enabled IP phones.&lt;/P&gt;&lt;P&gt;I did notice the precondition as OFFERED, and call state immediately progressing to ALERTING in quick succession of JTAPI events without giving a chance to interact with the OFFERED event for the physical phone. I was however able to process the OFFERED event for CTI route points and CTI ports and get the caller and called party info.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It would be good to know what TAPI/JTAPI method does the Decline soft button on the phone invoke from the physical phone device when the incoming call is ringing (Call would be in ALERTING state - right?)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 20:56:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4927474#M3473</guid>
      <dc:creator>royp1</dc:creator>
      <dc:date>2023-09-21T20:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to decline an incoming call using jtapi?</title>
      <link>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4927990#M3474</link>
      <description>&lt;P&gt;AFAIK the &lt;STRONG&gt;Decline&lt;/STRONG&gt; soft key initiates an &lt;A href="https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/admin/14SU2/cucm_b_feature-configuration-guide-for-cisco14su2/cucm_mp_i4843248_00_immediate-divert-12-0.html" target="_self"&gt;Immediate Divert&lt;/A&gt; operation, which is implemented as a redirect to the voice mail pilot.&amp;nbsp; There is this note, which I think hints at my thoughts above on determining the VM number and redirecting there:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dstaudt_0-1695413812780.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/198038iE219CEA6E255A82F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dstaudt_0-1695413812780.png" alt="dstaudt_0-1695413812780.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 20:17:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4927990#M3474</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-09-22T20:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to decline an incoming call using jtapi?</title>
      <link>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4929372#M3475</link>
      <description>&lt;P&gt;Thank you so much, David.&amp;nbsp;That clarifies a lot of things for me.&lt;BR /&gt;I have already implemented redirect to voice mail pilot. (currently configurable) - but you are right I should query it and get it at run time in the future version. As an alternative i have also implemented sendData to "press" the Decline button on the Phone itself - which should do the same function - as you kindly explained in your last reply.&lt;/P&gt;&lt;P&gt;Yet to test as our Dev lab's Call Manager 12.5 has suddenly died &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;Will update here if successful or any issues - to complete the thread in case anyone else is interested.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2023 12:03:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/is-there-a-way-to-decline-an-incoming-call-using-jtapi/m-p/4929372#M3475</guid>
      <dc:creator>royp1</dc:creator>
      <dc:date>2023-09-26T12:03:11Z</dc:date>
    </item>
  </channel>
</rss>

