From ff6ef74e2b8885c018fe41fe7fa7a5eb45970508 Mon Sep 17 00:00:00 2001 From: Konstantinos Tsakiltzidis Date: Wed, 26 Jun 2019 18:19:04 +0300 Subject: [PATCH 1/4] Add `auth_username` in command sipp_spec --- pysipp/command.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pysipp/command.py b/pysipp/command.py index 417bc6e..e9d4d35 100644 --- a/pysipp/command.py +++ b/pysipp/command.py @@ -212,6 +212,7 @@ def todict(self): # SIP vars '-cid_str {cid_str} ', '-base_cseq {base_cseq} ', + '-au {auth_username}', '-ap {auth_password} ', # load settings '-r {rate} ', From 5f6a05dbce669d42dcb56e2b9c7f4c855abfa2c8 Mon Sep 17 00:00:00 2001 From: Konstantinos Tsakiltzidis Date: Wed, 3 Jul 2019 11:46:21 +0300 Subject: [PATCH 2/4] Fix missing space for `auth_username` in command sipp_spec --- pysipp/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysipp/command.py b/pysipp/command.py index e9d4d35..6b87066 100644 --- a/pysipp/command.py +++ b/pysipp/command.py @@ -212,7 +212,7 @@ def todict(self): # SIP vars '-cid_str {cid_str} ', '-base_cseq {base_cseq} ', - '-au {auth_username}', + '-au {auth_username} ', '-ap {auth_password} ', # load settings '-r {rate} ', From 436431c62b7112f7a3e258a715ff768423a24b48 Mon Sep 17 00:00:00 2001 From: Konstantinos Tsakiltzidis Date: Wed, 3 Jul 2019 12:04:44 +0300 Subject: [PATCH 3/4] Add Authentication section in README --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index d1860ad..20cc728 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,15 @@ uas(block=False) # returns a `pysipp.launch.PopenRunner` instance by default uac() # run client synchronously ``` +## Authentication +When using the `[authentication]` (sipp keyword)[https://sipp.readthedocs.io/en/latest/scenarios/keywords.html#authentication] +in scenarios, providing the credentials can be done with the +`auth_username` and `auth_password` arguments, for example: + +```python +pysipp.client(auth_username='sipp', auth_password='sipp-pass') +``` + ## Multiple Agents For multi-UA orchestrations we can use a `pysipp.scenario`. The scenario from above is the default agent configuration: From 7ade10cb11dfd0a220612e6bd09921a8f2fd3510 Mon Sep 17 00:00:00 2001 From: Konstantinos Tsakiltzidis Date: Wed, 3 Jul 2019 12:06:14 +0300 Subject: [PATCH 4/4] Fix Authentication link in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 20cc728..1494dab 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ uac() # run client synchronously ``` ## Authentication -When using the `[authentication]` (sipp keyword)[https://sipp.readthedocs.io/en/latest/scenarios/keywords.html#authentication] +When using the `[authentication]` [sipp keyword](https://sipp.readthedocs.io/en/latest/scenarios/keywords.html#authentication) in scenarios, providing the credentials can be done with the `auth_username` and `auth_password` arguments, for example: