[asterisk-users] how can I catch the event generated when a parked call is hung up?

Lee Jenkins lee at datatrakpos.com
Tue May 22 08:25:11 MST 2007


lavarini at sci.univr.it wrote:
> Hi all,
> 
> 	how can I catch the event generated when a parked call is hung up?
> 
> In my dialplan, when arrives a call to a specific number, Asterisk parks
> the call and announces the parking slot to a number. But if the user hangs
> up the parked call, I don't know how to catch the event, from dialplan,
> that removes the call from the parking slot. I want to know if there is a
> method for do this.
> 
> Thank you!

That's a good question actually.  Have you tried adding the "h" 
extension to the context where the call is parked?

exten=>123,1,Dial(SIP/123,30,m)   ; <== park when answered here
exten=>h,1,Noop(Damn it.  That one got a away!)

I wonder if that would work.  No time to try it myself...

-- 

Warm Regards,

Lee





More information about the asterisk-users mailing list