Wait app into Hangup Handlers ?¿

Hi all!

Are ther any possibility of Wait into a Hangup Handler? I need to wait like 60 seconds after the call hangups in order to do some stuffs, something like:


same => n,Set(CHANNEL(hangup_handler_push)=handler1,s,1);

[handler1]

exten => s,1,Verbose(hh ok)
same => n,Wait(10)
same => n,Verbose(hh after 10 secs ok)
same => n,Return()

Seems to be not working, I think it is cause the channel do not exists afer 10 seconds but not sure…

Any ideas?

Thanks in advance family!

Hangup handlers are meant to be quick operations. Blocking them like this is NOT supported. What exactly are you trying to achieve?

Hi Joshua!

I need to do some stuff 1 minute after call ends. But I need channel variables in order to work with them after that that minute to do that stuffs.

How about executing a shell script in the background that sleeps for 60 and then does what you want? Or executing the ‘at’ command?

You can pass the channel variables as command line arguments.

If you need to interact with Asterisk, AGI, AMI, or call files may be part of the solution.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.