Hello support, we found the last issue, and it is that after a congrats
audio is played the submit info is sent, and people usually hang up
before. That's why outbound calls were not being generated from inbound:
<form id="commitData">
<block>
<prompt bargein="true">
<audio
src="http://74.86.129.199/sound/mp3/dc/ClosePrompt.mp3">
Audio could not be fetched.
</audio>
</prompt>
<submit
next="http://74.86.129.199/bwwtest/phone2phone.php" namelist="yourname
friendsname timeglobal friendphonenumber character" method="post"
enctype="multipart/form-data"/>
</block>
</form>
So to avoid this issue we need to first submit the data, and secondly play the audio.
So since I read submitting data makes the application lose its flow, I
had to use a subdialog instead.
As you an see the ClosePrompt.mp3 audio is played and some users hang up. The submit is after the audio.
When I tried the subdialog first and the audio secondly I found out the audio was not playing. Reading your tag reference I found an argument called fetchaudio for the subdialog which seemed to play an audio while the data is submitted.
This fetchaudio argument played the audio for a second, submitted the data and hanged up. There was not argument to tell finish playing the audio even if the submitting finished.
What I tried to do is the following based on a code I found in the
forum which also did the same:
<form id="commitData">
<subdialog name="bye"
src="http://74.86.129.199/bwwtest/phone2phone.php"
namelist="yourname friendsname timeglobal friendphonenumber
character" method="post" enctype="multipart/form-data">
<filled>
<if cond="oResult.code">
<audio
src="http://74.86.129.199/sound/mp3/dc/ClosePrompt.mp3">Your message has
been succesfully delivered</audio>
</if>
</filled>
</subdialog>
</form>
I wrote this code based on one you have in the forum, but as soon the message is delivered plays a bit of audio and hang ups.
Thank you:
Pablo
We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics
Outbound calls not being generated from inbound calls
-
- Posts: 18
- Joined: Fri Dec 28, 2007 5:20 pm
IVR code to account for people who hang up
Hi,
To account for people who hang up, you could do the following with your first snippet of IVR code:
By adding in this <disconnect> event handler, you will be able to submitthe data, regardless of whether the user hangs up or not.
Hope this helps.
Regards,
Plum Support
To account for people who hang up, you could do the following with your first snippet of IVR code:
Code: Select all
<form id="commitData">
<block>
<prompt bargein="true">
<audio
src="http://74.86.129.199/sound/mp3/dc/ClosePrompt.mp3">
Audio could not be fetched.
</audio>
</prompt>
<disconnect/>
</block>
<catch event="connection.disconnect">
<submit
next="http://74.86.129.199/bwwtest/phone2phone.php" namelist="yourname
friendsname timeglobal friendphonenumber character" method="post"
enctype="multipart/form-data"/>
</catch>
</form>
Hope this helps.
Regards,
Plum Support
Plum Support
http://www.plumvoice.com
http://www.plumvoice.com