lavarini@sci.univr.it
2007-May-22 06:22 UTC
[asterisk-users] how can I catch the event generated when a parked call is hung up?
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!
Lee Jenkins
2007-May-22 08:25 UTC
[asterisk-users] how can I catch the event generated when a parked call is hung up?
lavarini@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
lavarini@sci.univr.it
2007-May-22 09:16 UTC
[asterisk-users] Re: how can I catch the event generated when a parked call is hung up?
This method does not seem to work. The action (NoOp in my case) in the "h" extension is execute after have parked the call, while when I hang up the call parked the action in "h" extension is not execute.