[OpenSIPS-Users] testing opensips-cli

johan de clercq johan at democon.be
Wed Jul 3 06:15:14 EDT 2019


Hello, reloading the routes from drouting seems to fail :   It does not end,
after issuing a keyboard interrupt, I have below output:

 

opensips-cli -x mi dr_reload

^CTraceback (most recent call last):

  File "/usr/local/bin/opensips-cli", line 4, in <module>

    __import__('pkg_resources').run_script('opensipscli==0.1',
'opensips-cli')

  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py",
line 666, in run_script

    self.require(requires)[0].run_script(script_name, ns)

  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py",
line 1453, in run_script

    exec(code, namespace, namespace)

  File
"/usr/local/lib/python3.5/dist-packages/opensipscli-0.1-py3.5.egg/EGG-INFO/s
cripts/opensips-cli", line 9, in <module>

    run_console()

  File
"/usr/local/lib/python3.5/dist-packages/opensipscli-0.1-py3.5.egg/EGG-INFO/s
cripts/opensips-cli", line 6, in run_console

    main.main()

  File
"/usr/local/lib/python3.5/dist-packages/opensipscli-0.1-py3.5.egg/opensipscl
i/main.py", line 78, in main

    sys.exit(shell.cmdloop())

  File
"/usr/local/lib/python3.5/dist-packages/opensipscli-0.1-py3.5.egg/opensipscl
i/cli.py", line 199, in cmdloop

    ret = self.run_command(self.command[0], command, params)

  File
"/usr/local/lib/python3.5/dist-packages/opensipscli-0.1-py3.5.egg/opensipscl
i/cli.py", line 293, in run_command

    return mod[0].__invoke__(cmd, params)

  File
"/usr/local/lib/python3.5/dist-packages/opensipscli-0.1-py3.5.egg/opensipscl
i/modules/mi.py", line 126, in __invoke__

    res = comm.execute(cmd, params)

  File
"/usr/local/lib/python3.5/dist-packages/opensipscli-0.1-py3.5.egg/opensipscl
i/comm.py", line 40, in execute

    ret = comm_handler.execute(cmd, params)

  File
"/usr/local/lib/python3.5/dist-packages/opensipscli-0.1-py3.5.egg/opensipscl
i/communication/http.py", line 32, in execute

    replycmd = urllib.request.urlopen(request).read().decode()

  File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen

    return opener.open(url, data, timeout)

  File "/usr/lib/python3.5/urllib/request.py", line 466, in open

    response = self._open(req, data)

  File "/usr/lib/python3.5/urllib/request.py", line 484, in _open

    '_open', req)

  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain

    result = func(*args)

  File "/usr/lib/python3.5/urllib/request.py", line 1282, in http_open

    return self.do_open(http.client.HTTPConnection, req)

  File "/usr/lib/python3.5/urllib/request.py", line 1257, in do_open

    r = h.getresponse()

  File "/usr/lib/python3.5/http/client.py", line 1198, in getresponse

    response.begin()

  File "/usr/lib/python3.5/http/client.py", line 297, in begin

    version, status, reason = self._read_status()

  File "/usr/lib/python3.5/http/client.py", line 258, in _read_status

    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")

  File "/usr/lib/python3.5/socket.py", line 576, in readinto

    return self._sock.recv_into(b)

KeyboardInterrupt

 

Please let me know if anything else is needed. 

 

 



Johan De Clercq, Managing Director
Democon bvba - Ooigemstraat 41 - 8780 Oostrozebeke

Tel +3256980990 - GSM +32478720104

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190703/e1ec29e8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 15602 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20190703/e1ec29e8/attachment-0001.png>


More information about the Users mailing list