[SIP Beyond VoIP] MSRP Relay do not recognize backends
Saúl Ibarra Corretgé
saul at ag-projects.com
Wed Apr 29 10:35:59 CEST 2015
Do you have the following file in your system? /usr/local/lib/python2.7/dist-packages/msrp/backend/database.py
I just tried it with a fresh checkout and worked.
Cheers,
On 31 Mar 2015, at 15:31, Ozma Of Oz <the.ozma.of.oz at gmail.com> wrote:
> 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!
> _______________________________________________
> SIPBeyondVoIP mailing list
> SIPBeyondVoIP at lists.ag-projects.com
> http://lists.ag-projects.com/mailman/listinfo/sipbeyondvoip
--
Saúl Ibarra Corretgé
AG Projects
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20150429/d2bb09e6/attachment.pgp>
More information about the SIPBeyondVoIP
mailing list