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? I hope I'm not being a pest by asking a question every other day, but the responses I've gotten have been very helpful. I'm trying to learn as much as I can from the array of documentation, and I swear I'm only asking when I feel like I've exhausted what I could find.
pbx@itsngroup.com
2005-Jun-01 13:16 UTC
[Asterisk-Users] A Way to Write DTMF Digits as text to CDR?
You could simply put something in your dialplan / ivr that allows for mysql insert into the cdr..> 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? > > I hope I'm not being a pest by asking a question every other day, but the > responses I've gotten have been very helpful. I'm trying to learn as much > as I can from the array of documentation, and I swear I'm only asking when > I feel like I've exhausted what I could find. > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Michael Stearne
2005-Jun-01 20:04 UTC
[Asterisk-Users] A Way to Write DTMF Digits as text to CDR?
On 6/1/05, PA <taihome@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