irontec / bbs Goto Github PK
View Code? Open in Web Editor NEWBlack Box SIP Tester
License: GNU General Public License v3.0
Black Box SIP Tester
License: GNU General Public License v3.0
Hello there,
thanks for sharing bbs with the community.
We're getting this error trying to implement bbs in our Centos 7 server with Asterisk 16:
Traceback (most recent call last): File "/usr/bin/bbs", line 9, in <module> load_entry_point('bbs==0.0.1', 'console_scripts', 'bbs')() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point return ep.load() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load entry = __import__(self.module_name, globals(),globals(), ['__name__']) File "build/bdist.linux-x86_64/egg/bbs/main.py", line 43, in <module> File "build/bdist.linux-x86_64/egg/bbs/pjlib.py", line 19, in <module> ImportError: No module named pjsua
Are we doing smth wrong?
Thanks for your help
Richi
From what I understood (apologize me if I am wrong), bbs starts UAs as OS processes with the same IP address and randomly assigned ports. Is there a way (having different interfaces) to assign specific IP address and ports to UAs?
What I want to achieve is to run all UAs in the same machine but with different IP addresses (different networks) and same port.
Thanks.
Since python2 is deprecated, most of the packages stopped support of python2.
There is someone created the pjsua's python3 wrapper.
Should we try to upgrade this project to python3?
I think this is an excellent repo, but it needed to adapt current python3 environment.
If the upgrade is okay, I would be glad to do the python3 translation.
Hi. I am getting the error below when trying to use bbs:
$ bbs -c examples/simple.yaml -e examples/multiple/environment.yaml -vvv -k -o results.xml
11:40:51.722 os_core_unix.c !pjlib 2.5.5 for POSIX initialized
11:40:51.722 sip_endpoint.c .Creating endpoint instance...
11:40:51.722 pjlib .select() I/O Queue created (0xb869d0)
11:40:51.722 sip_endpoint.c .Module "mod-msg-print" registered
11:40:51.722 sip_transport. .Transport manager created.
11:40:51.722 pjsua_core.c .PJSUA state changed: NULL --> CREATED
WARNING: no real random source present!
11:40:51.727 pjsua_core.c .pjsua version 2.5.5 for Linux-3.10.3.94/x86_64/glibc-2.17 initialized
11:40:51.727 pjsua_core.c Error creating transport: Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060]
Exception: Object: Lib, operation=create_transport(), error=Unknown error 171060
=============== call from alice to bob (simple.yaml) =======================
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 765, in run
self.__target(*self.__args, **self.__kwargs)
File "build/bdist.linux-x86_64/egg/bbs/session.py", line 97, in run
Lib.instance().thread_register(("thread_%d" % self.thread.ident))
AttributeError: 'NoneType' object has no attribute 'thread_register'
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 812, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 765, in run
self.__target(*self.__args, **self.__kwargs)
File "build/bdist.linux-x86_64/egg/bbs/session.py", line 97, in run
Lib.instance().thread_register(("thread_%d" % self.thread.ident))
AttributeError: 'NoneType' object has no attribute 'thread_register'
Scenario has failed [20 timeout reached]
Scenario has failed
Can you help me find out why?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.