[Asterisk-Users] how to collect user entered digits
John Millican
john at millican.us
Tue Aug 24 13:13:12 MST 2004
On Fri, Aug 20, 2004 at 01:19:54PM -0400, John Millican said:
> I have been searching thru all docs that I can find on wiki and such but
can
> not get an answer. I am trying to collect a date from user input in the
> form of digits dialed from the phone to use in an agi script to do a
> database look up. I have tried to use "Get Data filename, timeout,
> maxdigits " in the agi script. In * console I get message saying playing
> filename but it exits as soon as it starts. Could I collect the digits
some
> how before going to script and then send as an arg maybe?
Check out the source to the privacy manager for a simple example...
apps/app_privacy.c
Well Mr. Reed, and all others on list who might help, I guess I am not as
smart as I hoped I was:-)
I looked at the apps_privacy file. I thought I could write something
similar and compile then call from dial plan. What I get is a lot of errors
about unreferenced ast_app_streamfile, ast_app_getdata, ... among others. I
used all the same includes in Marks script but still no go. I tried to find
where these references came from in the apps_privacy and could not find
them. I typically code in C++ with QT 3.3 and would like to be able to use
the DB drivers that I have in QT for PostgreSQL since I will be querying an
app on a separate machine for customer info based on callid and a date in
the form of digits dialed by the caller. Any help in this direction would be
greatly appreciated. My original plan was an AGI script, is this a bad
idea? Call levels will most likly not be very high.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.742 / Virus Database: 495 - Release Date: 8/19/2004
More information about the asterisk-users
mailing list