Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Missing remote host parameter. This scenario requires it.\n' " #45

Closed
access2praveen opened this issue Oct 8, 2018 · 4 comments

Comments

@access2praveen
Copy link

access2praveen commented Oct 8, 2018

I am encountering below error when i am trying to run sipp scenario file through pysipp

root@voiceqa-desktop:/opt/test# python3 sipp.py ('10.204.66.84', 5080) stderr for 'uac_AMR_BW' @ ('0.0.0.0', 34607) b'2018-10-08\t16:31:39.337407\t1538976699.337407: Missing remote host parameter. This scenario requires it.\n 'screen_file' contents for 'uac_AMR_BW' @ ('0.0.0.0', 34607): Traceback (most recent call last): File "sipp.py", line 8, in <module> scen() File "/usr/local/lib/python3.5/dist-packages/pysipp/agent.py", line 413, in __call__ raise_exc=raise_exc, **kwargs File "/usr/local/lib/python3.5/dist-packages/pluggy.py", line 724, in __call__ return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs) File "/usr/local/lib/python3.5/dist-packages/pluggy.py", line 338, in _hookexec return self._inner_hookexec(hook, methods, kwargs) File "/usr/local/lib/python3.5/dist-packages/pluggy.py", line 333, in <lambda> _MultiCall(methods, kwargs, hook.spec_opts).execute() File "/usr/local/lib/python3.5/dist-packages/pluggy.py", line 596, in execute res = hook_impl.function(*args) File "/usr/local/lib/python3.5/dist-packages/pysipp/__init__.py", line 250, in pysipp_run_protocol finalize(cmds2procs, raise_exc=raise_exc) File "/usr/local/lib/python3.5/dist-packages/pysipp/__init__.py", line 228, in finalize raise SIPpFailure(msg) pysipp.SIPpFailure: Some agents failed 'uac_AMR_BW' with exit code 255 -> Command or syntax error: check stderr output

My Directory has only one scenario file

`root@voiceqa-desktop:/opt/test# ls /home/voiceqa/sipp-3.5.1/AMR_Testing/AMR-WB/

               uac_40sec_harvard.amr  uac_AMR_BW.xml  uac_Harvard_AMR.amr`

My python script looks as below

import pysipp uas = pysipp.server(srcaddr=('10.204.66.84', 5080)) print(uas.srcaddr) uac = pysipp.client(destaddr=uas.srcaddr) #scen = pysipp.scenario() scen = pysipp.scenario(dirpath='/home/voiceqa/sipp-3.5.1/AMR_Testing/AMR-WB',proxyaddr=('10.204.66.84', 5080)) #print(scen.cmditems()) scen() pysipp.log_to_stderr('DEBUG')

Kindly let me know how to fix this

Thanks
Praveen

@access2praveen
Copy link
Author

access2praveen commented Oct 29, 2018

I have tried with latest version of pysipp as well , but it didnt resolve my problem , can you please help me how to iterate over scenario files , I have managed to run one instance of sipp with single scenario file with below code

import pysipp #pysipp.log_to_stderr('DEBUG') uac = pysipp.client(destaddr=('10.204.66.84',5080)) uac.local_host='10.204.66.30' uac.local_port='5030' uac.scen_file = '/home/voiceqa/sipp-3.5.1/AMR_Testing/AMR-WB/uac_AMR_BW.xml' uac()

@goodboy
Copy link
Member

goodboy commented Oct 31, 2018

I have tried with latest version of pysipp as well

@access2praveen can you try the branch from #46 though? Latest master doesn't have these changes merged in yet.

@goodboy
Copy link
Member

goodboy commented May 24, 2019

ping @access2praveen did this end up solving your issue. Trying to get in fixes for an alpha release as per #42!

@goodboy goodboy closed this as completed Jul 4, 2019
@goodboy
Copy link
Member

goodboy commented Jul 4, 2019

Got no feedback on this so closing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants