Page 1 of 1

Using a gateway page to pass callerid information

Posted: Thu Nov 20, 2008 7:19 pm
by fkuhne
I've seen several posts about getting callerid information and the fact that you have to pass it back to your application. Here is my scenario:

1) We will store the phone #s clients will call in a database and associate them with a specific account id. One phone # per account id.
2) That account id has a database associated with it which will be used to get data for the caller.
3) We need to log each call including the number the caller called from.

I am aware of session.telephone.ani and session.telephone.dnis and the fact that I must pass them to my application from the entry page. I want to do this before prompting the user at all because the prompt they receive may vary depending on the database they should connect to.

So what I want to do is have an entry/gateway page that does nothing more than call a <submit next="http://web/nextpageurl" namelist="session.id session.telephone.ani session.telephone.dnis" />

I've tried various combinations having a form, not having a form, using a block, trying to catch noinput, etc. and none of them seem to work I get various errors from bad fetch to no dialog. Can you show me a sample vxml script that does nothing but send the call to a second page passing along those values?

Regards,

Got it

Posted: Thu Nov 20, 2008 8:52 pm
by fkuhne
Here is the code I ended up using:

Code: Select all

<?xml version="1.0" ?> 
 <vxml version="2.1">
  <form id="welcome">
    <block>
      <submit namelist="session.telephone.ani session.telephone.dnis session.id" next="http://domain/WelcomePage.aspx" method="post" />
    </block>
  </form>
 </vxml>

Posted: Thu Nov 20, 2008 9:24 pm
by fkuhne
Well, it's not 100% I guess.

I get the session.telephone.* variables. However, the dnis variable only contains the last four numbers of the called number. I am calling from a 518 area code and am calling into a 617 area code so I don't see why it would think that was a local number and only return the last four. Any ideas?

IVR application and caller id

Posted: Fri Nov 21, 2008 10:13 am
by support
Hi,

In general, when using IVR applications, for local numbers calling into local numbers, you would only see the last 4 digits of the DNIS when using session.telephone.ani. However, for 800 numbers, you would be able to see the full 10 digits for the phone number.

Regards,
Plum Support

Posted: Fri Nov 21, 2008 4:52 pm
by fkuhne
support wrote:Hi,

In general, for local numbers calling into local numbers, you would only see the last 4 digits of the DNIS when using session.telephone.ani. However, for 800 numbers, you would be able to see the full 10 digits for the phone number.

Regards,
Plum Support
Ok, so when the documentation says "local number" it doesn't mean local as in local vs long distance it means non-toll free vs toll free. What is the reasoning for that?

What if I had two different numbers on my account in different area codes with the same last four digits? How would I determine which number was called?

IVR account and DNIS

Posted: Fri Nov 21, 2008 5:14 pm
by support
Hi,

The reason for the last 4 digits being returned is that's how it is set up for our local numbers with our carrier.

As for your second question, your IVR account would never have two local numbers with the same DNIS. All of our local numbers have a unique DNIS.

If you would like a full 10 digit DNIS returned, you should contact your sales representative and they will set up toll free numbers for your account.

Regards,
Plum Support