Page 1 of 1

Get Value entry from Caller.

Posted: Tue Dec 12, 2006 8:53 pm
by ocbermudez
Hi All,
One question for you:

I have my script, it works fine (for the moment), but I am doing some script for get some value from callers. Ex.: I want to do an outbound call like that:

"Hello, You are Mr. Jonh and you are 32 years old. Press 1 for confirm that. Press 2 for reject this affirmation. Press 3 for end the call"

If 1: Tahnks Mr. Jonh [end call]
if 2: Sorry for this error. [end call]
if 3:nothing [end call]

I can doing this kind of script, I saw the documentation and that is not the problem. I find the problem when I need to know what it was the entry of caller [1,2 or 3]. Where can I find this information?
Where Can I read some documentation about this? Do you send this information in the url_result? where?
thanks.
Omar.

post the IVR script that you're using to collect those input

Posted: Wed Dec 13, 2006 10:15 am
by support
Can you please post the IVR script that you are using to collect those inputs? We can make some suggestions based on what your VXML looks like.

Thanks!

Posted: Wed Dec 13, 2006 10:23 am
by ocbermudez
Hi, That is the problem, I didn't find information about the recollection of data from the caller. I read about the "menu" in one script, declaration of variable, but the recollection of the entry I didn't find it.
Thanks.
Omar.

put normal vxml script in start_url field of IVR outbound ca

Posted: Wed Dec 13, 2006 10:27 am
by support
It'd be helpful for starters to just post the IVR script that you mention is working fine below. All IVR outbound calls are based off of a normal vxml script anyway. So if you have something that's working, you would put its URL in the start_url field of the IVR outbound call request.

Posted: Wed Dec 13, 2006 12:55 pm
by ocbermudez
Here is my simple message:

Code: Select all

<vxml version="2.0">
  <form>
    <block>
      <prompt>
         Hello Jonh. Your name is Jonh and you are 23 years old.
      </prompt>
    </block>
   </form>
</vxml>
Now, I want to add one menu for confirm this message(message like you can see in my first post), I don't finish this script yet. I know how I can add a menu, I read the documentation, but I didn't find where my site can find the result. Where does the plum portal send me this information? in the result_url? I need only that documentation or example.
Thanks.
Omar.

Posted: Wed Dec 13, 2006 1:11 pm
by ocbermudez
Hi all,
Here the message, now the same question, how my site (application) can get if the caller pressed "1", "2" or "3"?

Thanks for your patience.
Omar.

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">

  <form>
    <block>
      <prompt>
         Hello Jonh. Your name is Jonh and you are 23 years old.
      </prompt>
      <goto next="#mainmenu"/>
    </block>
  </form>

  <menu id="mainmenu">
    <prompt>
      For confirm that, press 1.
      For reject that, press 2.
      For cancel this call, press 3.
    </prompt>
    <choice dtmf="1" next="#confirm">
       Confirm this message</choice>
    <choice dtmf="2" next="#reject">
       Reject this message</choice>
    <choice dtmf="3" next="#cancel">
       Cancel this message</choice> 
  </menu>

  <form id="confirm">
    <block>
      Thanks for confirm this message.
    </block>
  </form>

  <form id="reject">
    <block>
      Thanks for you time.
    </block> 
  </form>

  <form id="cancel">
    <block>
      Thanks for you time
    </block>
  </form>

</vxml>

write IVR script that collects and process data on outbound

Posted: Wed Dec 13, 2006 1:12 pm
by support
Our recommendation is that you first learn how to write an IVR script that will collect and process data on an IVR inbound call before converting it into an IVR outbound call.

In the case of your IVR script below, you could add a <field> block to collect data which would then be posted back to your IVR application server with the <submit> tag. It could look something like this:

Code: Select all

<field name="caller_response">
  <grammar>
    1|2|3
  </grammar>
  <prompt>
    Press 1 for confirm that.
    Press 2 for reject this affirmation.
    Press 3 for end the call.
  </prompt>
  <filled>
    <submit next="your_app_server_script.pl" namelist="caller_response"/>
  </filled>
</field>