[Spce-user] command ngcp-kamctl proxy

Mykola Zaika mzaika at voiptime.net
Fri Jan 30 05:23:56 EST 2015


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
        Contact:: sip:2111 at 10.200.10.8:5060 Q=
            Expires:: 2711
            Callid:: 02cc0a5967d763426240fc846cb48f29 at 127.0.0.1
            Cseq:: 131
            User-agent:: Asterisk PBX 1.8.23.0
            Received:: sip:10.200.10.8:5060
            Path:: <sip:lb at 127.0.0.1;lr;received=sip:10.200.10.8:5060
;socket='sip:10.200.10.15:5060'>
            State:: CS_SYNC
            Flags:: 0
            Cflag:: 192
            Socket:: udp:127.0.0.1:5062
            Methods:: 4294967295
            Ruid:: uloc-54c89ea4-6f49-6
            Reg-Id:: 0

-- 
З повагою,
Микола Заїка
Компанія VoIPTime,
Тел: +380 32 2328022
mzaika at voiptime.net
www.voiptime.net

2015-01-30 12:08 GMT+02:00 Barry Flanagan <barry at flanagan.ie>:

> On 30 January 2015 at 09:41, Mykola Zaika <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
>> mzaika at voiptime.net
>> www.voiptime.net
>>
>> _______________________________________________
>> Spce-user mailing list
>> Spce-user at lists.sipwise.com
>> https://lists.sipwise.com/listinfo/spce-user
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20150130/81c5b97b/attachment-0001.html>


More information about the Spce-user mailing list