Re: pjsua -- non-interactive mode for quality monitoring?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I really do think you didn't make a call at all.
You didn't attach a wav file nor did you supply a tone generation at the commandline.
Also keep in mind, that your receipient has CONFIRM the call and then the media channel can transmit the audio.
I programmed a call loop plugin for our VOIP infratructure sytem which is using a berofix GSM->TIP gateway for callin.
The stats are for media quality, but will show 0 when no RDP session was established !

Best regards
Franz


________________________________________
Von: pjsip <pjsip-bounces@xxxxxxxxxxxxxxx> im Auftrag von Mateusz Viste <mateusz@xxxxxxxx>
Gesendet: Donnerstag, 06. Februar 2020 16:49
An: pjsip@xxxxxxxxxxxxxxx
Betreff:  pjsua -- non-interactive mode for quality monitoring?

Hello list,

I am fiddling with the pjsua tool from pjsip 2.9, because I'd like to
use it to monitor the quality of my VoIP provider at home. I am able to
run a call all right, but pjsua does not exit once the call is
terminated - I have to press 'q' to quit the interactive shell.

Is there any trick I could use so pjsua performs the call, and exit once
the call ends? This is the command line I use now:

./pjsua-armv7l-unknown-linux-gnueabihf
--id='sip:mylogin@xxxxxxxxxxxxxxx' --realm='*' --username='mylogin'
--password='xxxxxx' --disable-stun --no-tcp --null-audio --no-vad
--max-calls=1 --duration=10 'sip:123@xxxxxxxxxxxxxxx' --no-color

Additionally, I'd need to get some stats from it. Currently I am
grepping the logs that pjsua outputs, to extract some data from this:

  RX pt=0, last update:00h:00m:03.841s ago
     total 336pkt 53.7KB (67.2KB +IP hdr) @avg=46.7Kbps/58.4Kbps
     pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
           (msec)    min     avg     max     last    dev
     loss period:   0.000   0.000   0.000   0.000   0.000
     jitter     :   0.000   0.119   0.750   0.125   0.151
  TX pt=0, ptime=20, last update:never
     total 460pkt 73.6KB (92.0KB +IP hdr) @avg=64.0Kbps/80.0Kbps
     pkt loss=0 (0.0%), dup=0 (0.0%), reorder=0 (0.0%)
           (msec)    min     avg     max     last    dev
     loss period:   0.000   0.000   0.000   0.000   0.000
     jitter     :   0.000   0.000   0.000   0.000   0.000
  RTT msec      :   0.000   0.000   0.000   0.000   0.000

...but maybe there is some easier way? I noticed that 'RTT msec' always
shows 0.000, which is kind of strange. Any idea?

best,
Mateusz

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux