Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] RTCP debugs and stats


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
lftsy at leurent.eu
Guest





PostPosted: Mon Jun 02, 2008 3:25 am    Post subject: [asterisk-users] RTCP debugs and stats Reply with quote

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Good Morning,
I would like to be able to test automatically the quality of the line (the MOS), do you know any way to do it automatically?
I also would like to know how to save rtcp stats in a mysql database if it's possible?
Any clue?

Best Regards,

Marc Leurent
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIQ66GrxOjjFYWQtoRAg0EAJ9Hy86PULVb5DCcqSUURCtukGB5hgCeKw7Y
MhdqohHnse/7txtE1tM6/dM=
=xDuV
-----END PGP SIGNATURE-----
Back to top
atis at iq-labs.net
Guest





PostPosted: Mon Jun 02, 2008 5:54 am    Post subject: [asterisk-users] RTCP debugs and stats Reply with quote

On Mon, Jun 2, 2008 at 11:25 AM, Marc LEURENT <lftsy at leurent.eu> wrote:
Quote:
Good Morning,
I would like to be able to test automatically the quality of the line (the MOS), do you know any way to do it automatically?
I also would like to know how to save rtcp stats in a mysql database if it's possible?
Any clue?

Unfortuneately no. I needed this once, so I wrote few lines that are
grepping full_log and grouping data in some way. It doesn't give
complete overview, but just approximate quality for peers.

Here's something i done, but you'll need to dig deeper, play with IP
addresses, etc (IP's are scrambled to aa/bb/cc)

Regards,
Atis

#cat /var/log/asterisk/full | grep -A30 -F "Got RTCP from" > rtcp_in.log
#cat /var/log/asterisk/full | grep -A30 -F "Sent RTCP SR to" > rtcp_out.log
#cat /var/log/asterisk/full | grep -A30 -F "RTP-stats" > rtcp_stats.log
#cat rtcp_in.log | grep -A10 -F "Got RTCP from aa.aa.aa." | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" > rtcp_in_sfo.log
#cat rtcp_in.log | grep -A10 -F "Got RTCP from bb.bb.bb.bb" | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" > rtcp_in_wci.log
#cat rtcp_in.log | grep -A10 -F "Got RTCP from 192.168." | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" > rtcp_in_riga.log

#cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to aa.aa.aa." | grep -P
"(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_sfo.log
#cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to bb.bb.bb.bb" | grep
-P "(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_wci.log
#cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to 192.168." | grep -P
"(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_riga.log
#cat rtcp_out_riga.log | grep -F -v "Sent RTCP SR to" | grep -F -v
"Fraction lost: 0" | grep -F -v "Cumulative loss: 0" | grep -F -v
"jitter" > lost_riga.log
#cat rtcp_out_sfo.log | grep -F -v "Sent RTCP SR to" | grep -F -v
"Fraction lost: 0" | grep -F -v "Cumulative loss: 0" | grep -F -v
"jitter" > lost_sfo.log
#cat rtcp_out_wci.log | grep -F -v "Sent RTCP SR to" | grep -F -v
"Fraction lost: 0" | grep -F -v "Cumulative loss: 0" | grep -F -v
"jitter" > lost_wci.log

#cat rtcp_out_riga.log | grep -F "jitter" > jitter_riga.log
#cat rtcp_out_sfo.log | grep -F "jitter" > jitter_sfo.log
#cat rtcp_out_wci.log | grep -F "jitter" > jitter_wci.log

#cat rtcp_out_riga.log | grep -F "Cumulative loss:" | grep -F -v ": 0"
Quote:
lost_riga.log
#cat rtcp_out_sfo.log | grep -F "Cumulative loss:" | grep -F -v ": 0"
Quote:
lost_sfo.log
#cat rtcp_out_wci.log | grep -F "Cumulative loss:" | grep -F -v ": 0"
Quote:
lost_wci.log

# IPs
#cat rtcp_out_sfo.log | grep -o -P "Sent RTCP SR to
([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*)" | sort | uniq -c

#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.131" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_131.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.132" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_132.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.133" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_133.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.142" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_142.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.6" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_6.log

cat /var/log/asterisk/full | grep -A30 -F "Got RTCP from" > rtcp_in.log
cat /var/log/asterisk/full | grep -A30 -F "Sent RTCP SR to" > rtcp_out.log

cat rtcp_in.log | grep -A10 -F "Got RTCP from cc.cc.cc." | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" >
rtcp_in_lattelenet.log
cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to cc.cc.cc." | grep -P
"(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_lattelenet.log

cat rtcp_out_lattelenet.log | grep -F "Cumulative loss:" | grep -F -v
": 0" > lost_lattelenet.log




--
Atis Lezdins,
VoIP Project Manager / Developer,
atis at iq-labs.net
Skype: atis.lezdins
Cell Phone: +371 28806004
Cell Phone: +1 800 7300689
Work phone: +1 800 7502835
Back to top
lftsy at leurent.eu
Guest





PostPosted: Mon Jun 02, 2008 8:08 am    Post subject: [asterisk-users] RTCP debugs and stats Reply with quote

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you for your answer, i'm still looking forward to having a real MOS quality supervision...
I will keep you inform if I find something else
Best Regards

Atis Lezdins a ?crit :
Quote:
On Mon, Jun 2, 2008 at 11:25 AM, Marc LEURENT <lftsy at leurent.eu> wrote:
Quote:
Good Morning,
I would like to be able to test automatically the quality of the line (the MOS), do you know any way to do it automatically?
I also would like to know how to save rtcp stats in a mysql database if it's possible?
Any clue?

Unfortuneately no. I needed this once, so I wrote few lines that are
grepping full_log and grouping data in some way. It doesn't give
complete overview, but just approximate quality for peers.

Here's something i done, but you'll need to dig deeper, play with IP
addresses, etc (IP's are scrambled to aa/bb/cc)

Regards,
Atis

#cat /var/log/asterisk/full | grep -A30 -F "Got RTCP from" > rtcp_in.log
#cat /var/log/asterisk/full | grep -A30 -F "Sent RTCP SR to" > rtcp_out.log
#cat /var/log/asterisk/full | grep -A30 -F "RTP-stats" > rtcp_stats.log
#cat rtcp_in.log | grep -A10 -F "Got RTCP from aa.aa.aa." | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" > rtcp_in_sfo.log
#cat rtcp_in.log | grep -A10 -F "Got RTCP from bb.bb.bb.bb" | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" > rtcp_in_wci.log
#cat rtcp_in.log | grep -A10 -F "Got RTCP from 192.168." | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" > rtcp_in_riga.log

#cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to aa.aa.aa." | grep -P
"(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_sfo.log
#cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to bb.bb.bb.bb" | grep
-P "(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_wci.log
#cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to 192.168." | grep -P
"(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_riga.log


#cat rtcp_out_riga.log | grep -F -v "Sent RTCP SR to" | grep -F -v
"Fraction lost: 0" | grep -F -v "Cumulative loss: 0" | grep -F -v
"jitter" > lost_riga.log
#cat rtcp_out_sfo.log | grep -F -v "Sent RTCP SR to" | grep -F -v
"Fraction lost: 0" | grep -F -v "Cumulative loss: 0" | grep -F -v
"jitter" > lost_sfo.log
#cat rtcp_out_wci.log | grep -F -v "Sent RTCP SR to" | grep -F -v
"Fraction lost: 0" | grep -F -v "Cumulative loss: 0" | grep -F -v
"jitter" > lost_wci.log

#cat rtcp_out_riga.log | grep -F "jitter" > jitter_riga.log
#cat rtcp_out_sfo.log | grep -F "jitter" > jitter_sfo.log
#cat rtcp_out_wci.log | grep -F "jitter" > jitter_wci.log

#cat rtcp_out_riga.log | grep -F "Cumulative loss:" | grep -F -v ": 0"
Quote:
lost_riga.log
#cat rtcp_out_sfo.log | grep -F "Cumulative loss:" | grep -F -v ": 0"
Quote:
lost_sfo.log
#cat rtcp_out_wci.log | grep -F "Cumulative loss:" | grep -F -v ": 0"
Quote:
lost_wci.log

# IPs
#cat rtcp_out_sfo.log | grep -o -P "Sent RTCP SR to
([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*)" | sort | uniq -c

#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.131" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_131.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.132" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_132.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.133" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_133.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.142" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_142.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.6" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_6.log

cat /var/log/asterisk/full | grep -A30 -F "Got RTCP from" > rtcp_in.log
cat /var/log/asterisk/full | grep -A30 -F "Sent RTCP SR to" > rtcp_out.log

cat rtcp_in.log | grep -A10 -F "Got RTCP from cc.cc.cc." | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" >
rtcp_in_lattelenet.log
cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to cc.cc.cc." | grep -P
"(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_lattelenet.log

cat rtcp_out_lattelenet.log | grep -F "Cumulative loss:" | grep -F -v
": 0" > lost_lattelenet.log




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIQ/C4rxOjjFYWQtoRAgjtAJ9VNBG7tDP1hFd5Vv01kVZ//bSmwQCfWwW7
WIMzhKsSB7DRtznxT1tTLM4=
=J5Ml
-----END PGP SIGNATURE-----
Back to top
mkezys at gmail.com
Guest





PostPosted: Mon Jun 02, 2008 8:29 am    Post subject: [asterisk-users] RTCP debugs and stats Reply with quote

You can save ${RTPAUDIOQOS} into your userfield which goes to your Realtime
DB.

Regards,
Mindaugas Kezys
http://www.kolmisoft.com
Quote:
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
bounces at lists.digium.com] On Behalf Of Marc LEURENT
Sent: Monday, June 02, 2008 4:08 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] RTCP debugs and stats

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thank you for your answer, i'm still looking forward to having a real
MOS quality supervision...
I will keep you inform if I find something else
Best Regards

Atis Lezdins a ?crit :
Quote:
On Mon, Jun 2, 2008 at 11:25 AM, Marc LEURENT <lftsy at leurent.eu>
wrote:
Quote:
Quote:
Good Morning,
I would like to be able to test automatically the quality of the
line (the MOS), do you know any way to do it automatically?
Quote:
Quote:
I also would like to know how to save rtcp stats in a mysql database
if it's possible?
Quote:
Quote:
Any clue?

Unfortuneately no. I needed this once, so I wrote few lines that are
grepping full_log and grouping data in some way. It doesn't give
complete overview, but just approximate quality for peers.

Here's something i done, but you'll need to dig deeper, play with IP
addresses, etc (IP's are scrambled to aa/bb/cc)

Regards,
Atis

#cat /var/log/asterisk/full | grep -A30 -F "Got RTCP from" >
rtcp_in.log
Quote:
#cat /var/log/asterisk/full | grep -A30 -F "Sent RTCP SR to" >
rtcp_out.log
Quote:
#cat /var/log/asterisk/full | grep -A30 -F "RTP-stats" >
rtcp_stats.log
Quote:
#cat rtcp_in.log | grep -A10 -F "Got RTCP from aa.aa.aa." | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" > rtcp_in_sfo.log
#cat rtcp_in.log | grep -A10 -F "Got RTCP from bb.bb.bb.bb" | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" > rtcp_in_wci.log
#cat rtcp_in.log | grep -A10 -F "Got RTCP from 192.168." | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" > rtcp_in_riga.log

#cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to aa.aa.aa." | grep -
P
Quote:
"(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_sfo.log
#cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to bb.bb.bb.bb" | grep
-P "(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_wci.log
#cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to 192.168." | grep -P
"(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_riga.log


#cat rtcp_out_riga.log | grep -F -v "Sent RTCP SR to" | grep -F -v
"Fraction lost: 0" | grep -F -v "Cumulative loss: 0" | grep -F -v
"jitter" > lost_riga.log
#cat rtcp_out_sfo.log | grep -F -v "Sent RTCP SR to" | grep -F -v
"Fraction lost: 0" | grep -F -v "Cumulative loss: 0" | grep -F -v
"jitter" > lost_sfo.log
#cat rtcp_out_wci.log | grep -F -v "Sent RTCP SR to" | grep -F -v
"Fraction lost: 0" | grep -F -v "Cumulative loss: 0" | grep -F -v
"jitter" > lost_wci.log

#cat rtcp_out_riga.log | grep -F "jitter" > jitter_riga.log
#cat rtcp_out_sfo.log | grep -F "jitter" > jitter_sfo.log
#cat rtcp_out_wci.log | grep -F "jitter" > jitter_wci.log

#cat rtcp_out_riga.log | grep -F "Cumulative loss:" | grep -F -v ":
0"
Quote:
Quote:
lost_riga.log
#cat rtcp_out_sfo.log | grep -F "Cumulative loss:" | grep -F -v ": 0"
Quote:
lost_sfo.log
#cat rtcp_out_wci.log | grep -F "Cumulative loss:" | grep -F -v ": 0"
Quote:
lost_wci.log

# IPs
#cat rtcp_out_sfo.log | grep -o -P "Sent RTCP SR to
([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*)" | sort | uniq -c

#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.131" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_131.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.132" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_132.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.133" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_133.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.142" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_142.log
#cat rtcp_out_sfo.log | grep -A 3 -F "Sent RTCP SR to aa.aa.aa.6" |
grep -F "Cumulative loss:" | grep -F -v ": 0" > lost_sfo_6.log

cat /var/log/asterisk/full | grep -A30 -F "Got RTCP from" >
rtcp_in.log
Quote:
cat /var/log/asterisk/full | grep -A30 -F "Sent RTCP SR to" >
rtcp_out.log
Quote:

cat rtcp_in.log | grep -A10 -F "Got RTCP from cc.cc.cc." | grep -P
"(Got RTCP|Packets lost so far|Fraction lost)" >
rtcp_in_lattelenet.log
cat rtcp_out.log | grep -A10 -F "Sent RTCP SR to cc.cc.cc." | grep -P
"(Sent RTCP SR to|Fraction lost|Cumulative loss|IA jitter)" >
rtcp_out_lattelenet.log

cat rtcp_out_lattelenet.log | grep -F "Cumulative loss:" | grep -F -v
": 0" > lost_lattelenet.log




-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIQ/C4rxOjjFYWQtoRAgjtAJ9VNBG7tDP1hFd5Vv01kVZ//bSmwQCfWwW7
WIMzhKsSB7DRtznxT1tTLM4=
=J5Ml
-----END PGP SIGNATURE-----

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
mkezys at gmail.com
Guest





PostPosted: Mon Jun 02, 2008 12:00 pm    Post subject: [asterisk-users] RTCP debugs and stats Reply with quote

That?s not one value, but many values together.

Looks like this:

ssrc=358281685;themssrc=1432487772;lp=0;rxjitter=0.000482;rxcount=386;txjitt
er=12593.274200;txcount=0;rlp=6424412;rtt=6683.786029

Look here:

http://www.asteriskguru.com/archives/asterisk-dev-interpreting-rtpaudioqos-s
tatistics-vt99177.html
Regards,
Mindaugas Kezys
http://www.kolmisoft.com

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Olivier
Sent: Monday, June 02, 2008 7:33 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] RTCP debugs and stats


2008/6/2 Mindaugas Kezys <mkezys at gmail.com>:
You can save ${RTPAUDIOQOS} into your userfield which goes to your Realtime
DB.

Regards,
Mindaugas Kezys
http://www.kolmisoft.com
Hi,

Do you know how this single? (?) RTPAUDIOQOS value is computed ?
Is it an average of several RTCP reports ?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services