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

Anthony Francis anthonyf at rockynet.com
Tue May 22 08:45:09 MST 2007


Lee Jenkins wrote:
> 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...
>
if you are monitoring through AMI userevent is better than NoOp because 
you can create a custom event to trap against.


More information about the asterisk-users mailing list