testing opensips-cli

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

testing opensips-cli

Johan De Clercq

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/scripts/opensips-cli", line 9, in <module>

    run_console()

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

    main.main()

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

    sys.exit(shell.cmdloop())

  File "/usr/local/lib/python3.5/dist-packages/opensipscli-0.1-py3.5.egg/opensipscli/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/opensipscli/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/opensipscli/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/opensipscli/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/opensipscli/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.

 

 

cid:F3100D46-F00D-4610-87ED-3E91DA790A82

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

Tel +3256980990 – GSM +32478720104

 


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users