Parsing a text file in Asterisk to used in an inbound IVR Campaign
Posted on 2008-10-10
1. When an inbound call is answered by my IVR campaign, I'd like to parse a text file to see if a 7 digit number exists before letting them into the survey. Can you direct me to some samples that will parse an entire file (plain ascii text file) and look for the occurrence of a 7 digit number that the caller enters at the beginning of a survey IVR.
As an example. "please enter your 7 digit customer number followed by the # button". Store that number in a variable then parse a file and if it matches the record continue with the IVR.
2. I need to make a recording in the IVR and then rename that recording to the 7 digit number plus the question number. Say in Question 4 we ask them to tell us about their recent service experience at a dealership. I'd like to make a recording and call it the Q4-"7 digit number".