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

Using a gateway page to pass callerid information

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
fkuhne
Posts: 21
Joined: Mon Nov 20, 2006 10:21 pm

Using a gateway page to pass callerid information

Post 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,

fkuhne
Posts: 21
Joined: Mon Nov 20, 2006 10:21 pm

Got it

Post 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>

fkuhne
Posts: 21
Joined: Mon Nov 20, 2006 10:21 pm

Post 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?

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

IVR application and caller id

Post 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
Last edited by support on Sat Dec 26, 2009 5:41 pm, edited 1 time in total.

fkuhne
Posts: 21
Joined: Mon Nov 20, 2006 10:21 pm

Post 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?

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

IVR account and DNIS

Post 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

Post Reply