Unsolved How to connect Risip in Qt
-
Hi,
Did you saw that there's a Qt app already available from the same folks ?
-
I saw. It doesn't compile either. Seems to be the case in Windows.
-
So the backend hasn't been implemented on Windows ?
-
Hi
well there seems not to have that missing file for windows anywayHowever, PJSIP itself (the backbone) have download for windows but the Risip (the Qt wrapper+)
seems to have very little under the platforms/win folder and generally the docs
do not mention Win platform at all. -
Tried on MacOS, too didn't work.
There is an archive class QTelephonyService .
Is there a working analogue? -
@Mikeeeeee
Hi
as far as i know, nothing replaced QTelephonyService .https://www.pjsip.org/ is available for windows but only builds with visual studio as
as a dynamic library (it seems) and must be from the visual studio IDE and not Creator. -
Is it possible to use QTelephonyService somehow?
I don't know how to work in Visual Studio. Can this library be connected to Qt? -
Hi
QTelephonyService is very old and unmaintained, so im not sure it still works.
Yes, any c++ library can be used with Qt, including PJSIP. -
Here man already faced with this and decided to. I have a library in the project folder in the pjsip folder . Please tell me how to adapt this code.
TEMPLATE = app QT += qml quick QMAKE_CXXFLAGS += -std=c++11 -lstdc++ -m32 -O2 -fPIC -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1 CONFIG += c++11 -m32 SOURCES += main.cpp \ message.cpp RESOURCES += qml.qrc include(deployment.pri) HEADERS += \ message.h DEFINES -= UNICODE PKGCONFIG = LIBS += -L$$PWD/../../../pjproject-2.5/pj/pjproject-2.5/pjsip/lib/ \ -lpjsua2-i686-pc-mingw32 \ -lstdc++ \ -lpjsua-i686-pc-mingw32 \ -lpjsip-ua-i686-pc-mingw32 \ -lpjsip-simple-i686-pc-mingw32 \ -lpjsip-i686-pc-mingw32 \ -lpjmedia-codec-i686-pc-mingw32 \ -lpjmedia-i686-pc-mingw32 \ -lpjmedia-videodev-i686-pc-mingw32 \ -lpjmedia-audiodev-i686-pc-mingw32 \ -lpjmedia-i686-pc-mingw32 \ -lpjnath-i686-pc-mingw32 \ -lpjlib-util-i686-pc-mingw32 \ -lsrtp-i686-pc-mingw32 \ -lresample-i686-pc-mingw32 \ -lgsmcodec-i686-pc-mingw32 \ -lspeex-i686-pc-mingw32 \ -lilbccodec-i686-pc-mingw32 \ -lg7221codec-i686-pc-mingw32 \ -lpj-i686-pc-mingw32 \ -lm \ -lwinmm \ -lole32 \ -lws2_32 \ -lwsock32 INCLUDEPATH += $$PWD/../../../pjproject-2.5/pj/pjproject-2.5/pjsip/include \ $$PWD/../../../pjproject-2.5/pj/pjproject-2.5/pjlib/include \ $$PWD/../../../pjproject-2.5/pj/pjproject-2.5/pjlib-util/include \ $$PWD/../../../pjproject-2.5/pj/pjproject-2.5/pjmedia/include \ $$PWD/../../../pjproject-2.5/pj/pjproject-2.5/pjnath/include DEPENDPATH += $$PWD/../../../pjproject-2.5/pj/pjproject-2.5/pjsip/include
-
Hi
As minumum, you must make sure path is correct.
LIBS += -L$$PWD/../../../pjproject-2.5/pj/pjproject-2.5/pjsip/lib/
should be set to how you extract and build the library..He build it with mingw so that seems possible also, besides visual studio.
-
I have a library in the project folder in the pjsip folder .
How do I change the folder path correctly?
Or how to do it with mingw ? -
@Mikeeeeee
I dont know your structure so its hard to say.
You have to change this path to point to where you have all the files
from the build. ( like pjsip-ua-i686-pc etc )
LIBS += -L$$PWD/../../../pjproject-2.5/pj/pjproject-2.5/pjsip/lib/ -
Strange, but all of the lib folder I have is empty. Do I need another version of PJSIP?
-
Maybe you can tell how to run these VoIP projects?
https://github.com/dwatson78/Qt-Asterisk-Desktop
https://github.com/rudilee/AsteriskManager -
@Mikeeeeee
Those are clients so they should just run.
It is for the Asterisk IP PBX system/server so you need such installation to talk to. -
But none of these projects are compiled. You don't know how to fix it?
-
@Mikeeeeee
hi
Nope. You are not showing any error so its impossible to guess at. -
Qt-Asterisk-Desktop-master generates an error when compiling: :No rule to make target 'phonon/seekslider.h', needed by 'tmp/ui/ui_admvoicemailwidget.h'. Stop.
Asterisk Manager-master generates an error when compiling:
error: Owner/Downloads/AsteriskManager-master/test/": No such file or directory
error: Owner/Downloads/AsteriskManager-master/test/": No such file or directory -
@Mikeeeeee
Sorry. i dont know.
i download the zip file and it just compiled. no errros.
With visual studio compiler.
What are you using ? -
MinGW 32
MSVC 2019 32 and 64 bit also give an error