So I am working on a project where I have to be able to make sip calls to a raspberry pi 3 and have it automatically answer any incoming calls. I have been reading this guide: https://wiki.linphone.org/xwiki/wiki/public/view/Linphone/Linphone%20and%20Raspberry%20Pi/. But when trying to run the code I get this error:

Traceback (most recent call last):
  File "linphoneCall.py", line 17, in __init__
    callbacks = linphone.Factory.get().create_core_cbs()
AttributeError: 'module' object has no attribute 'Factory'

If anyone knows how to fix this issue or can recommend me a method of making sip calls through code automatically on the pi, I would appreciate it very much. Thanks

  • Did you name your script 'linphone'? Python cannot handle scripts that have the same name as a module you try to import. Or there could be module version issue. – Dirk Feb 1 at 12:12
  • Python version issue? – MatsK Feb 1 at 18:55
  • I have tried with python version 2.7.13 and I named the script linCall.py so I don't think that should cause any problems with the module. – zbell23 Feb 3 at 1:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.