> -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of > Jerry Geis > Sent: Friday, June 10, 2011 2:54 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] AMI question > > > > > Either use ExtensionState or watch for Hold/Unhold events. > > > > > http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action > +ExtensionState > > > > Eric > > Thanks I have 2 questions: > > 1) trying to use the command and not getting anything of value: > Response: Success > ActionID: 1 > Message: Extension Status > Exten: 401 > Context: polycom > Hint: > Status: -1 > > Current calls are this: > SIP/401-0000001a!smvoice-sip!!1!Up!AppDial!(Outgoing > Line)!401!!3!24!SIP/404-00000019 > SIP/404-00000019!smvoice-sip!401!6!Up!Dial!SIP/401|20|!204!!3! > 24!SIP/401-0000001a > > status -1 is not found. 401 is valid for me and even active. > what am I > not sending correct? I also tried SIP/401, same result. > > > 2) Is it possible to status for Incoming calls also - if they > are on hold. > how do I do that?
Do a "core show hints". If the extension@context is not on that list, then you can't monitor the state of the extension. See voip-info.org for info on setting up hints. No, you can only monitor extensions and devices. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
