<?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: JTAPI: Playing Audio Into a Call, Without Conferencing with a CTI- in Call Control</title>
    <link>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228588#M3576</link>
    <description>&lt;P&gt;The &lt;A href="https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/15/cucm_b_cisco-unified-jtapi-developers-guide-15/cucm_b_cisco-unified-jtapi-developers-guide-1251_chapter_010.html#CUCM_TP_A683FCC8_00" target="_self"&gt;Agent Greeting feature&lt;/A&gt; is designed to do just this.&amp;nbsp; It effectively creates a local conference using the phone's built-in-bridge DSP, with simplified call model.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Nov 2024 17:42:01 GMT</pubDate>
    <dc:creator>DavidStaudt</dc:creator>
    <dc:date>2024-11-25T17:42:01Z</dc:date>
    <item>
      <title>JTAPI: Playing Audio Into a Call, Without Conferencing with a CTI-Port</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228351#M3575</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;When an incoming (customer) call enters the CUCM, after an agent has answered, I need to play a short (pre-recorded) audio into the call, so that both parties (customer &amp;amp; agent) hear it, before they continue to chat.&lt;/P&gt;&lt;P&gt;The way I currently accomplish it is by answering the customer's call with a CTI-port, which then initiates a 2nd call to the agent. When the agent answers, the two calls are merged into a conference call, and then, the audio is RTP streamed to CTI port's output, so that all call-parties hear it (i.e. the customer &amp;amp; the agent).&lt;/P&gt;&lt;P&gt;Is there a way to accomplish the same result without using a conference call?&lt;BR /&gt;Could a Consult-Transfer approach be applied? If so, how &lt;STRONG&gt;exactly&lt;/STRONG&gt;?&lt;BR /&gt;Is another approach applicable?&lt;/P&gt;&lt;P&gt;Thanks much.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 10:00:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228351#M3575</guid>
      <dc:creator>Bliss</dc:creator>
      <dc:date>2024-11-25T10:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: JTAPI: Playing Audio Into a Call, Without Conferencing with a CTI-</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228588#M3576</link>
      <description>&lt;P&gt;The &lt;A href="https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/15/cucm_b_cisco-unified-jtapi-developers-guide-15/cucm_b_cisco-unified-jtapi-developers-guide-1251_chapter_010.html#CUCM_TP_A683FCC8_00" target="_self"&gt;Agent Greeting feature&lt;/A&gt; is designed to do just this.&amp;nbsp; It effectively creates a local conference using the phone's built-in-bridge DSP, with simplified call model.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 17:42:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228588#M3576</guid>
      <dc:creator>DavidStaudt</dc:creator>
      <dc:date>2024-11-25T17:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: JTAPI: Playing Audio Into a Call, Without Conferencing with a CTI-</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228601#M3577</link>
      <description>&lt;P&gt;Thanks, David, for your feedback.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(1)&lt;/STRONG&gt; Is the&amp;nbsp;&lt;EM&gt;Agent Greeting&lt;/EM&gt; a basic&amp;nbsp;feature built into the CUCM itself (v14), or should it be purchased separately, or a part of UCCX/UCCE?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;(2)&lt;/STRONG&gt; Meanwhile, I've tried invoking the&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;addMediaStream&lt;/EM&gt;&lt;SPAN&gt; method of an agent's terminal-connection, while call is in TALKING state, but an&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;InvalidStateException&lt;/EM&gt;&lt;SPAN&gt; is thrown, saying: "&lt;/SPAN&gt;&lt;SPAN&gt;Failed to start streaming media". Ofcourse, I've enabled&amp;nbsp;&lt;STRONG&gt;Built-in-Bridge&lt;/STRONG&gt; for this terminal, in CUCM's administration panel, and set its&amp;nbsp;&lt;STRONG&gt;Privacy&lt;/STRONG&gt; attribute to&amp;nbsp;&lt;EM&gt;Off&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you suggest why and/or point an online code-snippet showing how to utilize the Agent-Greeting feature / 'addMediaStream' method?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2024 18:24:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228601#M3577</guid>
      <dc:creator>Bliss</dc:creator>
      <dc:date>2024-11-25T18:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: JTAPI: Playing Audio Into a Call, Without Conferencing with a CTI-</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228610#M3578</link>
      <description>&lt;P&gt;1. It's a feature of CUCM...'IVR call' is mentioned as that is an easy way of implenting the agent greeting, i.e. having a unique IVR number per agent which auto answers and plays the desired audio file.&amp;nbsp; However, anything that can answer the call, play audio, and immediately hang up should work fine, e.g. a CTI port (though heed the note in the docs re threading) - for testing this could (I think) also just be another phone as long as it's answered quickly. (I have a vague recollection that the IVR call may be unusual in some way that may prevent some things from dealing with it...)&lt;BR /&gt;2. I'm not aware of a sample, unfortunately.&amp;nbsp; Possible things to look at:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The phone doesn't support BiB (unlikely)&lt;/LI&gt;&lt;LI&gt;BiB has been disabled for the phone&lt;/LI&gt;&lt;LI&gt;Trying to answer the IVR call in the same JTAPI thread as the &lt;STRONG&gt;addMediaStream&lt;/STRONG&gt; request&lt;/LI&gt;&lt;LI&gt;The IVR call isn't answered within the CTI timeout interval&lt;/LI&gt;&lt;LI&gt;The IVR call may have unusual characteristics, e.g. a limited JTAPI model (if it's a CTI port), only one media channel, etc., which may confuse the answering device if it's not prepared for it.&amp;nbsp; The example &lt;A href="https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/jtapi_dev/15/cucm_b_cisco-unified-jtapi-developers-guide-15/cucm_b_cisco-unified-jtapi-developers-guide-1251_appendix_01000.html#CUCM_RF_AE25DCDD_00" target="_self"&gt;message sequence diagram&lt;/A&gt; may be helpful there.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 25 Nov 2024 18:40:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228610#M3578</guid>
      <dc:creator>DavidStaudt</dc:creator>
      <dc:date>2024-11-25T18:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: JTAPI: Playing Audio Into a Call, Without Conferencing with a CTI-</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228973#M3579</link>
      <description>&lt;P&gt;Thanks again, David, for the useful information.&lt;/P&gt;&lt;P&gt;Please note that the mere call to the&amp;nbsp;&lt;STRONG&gt;addMediaStream&lt;/STRONG&gt; method yields an (InvalidStateException) exception.&lt;/P&gt;&lt;P&gt;I'm not even getting to the stage at which the CTI-port should "answer" this call, not to mention the stage at which it should stream audio out.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Again, device's BiB setting is turned on (in CUCM admin-panel).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If you have any suggestion(s) as to how to tackle this - understanding what makes the&amp;nbsp;&lt;STRONG&gt;addMediaStream&lt;/STRONG&gt; call fail, by finding more details on the underlying behavior (i.e. what's happening "under the hood"), I'd appreciate it very much.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 11:58:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5228973#M3579</guid>
      <dc:creator>Bliss</dc:creator>
      <dc:date>2024-11-26T11:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: JTAPI: Playing Audio Into a Call, Without Conferencing with a CTI-</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5232896#M3583</link>
      <description>&lt;P&gt;&lt;STRONG&gt;addMediaStream&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;should be called after call is answered. Which media server/library you are using to stream audio?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Umesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 14:04:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5232896#M3583</guid>
      <dc:creator>upchaurasia</dc:creator>
      <dc:date>2024-12-05T14:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: JTAPI: Playing Audio Into a Call, Without Conferencing with a CTI-</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5239125#M3588</link>
      <description>&lt;P&gt;In case you're still working on this, I created a sample app to demonstrate Agent Greeting, in this fork of the DevNet jtapi-samples repo: &lt;A href="https://github.com/davidstaudt/jtapi-samples" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://github.com/davidstaudt/jtapi-samples&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;At one point I did run into the same problem you describe, where&lt;STRONG&gt; addMedia()&lt;/STRONG&gt; fails with &lt;STRONG&gt;InvalidStateException&lt;/STRONG&gt; - I believe this was because my CTI port was not accepting/answering the incoming IVR call in time. Troubleshooting, I noticed that there was a 4 sec delay between &lt;STRONG&gt;addMedia()&lt;/STRONG&gt; and the error, due to the call not being accepted in the new call accept timeout window.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2024 01:35:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5239125#M3588</guid>
      <dc:creator>DavidStaudt</dc:creator>
      <dc:date>2024-12-20T01:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: JTAPI: Playing Audio Into a Call, Without Conferencing with a CTI-</title>
      <link>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5240110#M3589</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/882286"&gt;@DavidStaudt&lt;/a&gt;,&amp;nbsp;for the efforts you've put into this. Much appreciated.&lt;BR /&gt;Blessings and all the best.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 16:22:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/call-control/jtapi-playing-audio-into-a-call-without-conferencing-with-a-cti/m-p/5240110#M3589</guid>
      <dc:creator>Bliss</dc:creator>
      <dc:date>2024-12-23T16:22:30Z</dc:date>
    </item>
  </channel>
</rss>

