Return to last position after hangup

Hi

I would like to know whether the following is possible:

  1. User dials Asterisk box, goes into the IVR.
  2. Hangs up
  3. User dials back, press # and go back to where he was in the IVR before.

By going back I mean going back to the exact extension and priority as well as the location of the sound file. I can get it working going back to the extension only (priority 1) by using a custom AGI script.

Any suggestions?

Regards

Lionel

Not sure if that would work, but I would give a try with:

${MACRO_EXTEN}, ${MACRO_CONTEXT} and ${MACRO_PRIORITY}

you could handle hangups in a Macro and store these somewhere for
later retrieval.

My 2 cents.

you could also update a channel variable in between each extension that
the caller goes, and on hangup, store this variable value…