[asterisk-users] AMI question

Eric Wieling EWieling at nyigc.com
Fri Jun 10 14:40:36 CDT 2011



> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] 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 at 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.



More information about the asterisk-users mailing list