[Asterisk-Dev] Manager documentation / examples for detecting
calls
Giovanni Miano
giomiano at gmail.com
Wed Jun 8 09:10:47 MST 2005
Hi Paul,
Visit
http://www.voip-info.org/wiki-Asterisk+Manager+API
http://www.voip-info.org/wiki-asterisk+manager+events
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
Bye,
Giovanni
On 6/8/05, Paul J. Smith <pjsmith at mtgsy.net> wrote:
> Hello,
>
> 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
> times.
>
> 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
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>
More information about the asterisk-dev
mailing list