Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to connect Risip in Qt
Forum Updated to NodeBB v4.3 + New Features

How to connect Risip in Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
52 Posts 6 Posters 8.3k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Mikeeeeee

    Tried on MacOS, too didn't work.
    There is an archive class QTelephonyService .
    Is there a working analogue?

    mrjjM Offline
    mrjjM Offline
    mrjj
    Lifetime Qt Champion
    wrote on last edited by
    #11

    @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.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mikeeeeee
      wrote on last edited by
      #12

      Is it possible to use QTelephonyService somehow?
      I don't know how to work in Visual Studio. Can this library be connected to Qt?

      mrjjM 1 Reply Last reply
      0
      • M Mikeeeeee

        Is it possible to use QTelephonyService somehow?
        I don't know how to work in Visual Studio. Can this library be connected to Qt?

        mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #13

        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.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mikeeeeee
          wrote on last edited by
          #14

          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
          
          
          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by mrjj
            #15

            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.

            1 Reply Last reply
            1
            • M Offline
              M Offline
              Mikeeeeee
              wrote on last edited by
              #16

              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 ?

              mrjjM 1 Reply Last reply
              0
              • M Mikeeeeee

                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 ?

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by mrjj
                #17

                @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/

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Mikeeeeee
                  wrote on last edited by
                  #18

                  Strange, but all of the lib folder I have is empty. Do I need another version of PJSIP?

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Mikeeeeee
                    wrote on last edited by
                    #19

                    Maybe you can tell how to run these VoIP projects?
                    https://github.com/dwatson78/Qt-Asterisk-Desktop
                    https://github.com/rudilee/AsteriskManager

                    mrjjM 1 Reply Last reply
                    0
                    • M Mikeeeeee

                      Maybe you can tell how to run these VoIP projects?
                      https://github.com/dwatson78/Qt-Asterisk-Desktop
                      https://github.com/rudilee/AsteriskManager

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #20

                      @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.

                      1 Reply Last reply
                      2
                      • M Offline
                        M Offline
                        Mikeeeeee
                        wrote on last edited by
                        #21

                        But none of these projects are compiled. You don't know how to fix it?

                        mrjjM 1 Reply Last reply
                        0
                        • M Mikeeeeee

                          But none of these projects are compiled. You don't know how to fix it?

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on last edited by
                          #22

                          @Mikeeeeee
                          hi
                          Nope. You are not showing any error so its impossible to guess at.

                          1 Reply Last reply
                          0
                          • M Offline
                            M Offline
                            Mikeeeeee
                            wrote on last edited by
                            #23

                            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

                            mrjjM 1 Reply Last reply
                            0
                            • M Mikeeeeee

                              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

                              mrjjM Offline
                              mrjjM Offline
                              mrjj
                              Lifetime Qt Champion
                              wrote on last edited by
                              #24

                              @Mikeeeeee
                              Sorry. i dont know.
                              i download the zip file and it just compiled. no errros.
                              With visual studio compiler.
                              What are you using ?

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                Mikeeeeee
                                wrote on last edited by Mikeeeeee
                                #25

                                MinGW 32
                                MSVC 2019 32 and 64 bit also give an error

                                1 Reply Last reply
                                0
                                • M Offline
                                  M Offline
                                  Mikeeeeee
                                  wrote on last edited by
                                  #26

                                  Do you know why the same compiler might not compile the project?
                                  Maybe You know how to connect this:
                                  https://github.com/qTox/qTox
                                  [https://github.com/tychosoft/sipwitchqt](link url)

                                  jsulmJ 1 Reply Last reply
                                  0
                                  • M Mikeeeeee

                                    Do you know why the same compiler might not compile the project?
                                    Maybe You know how to connect this:
                                    https://github.com/qTox/qTox
                                    [https://github.com/tychosoft/sipwitchqt](link url)

                                    jsulmJ Offline
                                    jsulmJ Offline
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #27

                                    @Mikeeeeee said in How to connect Risip in Qt:

                                    Do you know why the same compiler might not compile the project?

                                    No, you forgot to mention what problems you face when building...

                                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                                    1 Reply Last reply
                                    0
                                    • M Offline
                                      M Offline
                                      Mikeeeeee
                                      wrote on last edited by Mikeeeeee
                                      #28

                                      Maybe it's the debugger, I only have these:!
                                      0_1560427300816_1.png
                                      error js AsteriskManager-master:: No rule to make target 'C:/Users/New Owner/Downloads/AsteriskManager-master/build-test-Desktop_Qt_5_12_3_MinGW_64_bit-Debug/../src/debug/libasteriskmanager.a', needed by 'debug/tst_loginactiontest.exe'. Stop.
                                      error of Qt-Asterisk-Desktop-master: dependent 'phonon\seekslider.h' does not exist.
                                      error qt-asterisk-code-r100 : Unknown module(s) in QT: webkit
                                      errors of metasec: C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                                      C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                                      C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                                      C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                                      C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."

                                      jsulmJ JKSHJ 2 Replies Last reply
                                      0
                                      • M Mikeeeeee

                                        Maybe it's the debugger, I only have these:!
                                        0_1560427300816_1.png
                                        error js AsteriskManager-master:: No rule to make target 'C:/Users/New Owner/Downloads/AsteriskManager-master/build-test-Desktop_Qt_5_12_3_MinGW_64_bit-Debug/../src/debug/libasteriskmanager.a', needed by 'debug/tst_loginactiontest.exe'. Stop.
                                        error of Qt-Asterisk-Desktop-master: dependent 'phonon\seekslider.h' does not exist.
                                        error qt-asterisk-code-r100 : Unknown module(s) in QT: webkit
                                        errors of metasec: C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                                        C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                                        C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                                        C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."
                                        C:\Users\New Owner\Downloads\MetaVoIP1\pjproject-2.4\pjlib\include\pj\config.h:278: error: C1189: #error: "Please specify target machine."

                                        jsulmJ Offline
                                        jsulmJ Offline
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #29

                                        @Mikeeeeee Selecting GDB when using Microsoft compiler is not going to work.
                                        You need to install "Debugging Tools for Windows" as described here: https://doc.qt.io/qtcreator/creator-debugger-engines.html

                                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                                        1 Reply Last reply
                                        1
                                        • M Offline
                                          M Offline
                                          Mikeeeeee
                                          wrote on last edited by
                                          #30

                                          But i have SDK for Windows 10 (10.0.18362.0) from MSVC2019 and I instal this https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
                                          Qt does not automatically detect the debugger. How do I add a new debugger?

                                          JKSHJ 1 Reply Last reply
                                          0

                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved