We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

not able to catch disconnect.hangup event

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
awaneeshp
Posts: 29
Joined: Fri Nov 17, 2006 1:48 am

not able to catch disconnect.hangup event

Post by awaneeshp »

Hi,

I m not able to catch the disconnect.hangup event when I disconnect the call after transferring the call to a tel number.

Below is the VXML for the same please suggest.


Code: Select all

<?xml version="1.0"?>
<vxml version="2.1">
    <catch event="connection.disconnect.hangup">
    <prompt>
      <voice name="crystal">
        <break size="medium" />
      </voice>
    </prompt>
    <submit namelist="session.id" next="http://66.109.47.37/Captira.ADI.UI/errorpage.aspx" method="post" fetchtimeout="3s" />
  </catch>
  <catch event="error.semantic">
    <prompt>
      <voice name="crystal">
        <break size="medium" />We cannot complete your request. Please contact your bonding company directly or try again later.
      </voice>
    </prompt>
    <submit namelist="session.id" next="http://66.109.47.37/Captira.ADI.UI/errorpage.aspx" method="post" fetchtimeout="3s" />
  </catch>
  <form id="calltransfer">
    <block>
      <prompt>
        <voice name="crystal">
          <break size="medium" />transferring your call...Please Wait
        </voice>
      </prompt>
    </block>
    <transfer name="T_1" connecttimeout="10s" dest="+15184460680">
      <filled>
        <if cond="T_1 == 'noanswer' || T_1 == 'network_busy' || T_1 == 'unknown' || T_1 == 'busy'">
          <prompt bargein="false">
            <voice name="crystal">
              <break size="medium" />I was unable transfer you to a representative at this time.Please contact your bonding company directly or try again later
            </voice>
          </prompt>
          <submit namelist="session.id" next="http://66.109.47.37/Captira.ADI.UI/errorpage.aspx" method="post" fetchtimeout="3s" />
        </if>
      </filled>
    </transfer>
  </form>

</vxml>
[/b]

Please suggest so that after disconnecting the call we should be able to terminate the callers session on the application server by catching the disconnect event.

Thanks,
-Awaneesh

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR error caused by prompt inside connection.disconnect.hang

Post by support »

The <prompt> inside your hangup catch will never be played because the IVR call has been hung up. That prompt, in turn, causes an IVR error to be thrown which is caught by the error.semantic catch. Try removing that prompt inside the connection.disconnect.hangup block.

Post Reply