LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-15-2013, 05:42 AM   #1
Hakan
LQ Newbie
 
Registered: Aug 2013
Posts: 1

Rep: Reputation: Disabled
PJSUA SIP module


Hi everyone,

I'm not sure if this is the correct place to post my issue but i'll give it a try anyway.

I'm trying to build and install the pjsua module (from the pjsip library) but having some problems with it. I followed the tutorial from the official pjsip site exactly like this;

Code:
$ tar jxf pjproject-2.1.tar.bz2
$ cd pjproject-2.1
$ .configure && make dep && make
$ cd pjsip-apps/src/python
$ sudo make
System setup;

centos 6.4 - kernel linux 2.6.32-358.14.1.el6.i686
python 2.6.6

All necessary development tools are installed;

Code:
$ yum group install 'Development Tools'
$ yum install python-devel

It seems to build successfully with no errors (few warnings though).

When i do;

Code:
$ python
> import pjsua
...

Code:
ImportError: No module named _pjsua
But if i enter the py_pjsua folder and 'make' there, it creates the pjsua module but the following happens when i import;

Code:
...
identitas Endpoint :<py_pjsua.Pjsip_Endpoint object at 0xb7721090>
identitas Media Endpoint :<py_pjsua.Pjmedia_Endpt object at 0xb7721080>
identitas pool factory :<py_pjsua.Pj_Pool_Factory object at 0xb77210a0>
py status after 3 second of blocking wait :0
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "pjsua.py", line 71, in <module>
    stunc = py_pjsua.stun_config_default();
AttributeError: 'module' object has no attribute 'stun_config_default'

I hope someone can help me with this issue.

/Hakan
 
Old 08-15-2013, 11:41 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

The file "INSTALL.txt", line 29 : -= PYTHON MODULE =-
Line 36-37 : $ cd pjsip-apps/src/py_pjsua ; # python setup.py install


... Then you can import "py_pjsua" ( Not 'pjsua' ):
$ python
>>> import py_pjsua
>>>


-
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Latest Voipswitch 2.0.745+webportal+sip Tunnel+sip Dialer(costumize)+pc2phone+web/ani solution4voip Linux - Software 1 02-16-2007 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration