[Asterisk-Users] A Way to Write DTMF Digits as text to CDR?
Michael Stearne
mstearne at gmail.com
Wed Jun 1 20:04:13 MST 2005
On 6/1/05, PA <taihome at earthlink.net> wrote:
> I've gotten my CDR working the way I like, but I am looking to customize it a bit. I have set up an IVR menu, which works great. I would like to be able to capture the prompted DTMF digits pressed by callers, to my CDR database but I don't see any AGI or Asterisk commands that allow one to customize the CDR contents. Am I thinking about this on the wrong track? If someone calls sales for instance, and presses 44364 for their PO number when prompted, I just want to have a text record of the digits they pressed in my CDR so I can easily view it. No trying to do database lookups or screen pops from it or anything fancy, I'm trying to eat an elephant one bite at a time. Anyone have a solution for that?
What language are you using with AGI? If for example you use PHP, the
digits the user presses are recorded in the array returned by
get_data.
For example:
$theButtons = $agi->get_data('beep', 10000, 3);
$theButtons['result'] will record the 3 digits the user pressed and
wait up to 10 seconds in between each button pressed.
Michael
More information about the asterisk-users
mailing list