Plivo record during hangup

44 views
Skip to first unread message

Gerard Domanguera

unread,
Jan 20, 2016, 2:36:33 AM1/20/16
to Plivo Users
Good day!

Is it possible to set the "hangup" key press as one of the "finishOnKey" values ?
Im using plivohelper-java package and here is a sample of the xml document being passed:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
   
<Play>### Play a question file ###</Play>
   
<Record maxLength="30" action="### Do some logics after the recording file was saved ###" timeout="15" finishOnKey="any" format="mp3" filePath="/home/deploy/media/5" fileName="5412e37800b81e6583a10c69e0b067cf" />
</Response>


What happens is that, when the user presses hangup on his phone, it won't execute the "action" in Record anymore.
We got this hangup endpoint on our code already but it lacks the needed data to be able to perform what's on the logic inside the "action".
Any suggestions ?
Thanks
Reply all
Reply to author
Forward
0 new messages