[SIP Beyond VoIP] MSRP Relay do not recognize backends

Ozma Of Oz the.ozma.of.oz at gmail.com
Tue Mar 31 15:31:49 CEST 2015


Hello. I have installed the msrprelay sources using  darcs, installed it it
using "python setup.py install". I also installed the python-gnutls,
python-sqlobject, python-mysqldb , python-application, python-twisted. The
problem is, if i do uncomment the option "backend' in the config.ini, i get:

msrprelay --no-fork --config-file=./config.ini

Starting MSRP Relay 1.0.8
fatal error: failed to create MSRP Relay: No module named database
fatal error: log_level = debug
Traceback (most recent call last):
  File "/usr/local/bin/msrprelay", line 63, in <module>
    relay = Relay()
  File "/usr/lib/python2.7/dist-packages/application/python/types.py", line
37, in __call__
    return cls._instance_creator(*args, **kw)
  File "<string>", line 1, in __init__
  File "/usr/lib/python2.7/dist-packages/application/python/types.py", line
31, in instance_creator
    cls._instances[key] = super(Singleton, cls).__call__(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/msrp/relay.py", line 71, in
__init__
    self._do_init()
  File "/usr/local/lib/python2.7/dist-packages/msrp/relay.py", line 76, in
_do_init
    self.backend = __import__("msrp.backend.%s" %
RelayConfig.backend.lower(), globals(), locals(), [""]).Checker()
ImportError: No module named database
log_level = debug


The config file look like this:


[Relay]


certificate = ./tls/msrprelay.crt


key = ./tls/msrprelay.key


address = 0.0.0.0:2855


; allow_other_methods = No


; debug_notls = No


 log_failed_auth = Yes
.
; max_auth_attempts = 3


backend = database

log_level = DEBUG

[Database]

;here goes my db settings etc

If i comment the line 'backend = database', the msrprelay starts fine, but
it seem not to use the database backend by default. If i do set backend =
memory, i get the same error, just in the end:

RelayConfig.backend.lower(), globals(), locals(), [""]).Checker()
ImportError: No module named memory
log_level = debug

What can be wrong, please help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20150331/fb984f42/attachment.html>


More information about the SIPBeyondVoIP mailing list