Hi all.
I monitor how many channels are used with Zabbix.
I get the values from “sip show inuse”.
This is an example:
* Peer name In use Limit
cisco2811 7/2/0 100
Let’s imagine that the Voip provider allows 30 simultaneous calls (in any direction, does not matter).
So, how to count used lines? Summarize only the first value from x/y/z or both 1st and 2nd?
There’s no destinct information in asterisk CLI help. So, i summurize values from two columns. I found somewhere that the first column shows active calls and the second one - the calls which are being established right now, but not bridged yet. So, I think from the providers perspective this is an already used line.
well, here is a very nice example to understand my question:
voip ~ # asterisk -rx 'sip show inuse' && asterisk -rx 'core show channels'
* Peer name In use Limit
bg-sbc 10/0/0 100
orange-media 0/0/0 100
bg-trunk 0/0/0 100
MTS_cisco2811_varna 10/1/0 100
acme 0/0/0 100
cisco 0/0/0 100
Channel Location State Application(Data)
SIP/bg-sbc-00041004 sw_1_3.bulg.out@outg Up Dial(Local/xxxxxx774814@c-bg-3
SIP/bg-sbc-00041016 sw_1_3.bulg.out@outg Up Dial(Local/xxxxxx666817@c-bg-3
SIP/bg-sbc-00041018 sw_1_3.bulg.out@outg Up Dial(Local/xxxxxx917102@c-bg-3
SIP/bg-sbc-00041030 sw_1_3.bulg.out@outg Up Dial(Local/xxxxxx965163@c-bg-3
SIP/bg-sbc-0004100a sw_1_3.bulg.out@outg Up Dial(Local/xxxxxx466952@c-bg-3
SIP/bg-sbc-0004100e sw_1_3.bulg.out@outg Up Dial(Local/xxxxxx474536@c-bg-3
SIP/bg-sbc-00041044 sw_1_3.bulg.out@outg Ring Dial(Local/xxxxxx363482@c-bg-3
SIP/MTS_cisco2811_va (None) Up AppDial((Outgoing Line))
SIP/bg-sbc-0004103a sw_1_3.bulg.out@outg Up Dial(Local/xxxxxx961725@c-bg-3
SIP/bg-sbc-0004103c sw_1_3.bulg.out@outg Up Dial(Local/xxxxxx264064@c-bg-3
SIP/bg-sbc-0004103e sw_1_3.bulg.out@outg Up Dial(Local/xxxxxx858061@c-bg-3
SIP/MTS_cisco2811_va (None) Up AppDial((Outgoing Line))
SIP/MTS_cisco2811_va (None) Up AppDial((Outgoing Line))
SIP/MTS_cisco2811_va (None) Up AppDial((Outgoing Line))
SIP/MTS_cisco2811_va (None) Up AppDial((Outgoing Line))
SIP/MTS_cisco2811_va (None) Up AppDial((Outgoing Line))
SIP/MTS_cisco2811_va xxxxxx363482@incomin Down AppDial((Outgoing Line))
SIP/MTS_cisco2811_va (None) Up AppDial((Outgoing Line))
SIP/MTS_cisco2811_va (None) Up AppDial((Outgoing Line))
SIP/MTS_cisco2811_va (None) Up AppDial((Outgoing Line))
Local/xxxxxx363482@c sw_1_3.bulg.out@c-bg Down AppDial((Outgoing Line))
Local/xxxxxx363482@c xxxxxx363482@c-bg-3: Ring Dial(SIP/MTS_cisco2811_varna/
22 active channels
11 active calls
268295 calls processed
So, the calls are going from one peer [MTS_cisco2811_varna] through Asterisk, to another one [bg-sbc ] and vice versa.
And we see -
bg-sbc 10/0/0
MTS_cisco2811_varna 10/1/0
and:
22 active channels
11 active calls
so, if I’d like to monitor how many lines are used on some peer, I have to summarize x and y values from ‘x/y/z’ right?