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

Catching a hangup

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
cpe966
Posts: 6
Joined: Wed Aug 26, 2009 3:43 pm

Catching a hangup

Post by cpe966 »

Hello,
I am trying to catch a hangup.

There are two cases:

either I have a match, or I don't.

When there is a match, I want to post everything I need to process
that call (working with below)

When there is no match I want to post the hangup (not working per below.

I have this in the script (below) but while I do get matches, the
hangups are not posted:



<field name="word">
<!-- catch hangup without match -->
<catch event="connection.disconnect.hangup">
<if cond="word.keyword!=''">
<assign name="recording" expr="word$.recording"/>
<assign name="confidence" expr="word$.confidence"/>
<assign name="campaignid" expr="word.campaignid"/>
<assign name="keyword" expr="word.keyword"/>
<assign name="callerid" expr="session.telephone.ani"/>
<assign name="sessionid" expr="session.id"/>
<submit namelist="callerid sessionid recording keyword campaignid
confidence" next="http://2020.grovestreet.net/plumvoice/response.php"
method="post" enctype="multipart/form-data"/>
<else/>
<assign name="callerid" expr="session.telephone.ani"/>
<assign name="sessionid" expr="session.id"/>
<submit namelist="sessionid callerid" method="post"
enctype="multipart/form-data"
next="http://2020.grovestreet.net/plumvoice/hangup.php"/>
</if>
</catch>

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

Re: Catching a hangup

Post by support »

Hi,

In order to help us troubleshoot your issue, could you please post some more of your application code here?

Regards,
Plum Support

Post Reply