Using a gateway page to pass callerid information
Posted: Thu Nov 20, 2008 7:19 pm
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,
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,