Detect Music on Hold Event in the dialplan

I am developing a fastAgi application that has to be triggered only when there is a Hold event, so I am wondering how can I detect the hold event in the extensions.conf
Please let me know.

Thanks,
Harinath

The only hold events that result in music on hold occur when the channels are bridged and the dialplan is stuck in Dial, Bridge, etc. You would need to look at the code, but I doubt that AST_CONTROL_HOLD is handled during most applications (only dial, meetme and followme seem to recognize it), so you would have to modify them.

Thank you sir…This hint is very helpful… :smiley: