[SR-Users] Touching Base / Question

Maxim Sobolev sobomax at sippysoft.com
Tue Oct 17 21:44:25 CEST 2017


        len = snprintf(cmd->buf_t, sizeof(cmd->buf_t), "%d %lu %lu %lu
%lu\n",
          ttl, pst[0].npkts_in, pst[1].npkts_in, pcnts.nrelayed,
pcnts.ndropped)

Those are: remaining session TTL in seconds, number of packets received
from side A, number of packets received from side B, overall number of
packets relayed in both directions (A->B, B->A) for directions, and number
of packets dropped due to remote address not being known yet. There is
actually a newer version of that command in the RTPproxy, which provides
access to these and number of other per-session statistics collected by the
analysis code, such as:

rtpa_nsent
rtpa_nrcvd
rtpa_ndups
rtpa_nlost
rtpa_perrs

The command to fetch those is for example:

Q[v] %%CALLID%% %%TOTAG%% %%FROMTAG%% rtpa_nsent rtpa_nrcvd rtpa_ndups
rtpa_nlost rtpa_perrs

Full list is here:

https://github.com/sippy/rtpproxy/blob/master/src/rtpp_command_query.c

It would be good to get those implemented in the Kamailio as well. I would
also probably hook up jitter values into that list.

-Max

On Mon, Oct 2, 2017 at 10:09 AM, Michael Mavroudis <michael at voicetel.com>
wrote:

> I'm sorry I should had added those details.  I'm referring to:
>
> https://kamailio.org/docs/modules/4.3.x/modules/rtpproxy.html
>
> <https://kamailio.org/docs/modules/4.3.x/modules/rtpproxy.html>
> I found a snippet at:
>
> http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=c
> ommitdiff;h=85ee107929a80b54d47eaabef6f25d7b2f0659e7
>
> There is 5 values but I'm not sure what they represent.  I've also asked
> Daniel so you may be hearing for him as well.
>
> On Sep 29, 2017 3:51 PM, "Maxim Sobolev" <sobomax at sippysoft.com> wrote:
>
>> Hi, Michael, I am not sure about October, have some other travel plans
>> that are not very compatible with being in Orlando. With regards to the rtpstat,
>> which counters are you using specifically?
>>
>> -Max
>>
>> On Thu, Sep 28, 2017 at 12:42 PM, Michael Mavroudis <michael at voicetel.com
>> > wrote:
>>
>>> Hi,
>>>
>>> Hope all is well.  Are you going to be in Orlando for Astricon?  If not
>>> I'm guessing Europe again.
>>>
>>> I've got a quick question for you?
>>>
>>> What are the contents of the psuedo var: $rtpstat
>>>
>>> I started calculating MOS scores and passing them to freeswitch but my
>>> calculation isn't quite right.  I'm thinking it's because I'm calculating
>>> based on the wrong vars.  Any help is greatly appreciated.
>>> --
>>> Michael J. Mavroudis
>>>
>>> [image: VoiceTel] <http://goo.gl/yXuqFz>
>>>
>>> 630 Fifth Avenue
>>> <https://maps.google.com/?q=630+Fifth+Avenue+New+York,+NY+10111&entry=gmail&source=g>
>>> New York, NY 10111
>>> <https://maps.google.com/?q=630+Fifth+Avenue+New+York,+NY+10111&entry=gmail&source=g>
>>>
>>> M: (917) 426-9000
>>> W: (212) 942-7400
>>>
>>
>>
>>
>> --
>> Maksym Sobolyev
>> Sippy Software, Inc.
>> Internet Telephony (VoIP) Experts
>> Tel (Canada): +1-778-783-0474 <%28778%29%20783-0474>
>> Tel (Toll-Free): +1-855-747-7779 <%28855%29%20747-7779>
>> Fax: +1-866-857-6942 <%28866%29%20857-6942>
>> Web: http://www.sippysoft.com
>> MSN: sales at sippysoft.com
>> Skype: SippySoft
>>
>


-- 
Maksym Sobolyev
Sippy Software, Inc.
Internet Telephony (VoIP) Experts
Tel (Canada): +1-778-783-0474
Tel (Toll-Free): +1-855-747-7779
Fax: +1-866-857-6942
Web: http://www.sippysoft.com
MSN: sales at sippysoft.com
Skype: SippySoft
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171017/ca847dfc/attachment.html>


More information about the sr-users mailing list