<div dir="ltr"><div>Hi,<br></div>I hope this solve Your problem<br><a href="http://lists.sipwise.com/pipermail/spce-user/2015-March/008447.html">http://lists.sipwise.com/pipermail/spce-user/2015-March/008447.html</a><br><br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><span><font color="#888888">-- <br><div><div dir="ltr"><div>З повагою,</div><div>Микола Заїка<br></div><div>Компанія VoIPTime,</div><div>Тел: <span style="color:rgb(0,0,255)"><a href="tel:%2B380%2032%202328022" value="+380322328022" target="_blank">+380 32 2328022</a></span></div><div><span style="color:rgb(0,0,255)"><a href="mailto:mzaika@voiptime.net" target="_blank">mzaika@voiptime.net</a></span></div><div><span style="color:rgb(0,0,255)"><a href="http://www.voiptime.net" target="_blank">www.voiptime.net</a></span></div></div></div></font></span></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">2015-03-17 16:13 GMT+02:00 Martin Stix <span dir="ltr"><<a href="mailto:ms@pluteus.at" target="_blank">ms@pluteus.at</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi!<br>
<br>
On my 3.7.1 this command always shows 0 for my peer-ID, which is 33<br>
<br>
/usr/sbin/ngcp-kamctl proxy fifo profile_get_size peer 33<br>
<br>
profile::  name=peer value=33 count=0<br>
<br>
Any ideas?<br>
<br>
Thanks<br>
<br>
<br>
<br>
mit freundlichen Grüßen<br>
best regards<br>
Martin Stix<br>
CEO<br>
pluteus communication solutions<br>
<a href="mailto:ms@pluteus.at">ms@pluteus.at</a><br>
<a href="http://www.pluteus.at" target="_blank">www.pluteus.at</a><br>
Dampfsägestraße 17<br>
3300 Amstetten<br>
Austria<br>
tel.: <a href="tel:%2B43%207472%2028165%2020" value="+4374722816520">+43 7472 28165 20</a><br>
fax.: <a href="tel:%2B43%207472%2028165%2022" value="+4374722816522">+43 7472 28165 22</a><br>
<br>
-----Ursprüngliche Nachricht-----<br>
Von: Spce-user [mailto:<a href="mailto:spce-user-bounces@lists.sipwise.com">spce-user-bounces@lists.sipwise.com</a>] Im Auftrag von Joel S. | VOZELIA<br>
Gesendet: Freitag, 13. März 2015 20:56<br>
An: spce-user<br>
Betreff: Re: [Spce-user] Can't count active calls for a given peer using kamctl<br>
<div class="HOEnZb"><div class="h5"><br>
Ok found the problem!<br>
<br>
I was looking in the wrong table for the peer ID.<br>
<br>
Searching through the list I found a post with a different but related problem.<br>
<br>
The solution here is to get the peer ID from the provisioning.voip_peer_hosts table.<br>
<br>
<br>
mysql> select * from voip_peer_hosts where ip ='<a href="tel:212.31.198.23" value="+12123119823">212.31.198.23</a>';<br>
+----+----------+------------+---------------+------+------+-----------+--------+-----------+--------+<br>
| id | group_id | name       | ip            | host | port | transport | weight | via_route | via_lb |<br>
+----+----------+------------+---------------+------+------+-----------+--------+-----------+--------+<br>
| 91 |        5 | Inbound    | <a href="tel:212.31.198.23" value="+12123119823">212.31.198.23</a> | NULL | 5060 |         1 |      1 | NULL      |      0 |<br>
+----+----------+------------+---------------+------+------+-----------+--------+-----------+--------+<br>
1 row in set (0.00 sec)<br>
<br>
mysql> quit<br>
Bye<br>
root@xion:~# /usr/sbin/ngcp-kamctl proxy fifo profile_get_size peer 91<br>
profile::  name=peer value=91 count=14<br>
root@xion:~#<br>
<br>
<br>
<br>
Cheers,<br>
Joel.<br>
<br>
----- Original Message -----<br>
> From: "Joel S. | VOZELIA" <<a href="mailto:joel@vozelia.com">joel@vozelia.com</a>><br>
> To: "spce-user" <<a href="mailto:spce-user@lists.sipwise.com">spce-user@lists.sipwise.com</a>><br>
> Sent: Friday, March 13, 2015 5:53:39 PM<br>
> Subject: Can't count active calls for a given peer using kamctl<br>
<br>
> Hi,<br>
><br>
> We are using fifo "profile_get_size" command to graph simultaneous<br>
> calls in mr3.4.2.<br>
><br>
> For some reason it is not working for some peers, and I don't know<br>
> where to start looking...<br>
><br>
> I need to graph calls that come from a peer with IP 212.31.198.23.<br>
><br>
> Current total:<br>
><br>
> root@xion:~# /usr/sbin/ngcp-kamctl proxy fifo profile_get_size total<br>
> profile::  name=total value= count=53<br>
> root@xion:~#<br>
><br>
> Current from that peer:<br>
><br>
> root@xion:~# /usr/sbin/ngcp-kamctl proxy fifo profile_list_dlgs total<br>
> | grep to_uri | grep <a href="tel:212.31.198.23" value="+12123119823">212.31.198.23</a> | wc -l<br>
> 48<br>
> root@xion:~#<br>
><br>
> Current from the rest:<br>
><br>
> root@xion:~# /usr/sbin/ngcp-kamctl proxy fifo profile_list_dlgs total<br>
> | grep to_uri | grep -v <a href="tel:212.31.198.23" value="+12123119823">212.31.198.23</a> | wc -l<br>
> 5<br>
> root@xion:~#<br>
><br>
><br>
> So 48 + 5 = 53 ---> All OK so far.<br>
><br>
><br>
> The above commands are not what we usually use, what we do is:<br>
><br>
><br>
> root@xion:~# mysql kamailio -e'SELECT * FROM lcr_gw where ip_addr =<br>
> "<a href="tel:212.31.198.23" value="+12123119823">212.31.198.23</a>";'<br>
> +----+--------+------------+---------------+----------+------+--------+------------+-----------+-------+------+-------+---------+----------+--------+<br>
>| id | lcr_id | gw_name    | ip_addr       | hostname | port | params |<br>
>| uri_scheme<br>
>| | transport | strip | tag  | flags | defunct | group_id | prefix |<br>
> +----+--------+------------+---------------+----------+------+--------+------------+-----------+-------+------+-------+---------+----------+--------+<br>
>| 90 |      1 | Inbound1   | <a href="tel:212.31.198.23" value="+12123119823">212.31.198.23</a> | NULL     | 5060 | NULL   |          <br>
>| 1<br>
>| |         1 |     0 | NULL |    91 |    NULL |        5 | NULL   |<br>
> +----+--------+------------+---------------+----------+------+--------+------------+-----------+-------+------+-------+---------+----------+--------+<br>
> root@xion:~#<br>
><br>
> So, the peer ID for <a href="tel:212.31.198.23" value="+12123119823">212.31.198.23</a> would be "90":<br>
><br>
> root@xion:~# /usr/sbin/ngcp-kamctl proxy fifo profile_get_size peer 90<br>
> profile::  name=peer value=90 count=0<br>
> root@xion:~#<br>
><br>
> The strange this is, the count=0 is not correct, there are in fact 48<br>
> as you can see earlier.<br>
><br>
> Where can I start to look into this problem?<br>
><br>
> If I try with a different peer:<br>
><br>
> root@xion:~# /usr/sbin/ngcp-kamctl proxy fifo profile_list_dlgs total<br>
> | grep to_uri | grep 217.15.95.45 | wc -l<br>
> 1<br>
> root@xion:~#<br>
><br>
> root@xion:~# mysql kamailio -e'SELECT * FROM lcr_gw where ip_addr =<br>
> "217.15.95.45";'<br>
> +----+--------+-----------+--------------+----------+------+--------+------------+-----------+-------+------+-------+---------+----------+--------+<br>
>| id | lcr_id | gw_name   | ip_addr      | hostname | port | params |<br>
>| uri_scheme | transport | strip | tag  | flags | defunct | group_id |<br>
>| prefix |<br>
> +----+--------+-----------+--------------+----------+------+--------+------------+-----------+-------+------+-------+---------+----------+--------+<br>
>| 36 |      1 | Inbound2  | 217.15.95.45 | NULL     | 5060 | NULL   |          <br>
>| 1 |<br>
>|         1 |     0 | NULL |    36 |    NULL |       17 | NULL   |<br>
> +----+--------+-----------+--------------+----------+------+--------+------------+-----------+-------+------+-------+---------+----------+--------+<br>
> root@xion:~#<br>
><br>
> root@xion:~# /usr/sbin/ngcp-kamctl proxy fifo profile_get_size peer 36<br>
> profile::  name=peer value=36 count=1<br>
> root@xion:~#<br>
><br>
><br>
> Maybe a kamailio restart is necessary? The peers that don't work have<br>
> been added recently.<br>
><br>
><br>
> Any ideas?<br>
><br>
><br>
> Thank you in advanced.<br>
><br>
> Best regards,<br>
> Joel.<br>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
_______________________________________________<br>
Spce-user mailing list<br>
<a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br>
<a href="https://lists.sipwise.com/listinfo/spce-user" target="_blank">https://lists.sipwise.com/listinfo/spce-user</a><br>
</div></div></blockquote></div><br></div>