[SIP Beyond VoIP] TypeError: storage must implement the ISIPSimpleStorage interface

Saúl Ibarra Corretgé saul at ag-projects.com
Fri Dec 13 10:35:25 CET 2013


Hi Jason,

On Dec 13, 2013, at 12:42 AM, Jason Ostrom wrote:

> Hello,
> 
> I'm getting an error of the following with a python script that uses SIP Simple SDK.  Running latest version of SDK:
> 
> "
> File "/usr/lib/python2.7/dist-packages/sipsimple/application.py", line 79, in start
> raise TypeError ("storage must implement the ISIPSimpleStorage interface")
> TypeError:  storage must implement the ISIPSimpleStorage interface
> "
> 
> Been trying to debug this issue, please let me know if any ideas to troubleshoot.  What is missing in config?
> 
> Contacted the developers of this code (https://code.google.com/p/moshimoshi), and they said that it used to work, so it might be newer version of SDK.

Well, their code is from 2011, many things have changed since :-)

> 
> The problem is call to the configuration file in python script:
> "
> self.start(FileBackEnd('config')
> "
> 

That FileBackEnd class needs to implement ISIPSimpleStorage interface, otherwise it won't work. You can use the FileStorage class, checkout the sipclients package, it contains very complete examples.

> This file exists in the working directory and it used to work for the authors.  Something must have changed in SIP Simple SDK?
> 

As I said, many things have changed since. Have a look at sipclients and adjust the code. I haven't looked at it, but it shouldn't take long to port it.


Regards,

--
Saúl Ibarra Corretgé
AG Projects





More information about the SIPBeyondVoIP mailing list