[Spce-user] command ngcp-kamctl proxy

Daniel Grotti dgrotti at sipwise.com
Fri Jan 30 05:28:11 EST 2015


Hi,
we don't have a checing for the peer status so far.
What you can do is to check the num of calls on your peer :

NUMBER OF CALLS FROM A PEER

mysql>  select id,name,ip from voip_peer_hosts;
+----+---------------+---------------+
| id | name          | ip            |
+----+---------------+---------------+
|  1 | test_700525 | 192.168.10.30 |
+----+---------------+---------------+
1 row in set (0.00 sec)


#  ngcp-kamctl proxy fifo profile_get_size peer 1
profile::  name=peer value=1 count=XXX



Daniel



On 01/30/2015 11:23 AM, Mykola Zaika wrote:
> My peer trunk is:
> 
> mysql>  select id,name,ip from voip_peer_hosts;
> +----+---------------+---------------+
> | id | name          | ip            |
> +----+---------------+---------------+
> |  1 | test_700525 | 192.168.10.30 |
> +----+---------------+---------------+
> 1 row in set (0.00 sec)
> 
> This command shows only subscriber. How can I check status of my peer
> "test_700525 | 192.168.10.30" ?
> 
> root at spce:/tmp# ngcp-kamctl proxy ul show
> Domain:: location table=512 records=1 max_slot=1
>     AOR:: 2111 at 10.200.10.8 <mailto:2111 at 10.200.10.8>
>         Contact:: sip:2111 at 10.200.10.8:5060
> <http://sip:2111@10.200.10.8:5060> Q=
>             Expires:: 2711
>             Callid:: 02cc0a5967d763426240fc846cb48f29 at 127.0.0.1
> <mailto:02cc0a5967d763426240fc846cb48f29 at 127.0.0.1>
>             Cseq:: 131
>             User-agent:: Asterisk PBX 1.8.23.0
>             Received:: sip:10.200.10.8:5060 <http://10.200.10.8:5060>
>             Path:: <sip:lb at 127.0.0.1
> <mailto:sip%3Alb at 127.0.0.1>;lr;received=sip:10.200.10.8:5060;socket='sip:10.200.10.15:5060
> <http://10.200.10.15:5060>'>
>             State:: CS_SYNC
>             Flags:: 0
>             Cflag:: 192
>             Socket:: udp:127.0.0.1:5062 <http://127.0.0.1:5062>
>             Methods:: 4294967295
>             Ruid:: uloc-54c89ea4-6f49-6
>             Reg-Id:: 0
> 
> -- 
> З повагою,
> Микола Заїка
> Компанія VoIPTime,
> Тел: +380 32 2328022 <tel:%2B380%2032%202328022>
> mzaika at voiptime.net <mailto:mzaika at voiptime.net>
> www.voiptime.net <http://www.voiptime.net>
> 
> 2015-01-30 12:08 GMT+02:00 Barry Flanagan <barry at flanagan.ie
> <mailto:barry at flanagan.ie>>:
> 
>     On 30 January 2015 at 09:41, Mykola Zaika <mzaika at voiptime.net
>     <mailto:mzaika at voiptime.net>> wrote:
> 
>         Hello,
>         Where I can find examples of commands ngcp-kamctl proxy?
> 
>         ngcp-kamctl proxy fifo profile_get_size account <account_id> ##
>         all calls
>         ngcp-kamctl proxy online ## online subscribers
> 
>         I can`t find command wich shows status of peers.
> 
> 
>     ngcp-kamctl proxy ul show 
> 
>     Here is the list I keep handy:
> 
>     # List subscriber call count and active calls.
>     ngcp-kamctl proxy fifo profile_get_size user <sub_uuid>
>     ngcp-kamctl proxy fifo profile_list_dlgs user <sub_uuid>
> 
>     # Active Calls
>     ngcp-kamctl proxy fifo get_statistics :dialog::active_dialogs
> 
>     # Terminate a dialog
>     ngcp-kamctl proxy fifo  dlg_terminate_dlg  <callid>
> 
>     # ACTIVE DIALOGS:
>     ngcp-kamctl proxy fifo get_statistics dialog::active_dialogs
> 
> 
>     # CURRENT CALLS FROM ACCOUNT
>     ngcp-kamctl proxy fifo profile_get_size account <ACCOUNT_ID>
> 
> 
>     Additionally:
> 
> 
>     ngcp-kamctl proxy fifo profile_get_size account <account_id> ## all
>     calls for
>     account in+out
> 
>     ngcp-kamctl proxy fifo profile_get_size accountout <account_id> ##
>     all out calls
>     per account
>     ngcp-kamctl proxy fifo profile_get_size total
>     ngcp-kamctl proxy fifo profile_get_size type relay
>     ngcp-kamctl proxy fifo profile_get_size type outgoing
>     ngcp-kamctl proxy fifo profile_get_size type local
>     ngcp-kamctl proxy fifo profile_get_size type incoming
> 
>     ngcp-kamctl proxy fifo profile_get_size peer <peer_id> ## for
>     trunks,in+out,peer_id is id from DB (select * from
>     provisioning.voip_peer_groups;)
> 
>     ngcp-kamctl proxy fifo profile_get_size peerout <peer_id>  ## all
>     out calls for
>     peer
> 
>     To check the PEER id just run:
> 
>     mysql> select id,name,ip from voip_peer_hosts;
> 
>     # Show peers
>     ngcp-kamctl proxy ul show 
> 
>     Hope this helps.
> 
>     -Barry Flanagan
> 
>         Thanks.
> 
>         -- 
>         З повагою,
>         Микола Заїка
>         Компанія VoIPTime,
>         Тел: +380 32 2328022 <tel:%2B380%2032%202328022>
>         mzaika at voiptime.net <mailto:mzaika at voiptime.net>
>         www.voiptime.net <http://www.voiptime.net>
> 
>         _______________________________________________
>         Spce-user mailing list
>         Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
>         https://lists.sipwise.com/listinfo/spce-user
> 
> 
> 
> 
> 
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> https://lists.sipwise.com/listinfo/spce-user
> 



More information about the Spce-user mailing list