[Asterisk-Dev] Manager documentation / examples for detecting
giomiano at gmail.com
Wed Jun 8 09:10:47 MST 2005
you must caputure follow Events:
"Newexten" ' NEW EXTENSION OR EXTENSION PRIORITY MESSAGE
"Newchannel" ' NEW CHANNEL OR CHANNEL STATE MESSAGE
"Newstate" ' NEW CHANNEL STATE MESSAGE
"Link" ' NEW LINKAGE OR CONNECTION
"Unlink" ' LINK SEVERED MESSAGE
"Hangup" ' STATION DROPS MESSAGE
On 6/8/05, Paul J. Smith <pjsmith at mtgsy.net> wrote:
> I'm trying to write a small app that can detect when a particular
> extension gets/makes a call, and when that call terminates.
> I couldn't find any docs for the manager API other than listings of some
> of the events etc. I've got as far as making the connection, reading
> the events etc.
> What I'd like to know, is, to detect a call to, say, 'SIP/Paul', which
> event(s) would I look for (currently trying to detect 'dial'), and
> which event say the call is terminated. i.e. which event(s) I should be
> using to detect the start of a call and detect the end of that call.
> I currently look at the dial event, track the uid, but dial does not
> always seem to provide the info I need, and it often occurs several
> Rather than stumble through guessing what events I should probably be
> reading and wasting time, can someone possibly point me in the right
> direction or provide an example or the recommended events?
> Many thanks,
> Paul Smith
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> To UNSUBSCRIBE or update options visit:
More information about the asterisk-dev