You are using AMI to run CLI commands and that's the problem.
Try to use the equivalent AMI actions to get the information that you want.
My suggestion : get all channels in use (CoreShowChannels) and then filter
just the SIP, since there is not an action to do exactly what you need.
On 8 Jul 2
On Saturday 08 July 2017 at 10:16:19, Antony Stone wrote:
> On Saturday 08 July 2017 at 07:15:08, Marcelo Terres wrote:
> > There are no sip show channels on AMI. Also, the output that you sent is
> > not a AMI output. Are u using AMI ou running commands on console?
>
> I'm using AMI.
>
> I have
On Saturday 08 July 2017 at 07:15:08, Marcelo Terres wrote:
> There are no sip show channels on AMI. Also, the output that you sent is
> not a AMI output. Are u using AMI ou running commands on console?
I'm using AMI.
I have a connection to the Asterisk server on port 5038, initated with:
There are no sip show channels on AMI. Also, the output that you sent is
not a AMI output. Are u using AMI ou running commands on console?
Running commands on console and parsing the output is the worst way to
obtain data, first because it is not easily parseable.
Second, it doesn't show you all
On Fri, 7 Jul 2017, Antony Stone wrote:
I'm trying to get a list of the channels currently in use on an Asterisk
server (1.8.32.1 if it matters) over AMI.
Would the AMI 'CoreShowChannel' or the CLI 'core show channels concise'
commands help?
--
Thanks in advance,
---
Hi.
I'm trying to get a list of the channels currently in use on an Asterisk server
(1.8.32.1 if it matters) over AMI.
I send the command "sip show channels", and I get back a response along the
lines of (* used to protect the innocent...):
Peer User/ANR Call ID Fo