diff options
Diffstat (limited to 'pjsip-apps/src/test-pjsua/scripts-pesq')
16 files changed, 137 insertions, 22 deletions
diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/100_defaults.py b/pjsip-apps/src/test-pjsua/scripts-pesq/100_defaults.py index ffda20f0..32454d76 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/100_defaults.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/100_defaults.py @@ -12,6 +12,6 @@ test_param = TestParam( "PESQ defaults pjsua settings", [ InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --play-file wavs/input.16.wav --auto-play-hangup"), - InstanceParam("UA2", ADD_PARAM + " --max-calls=1 --rec-file wavs/tmp.16.wav --clock-rate 16000 --auto-answer 200 --auto-rec") + InstanceParam("UA2", "--null-audio --max-calls=1 --rec-file wavs/tmp.16.wav --clock-rate 16000 --auto-answer 200 --auto-rec") ] ) diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/101_defaults.py b/pjsip-apps/src/test-pjsua/scripts-pesq/101_defaults.py new file mode 100644 index 00000000..16c9eff0 --- /dev/null +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/101_defaults.py @@ -0,0 +1,17 @@ +# $Id$ +# +from inc_cfg import * + +# Call with default pjsua settings +test_param = TestParam( + "PESQ defaults pjsua settings (RX side uses snd dev)", + [ + InstanceParam("UA1", "--max-calls=1 --play-file wavs/input.16.wav --auto-play-hangup --null-audio"), + InstanceParam("UA2", "--max-calls=1 --rec-file wavs/tmp.16.wav --clock-rate 16000 --auto-answer 200 --auto-rec") + ] + ) + + +if (HAS_SND_DEV == 0): + test_param.skip = True + diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711a.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711a.py index bccced60..3360ba9e 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711a.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711a.py @@ -1,18 +1,17 @@ # $Id$ # from inc_cfg import * -from config_site import * ADD_PARAM = "" if (HAS_SND_DEV == 0): ADD_PARAM += "--null-audio" -# Simple call +# Call with PCMA codec test_param = TestParam( "PESQ codec PCMA", [ InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec pcma --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup"), - InstanceParam("UA2", ADD_PARAM + " --max-calls=1 --add-codec pcma --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA2", "--null-audio --max-calls=1 --add-codec pcma --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") ] ) diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711u.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711u.py index d4955d88..c50dc4fe 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711u.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g711u.py @@ -1,18 +1,17 @@ # $Id$ # from inc_cfg import * -from config_site import * ADD_PARAM = "" if (HAS_SND_DEV == 0): ADD_PARAM += "--null-audio" -# Simple call +# Call with PCMU codec test_param = TestParam( "PESQ codec PCMU", [ InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec pcmu --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup"), - InstanceParam("UA2", ADD_PARAM + " --max-calls=1 --add-codec pcmu --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA2", "--null-sound --max-calls=1 --add-codec pcmu --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") ] ) diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g722.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g722.py index e08d5235..23f29c7e 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g722.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_g722.py @@ -1,18 +1,17 @@ # $Id$ # from inc_cfg import * -from config_site import * ADD_PARAM = "" if (HAS_SND_DEV == 0): ADD_PARAM += "--null-audio" -# Simple call +# Call with G722 codec test_param = TestParam( "PESQ codec G722", [ InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec g722 --clock-rate 16000 --play-file wavs/input.16.wav --auto-play-hangup"), - InstanceParam("UA2", ADD_PARAM + " --max-calls=1 --add-codec g722 --clock-rate 16000 --rec-file wavs/tmp.16.wav --auto-answer 200 --auto-rec") + InstanceParam("UA2", "--null-sound --max-calls=1 --add-codec g722 --clock-rate 16000 --rec-file wavs/tmp.16.wav --auto-answer 200 --auto-rec") ] ) diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_gsm.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_gsm.py index 9cf38ff8..8aea1ac2 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_gsm.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_gsm.py @@ -1,18 +1,17 @@ # $Id$ # from inc_cfg import * -from config_site import * ADD_PARAM = "" if (HAS_SND_DEV == 0): ADD_PARAM += "--null-audio" -# Simple call +# Call with GSM codec test_param = TestParam( "PESQ codec GSM", [ InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec gsm --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup"), - InstanceParam("UA2", ADD_PARAM + " --max-calls=1 --add-codec gsm --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA2", "--null-sound --max-calls=1 --add-codec gsm --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") ] ) diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_ilbc.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_ilbc.py index 596916b9..91ac0ae9 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_ilbc.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_ilbc.py @@ -1,18 +1,17 @@ # $Id$ # from inc_cfg import * -from config_site import * ADD_PARAM = "" if (HAS_SND_DEV == 0): ADD_PARAM += "--null-audio" -# Simple call +# Call with iLBC codec test_param = TestParam( "PESQ codec iLBC", [ InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec ilbc --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup"), - InstanceParam("UA2", ADD_PARAM + " --max-calls=1 --add-codec ilbc --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA2", "--null-sound --max-calls=1 --add-codec ilbc --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") ] ) diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_16000.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_16000.py index c169d5f9..04e91521 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_16000.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_16000.py @@ -1,18 +1,17 @@ # $Id$ # from inc_cfg import * -from config_site import * ADD_PARAM = "" if (HAS_SND_DEV == 0): ADD_PARAM += "--null-audio" -# Simple call +# Call with Speex/16000 codec test_param = TestParam( "PESQ codec Speex WB", [ InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --clock-rate 16000 --add-codec speex/16000 --play-file wavs/input.16.wav --auto-play-hangup"), - InstanceParam("UA2", ADD_PARAM + " --max-calls=1 --clock-rate 16000 --add-codec speex/16000 --rec-file wavs/tmp.16.wav --auto-answer 200 --auto-rec") + InstanceParam("UA2", "--null-sound --max-calls=1 --clock-rate 16000 --add-codec speex/16000 --rec-file wavs/tmp.16.wav --auto-answer 200 --auto-rec") ] ) diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_8000.py b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_8000.py index 5a2606f1..3d89bbd1 100644 --- a/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_8000.py +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/200_codec_speex_8000.py @@ -1,18 +1,17 @@ # $Id$ # from inc_cfg import * -from config_site import * ADD_PARAM = "" if (HAS_SND_DEV == 0): ADD_PARAM += "--null-audio" -# Simple call +# Call with Speex/8000 codec test_param = TestParam( "PESQ codec Speex NB", [ InstanceParam("UA1", ADD_PARAM + " --max-calls=1 --add-codec speex/8000 --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup"), - InstanceParam("UA2", ADD_PARAM + " --max-calls=1 --add-codec speex/8000 --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + InstanceParam("UA2", "--null-sound --max-calls=1 --add-codec speex/8000 --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") ] ) diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711a.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711a.py new file mode 100644 index 00000000..7b71b812 --- /dev/null +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711a.py @@ -0,0 +1,15 @@ +# $Id$ +# +from inc_cfg import * + +# Call with PCMA codec +test_param = TestParam( + "PESQ codec PCMA (RX side uses snd dev)", + [ + InstanceParam("UA1", "--max-calls=1 --add-codec pcma --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec pcma --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + ] + ) + +if (HAS_SND_DEV == 0): + test_param.skip = True diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711u.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711u.py new file mode 100644 index 00000000..d73ef74c --- /dev/null +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g711u.py @@ -0,0 +1,15 @@ +# $Id$ +# +from inc_cfg import * + +# Call with PCMU codec +test_param = TestParam( + "PESQ codec PCMU (RX side uses snd dev)", + [ + InstanceParam("UA1", "--max-calls=1 --add-codec pcmu --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec pcmu --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + ] + ) + +if (HAS_SND_DEV == 0): + test_param.skip = True diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g722.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g722.py new file mode 100644 index 00000000..33be2965 --- /dev/null +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_g722.py @@ -0,0 +1,15 @@ +# $Id$ +# +from inc_cfg import * + +# Call with G722 codec +test_param = TestParam( + "PESQ codec G722 (RX side uses snd dev)", + [ + InstanceParam("UA1", "--max-calls=1 --add-codec g722 --clock-rate 16000 --play-file wavs/input.16.wav --auto-play-hangup --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec g722 --clock-rate 16000 --rec-file wavs/tmp.16.wav --auto-answer 200 --auto-rec") + ] + ) + +if (HAS_SND_DEV == 0): + test_param.skip = True diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_gsm.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_gsm.py new file mode 100644 index 00000000..922183ac --- /dev/null +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_gsm.py @@ -0,0 +1,15 @@ +# $Id$ +# +from inc_cfg import * + +# Call with GSM codec +test_param = TestParam( + "PESQ codec GSM (RX side uses snd dev)", + [ + InstanceParam("UA1", "--max-calls=1 --add-codec gsm --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec gsm --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + ] + ) + +if (HAS_SND_DEV == 0): + test_param.skip = True diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_ilbc.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_ilbc.py new file mode 100644 index 00000000..ad61f427 --- /dev/null +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_ilbc.py @@ -0,0 +1,15 @@ +# $Id$ +# +from inc_cfg import * + +# Call with iLBC codec +test_param = TestParam( + "PESQ codec iLBC (RX side uses snd dev)", + [ + InstanceParam("UA1", "--max-calls=1 --add-codec ilbc --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec ilbc --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + ] + ) + +if (HAS_SND_DEV == 0): + test_param.skip = True diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_16000.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_16000.py new file mode 100644 index 00000000..32543ccc --- /dev/null +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_16000.py @@ -0,0 +1,15 @@ +# $Id$ +# +from inc_cfg import * + +# Call with Speex/16000 codec +test_param = TestParam( + "PESQ codec Speex WB (RX side uses snd dev)", + [ + InstanceParam("UA1", "--max-calls=1 --clock-rate 16000 --add-codec speex/16000 --play-file wavs/input.16.wav --auto-play-hangup --null-audio"), + InstanceParam("UA2", "--max-calls=1 --clock-rate 16000 --add-codec speex/16000 --rec-file wavs/tmp.16.wav --auto-answer 200 --auto-rec") + ] + ) + +if (HAS_SND_DEV == 0): + test_param.skip = True diff --git a/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_8000.py b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_8000.py new file mode 100644 index 00000000..e0049c8a --- /dev/null +++ b/pjsip-apps/src/test-pjsua/scripts-pesq/201_codec_speex_8000.py @@ -0,0 +1,15 @@ +# $Id$ +# +from inc_cfg import * + +# Call with Speex/8000 codec +test_param = TestParam( + "PESQ codec Speex NB (RX side uses snd dev)", + [ + InstanceParam("UA1", "--max-calls=1 --add-codec speex/8000 --clock-rate 8000 --play-file wavs/input.8.wav --auto-play-hangup --null-audio"), + InstanceParam("UA2", "--max-calls=1 --add-codec speex/8000 --clock-rate 8000 --rec-file wavs/tmp.8.wav --auto-answer 200 --auto-rec") + ] + ) + +if (HAS_SND_DEV == 0): + test_param.skip = True |