[asterisk-users] Get call status and hangup

Andrea Spadaccini a.spadaccini at mediatechnologies.it
Tue Aug 26 07:19:20 CDT 2008


Ciao Loic,

> Hello,
> I am looking for a way to check if a call could be established with the
> "destination"  (SIP,IAX,ZAP). 
> So I thought about an application like DIAL but instead it should return
> a variable and hangup immediately as soon as it gets something that
> could lead to a valid connection "ringing..." 
> 
> Is there something like this that could be used in Asterisk or can
> anyone recommend a different/better solution? 

I don't know if it's exactly what you want, but you can monitor the status of a
given user using the Asterisk Manager Interface (AMI), through the events
NewState, PeerStatus, Hangup.

More info:
http://www.voip-info.org/wiki-Asterisk+manager+API
http://www.voip-info.org/wiki/view/asterisk+manager+events

HTH,

-- 
Dr. Andrea Spadaccini
Multimedia Technologies Institute - MTI S.r.l.
Web: www.x-voice.it - Tel: +39 (0) 95 7224945



More information about the asterisk-users mailing list