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

Detect Answering Machine or VoiceMail

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
herzow
Posts: 23
Joined: Mon Sep 21, 2009 12:30 pm

Detect Answering Machine or VoiceMail

Post by herzow »

What is the proper way to leave a voicemail message from the system. Currently my application is cutting off the first 5-10 seconds of my message when it plays the wave file.

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

IVR post that addresses how to handle voicemail

Post by support »

Hi,

Here's a previous post that addresses this: http://support.plumvoice.com/viewtopic.php?t=1263

In that IVR example, you may have to adjust your finalsilence value depending on the voicemail.

Hope this helps.

Regards,
Plum Support
Last edited by support on Tue Feb 16, 2010 12:16 pm, edited 3 times in total.

herzow
Posts: 23
Joined: Mon Sep 21, 2009 12:30 pm

If answeringmachine Then DOTHIS Else DOTHIS

Post by herzow »

How can I do the following:

If answeringmachine Then DOTHIS Else DOTHIS

With the following file?

<?xml version="1.0" ?>
<vxml version="2.0">
<form>
<block>
<prompt>
<audio src="http://audio.plumgroup.com/root/5224840 ... wav">Hello! This is a courtesy call from CMS.Our records indicate you have received, but not activated your debit MasterCard from TransCard.To avoid a delay in the processing of your settlement, and to access the many benefits of the card, you should activate your card as soon as possible. If your card is readily available and you are ready to activate your card, press 1 to connect with TransCard. If you would like to speak with a CMS customer service team member, please press 2 or dial 800-742-7508. Thank you and have a great Day!</audio>
</prompt>
</block>
</form>
</vxml>

herzow
Posts: 23
Joined: Mon Sep 21, 2009 12:30 pm

This code below leaves a message. But plays air to a person

Post by herzow »

<?xml version="1.0" ?>
<vxml version="2.0">
<form>
<var name="callee_type" expr="'answeringmachine'" />
<record cond="callee_type=='answeringmachine'" finalsilence="4000ms">
<noinput />
</record>
<block>
<prompt>
<audio src="http://audio.plumgroup.com/root/5224840 ... wav">Hello! This is a courtesy call from CMS.Our records indicate you have received, but not activated your debit MasterCard from TransCard.To avoid a delay in the processing of your settlement, and to access the many benefits of the card, you should activate your card as soon as possible. If your card is readily available and you are ready to activate your card, press 1 to connect with TransCard. If you would like to speak with a CMS customer service team member, please press 2 or dial 800-742-7508. Thank you and have a great Day!</audio>
</prompt>
</block>
</form>
</vxml>

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

IVR outbound recording example

Post by support »

Hi,

We have tested using the following IVR script as our start_url and it left a voicemail just fine:

outboundrecord1.php:

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
$calleetype = $_POST['callee_type'];
?>
<vxml version="2.0">
<form id="mainmenu">
<var name="callee_type" expr="'<?= $calleetype ?>'"/>

<record cond="callee_type=='answeringmachine'" finalsilence="2000ms"/>
<block>
<prompt>
Hello! This is a courtesy call from CMS.Our records indicate you have received, but not activated your debit MasterCard from TransCard.To avoid a delay in the processing of your settlement, and to access the many benefits of the card, you should activate your card as soon as possible. If your card is readily available and you are ready to activate your card, press 1 to connect with TransCard. If you would like to speak with a CMS customer service team member, please press 2 or dial 800-742-7508. Thank you and have a great Day!
</prompt>
</block> 

</form>
</vxml>
If this doesn't work for you, you may need to adjust the finalsilence setting in your IVR tag, <record>, for your IVR code.

Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 11:52 am, edited 4 times in total.

herzow
Posts: 23
Joined: Mon Sep 21, 2009 12:30 pm

I don't think you understood.

Post by herzow »

It left a voicemail just fine you're correct.

However I want to do something like this.

IF "answeringmachine" THEN

Play this message

ELSE

Play a different message

END IF

herzow
Posts: 23
Joined: Mon Sep 21, 2009 12:30 pm

I think this is working...

Post by herzow »

Does this look like a VXML that is a best practice for what I am trying to do.

<?xml version="1.0" ?>
- <vxml version="2.0">
- <form>
<var name="callee_type" expr="'answeringmachine'" />
- <record cond="callee_type=='answeringmachine'" finalsilence="2000ms">
- <noinput>
- <prompt>
<audio src="http://audio.plumgroup.com/root/5224840 ... wav">Hello! This is a courtesy call from CMS.Our records indicate you have received, but not activated your debit MasterCard from TransCard.To avoid a delay in the processing of your settlement, and to access the many benefits of the card, you should activate your card as soon as possible. If your card is readily available and you are ready to activate your card, press 1 to connect with TransCard. If you would like to speak with a CMS customer service team member, please press 2 or dial 800-742-7508. Thank you and have a great Day!</audio>
</prompt>
<disconnect />
</noinput>
</record>
- <block>
- <prompt>
<audio src="http://audio.plumgroup.com/root/5224840 ... wav">Hello! This is a courtesy call from CMS.Our records indicate you have received, but not activated your debit MasterCard from TransCard.To avoid a delay in the processing of your settlement, and to access the many benefits of the card, you should activate your card as soon as possible. If your card is readily available and you are ready to activate your card, press 1 to connect with TransCard. If you would like to speak with a CMS customer service team member, please press 2 or dial 800-742-7508. Thank you and have a great Day!</audio>
</prompt>
</block>
</form>
</vxml>

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

IVR outbound recording code

Post by support »

Hi,

This IVR code using the IVR tag, <record>, should help you achieve what you're looking for:

outboundrecord1.php:

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
$calleetype = $_POST['callee_type'];
?>
<vxml version="2.0">
<form id="mainmenu">
<var name="callee_type" expr="'<?= $calleetype ?>'"/>

<record cond="callee_type=='answeringmachine'" finalsilence="2000ms"/>
<block>
<prompt cond="callee_type=='answeringmachine'">
Hello! This is a courtesy call from CMS.Our records indicate you have received, but not activated your debit MasterCard from TransCard.To avoid a delay in the processing of your settlement, and to access the many benefits of the card, you should activate your card as soon as possible. If your card is readily available and you are ready to activate your card, press 1 to connect with TransCard. If you would like to speak with a CMS customer service team member, please press 2 or dial 800-742-7508. Thank you and have a great Day!
</prompt>

<prompt cond="callee_type!='answeringmachine'">
This is a different message.
</prompt>
</block> 

</form>
</vxml>
Hope this IVR code helps.

Regards,
Plum Support
Last edited by support on Wed Feb 24, 2010 11:53 am, edited 4 times in total.

herzow
Posts: 23
Joined: Mon Sep 21, 2009 12:30 pm

ASPX Please

Post by herzow »

Thank you. This looks like it might work.

What does the top part of this file look like in ASPX

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
$calleetype = $_POST['callee_type'];
?>
<vxml version="2.0">
<form id="mainmenu">
<var name="callee_type" expr="'<?= $calleetype ?>'"/>

herzow
Posts: 23
Joined: Mon Sep 21, 2009 12:30 pm

I thought I had it. Please look at this code.

Post by herzow »

What am I missing below. It works for the "REGULAR CALL", but not hte "ANSWERING MACHINE".

<?xml version="1.0" ?>
<vxml version="2.0">
<form id="mainmenu">
<var name="callee_type" expr="''" />
<record cond="callee_type=='answeringmachine'" finalsilence="4000ms" />
<block>
<prompt cond="callee_type=='answeringmachine'">THIS IS AN ANSWERING MACHINE</prompt>
<prompt cond="callee_type!='answeringmachine'">THIS IS A REGULAR CALL</prompt>
</block>
</form>
</vxml>

herzow
Posts: 23
Joined: Mon Sep 21, 2009 12:30 pm

I left out some server side code.

Post by herzow »

strCallee_Type = Request.QueryString("callee_type")

--FOR THIS LINE THAT GENERATED
"<var name=""callee_type"" expr=""'" & strCallee_Type & "'"" />" & _

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

IVR ASP code example

Post by support »

Hi,

As we don't have any inhouse expertise on ASP (we're mainly a PHP shop here), we can't help you too much with your ASP code. However, this past IVR code example may help you with coming up with an equivalent to our PHP code:

outboundrecord1.aspx:

Code: Select all

<%Response.ContentType = "text/xml"%>
<?xml version="1.0"?>

<%
dim calleetype
calleetype = Request.Form("callee_type")
%>

<vxml version="2.0">
<form id="mainmenu">
<var name="callee_type" expr="'<%Response.Write(calleetype)%>'"/>

<record cond="callee_type=='answeringmachine'" finalsilence="2000ms"/>
<block>
<prompt cond="callee_type=='answeringmachine'">
Hello! This is a courtesy call from CMS.Our records indicate you have received, but not activated your debit MasterCard from TransCard.To avoid a delay in the processing of your settlement, and to access the many benefits of the card, you should activate your card as soon as possible. If your card is readily available and you are ready to activate your card, press 1 to connect with TransCard. If you would like to speak with a CMS customer service team member, please press 2 or dial 800-742-7508. Thank you and have a great Day!
</prompt>

<prompt cond="callee_type!='answeringmachine'">
This is a different message.
</prompt>
</block>

</form>
</vxml> 
Hope this IVR code using the IVR tag, <record>, helps.

Regards,
Plum Support

Post Reply