Asterisk event

hi,
how to generate asterisk event on every action

put userevent in front of each action in the dialplan you want to record. once you have it up and running, you can trim out events by changing userevent to noop.

hi,

will u give me a example of Hangup event

userevent(hangup)

BTW userevent call Asterisk Manager to do the function, so this might not be what you are looking for.

Read this link
voip-info.org/wiki/view/Asterisk+manager+API

What you are probably wanting to do is generate a CDR record for each action, which is an entirely different Can-o-Worms, since CDR handling changes with each release/flavor of asterisk.

Yet another option would be to “tee” the CLI log and set verbosity to 3 or more, which would allow you to read the teed file with PERL, Word, etc.

thx