Reverse IVR, problem with BD

We made a system, that originate a call to the caller after hang-up to get the rating of the operator. It connects him to the IVR.

What is the best way to get the numbers that the caller pressed while traveling in the IVR?
I added BD entries to the extensions.conf. But how I can get the number of that person?

Mind you, but what is BD?

Sorry… DB() - this function allows you to retrieve or store a value in the Asterisk’s database.

Save the digits pressed in some channel variables, then if you originate the call in h extension you can use the variables directly, if not, in the h extension store the variables in a location where you can access them at the time you originate the call.


Marco Bruni