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
QtWS25 Last Chance

How to connect Risip in Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
52 Posts 6 Posters 8.1k Views
  • 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 Offline
    M Offline
    Mikeeeeee
    wrote on last edited by
    #1

    Hi!
    Good afternoon. Found the Risip library - this, as I understand it, PJSIP collected for Qt. Please tell me how to connect Risip to the project? On the issue tracker, write "How to start using Radio in my project? Using Sip in your Qt / QML project is very easy and straightforward. Make sure you have Qt installed and running properly. Create your project with Qt Creator Inside your project folder, clone the ri sipvoipsdk repo. Edit the .profile of your project and add the following this line include(ri sipvoipsdk/ri sipvoipsdk.pri) on top."

    I created a project, named the folder with Risip rusip and placed it in the folder with the project. The project included r i sipvoipsdk.pri, but it didn't help. Here is my pro file:

    include(risip/risip-voipsdk.pri)
    
    QT       += core gui
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    TARGET = voipPjsipTest
    TEMPLATE = app
    
    # The following define makes your compiler emit warnings if you use
    # any feature of Qt which has been marked as deprecated (the exact warnings
    # depend on your compiler). Please consult the documentation of the
    # deprecated API in order to know how to port your code away from it.
    DEFINES += QT_DEPRECATED_WARNINGS
    
    # You can also make your code fail to compile if you use deprecated APIs.
    # In order to do so, uncomment the following line.
    # You can also select to disable deprecated APIs only up to a certain version of Qt.
    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
    
    CONFIG += c++11
    
    SOURCES += \
            main.cpp \
            mainwindow.cpp
    
    HEADERS += \
            mainwindow.h
    
    FORMS += \
            mainwindow.ui
    
    # Default rules for deployment.
    qnx: target.path = /tmp/$${TARGET}/bin
    else: unix:!android: target.path = /opt/$${TARGET}/bin
    !isEmpty(target.path): INSTALLS += target
    
    sierdzioS 1 Reply Last reply
    0
    • M Mikeeeeee

      Hi!
      Good afternoon. Found the Risip library - this, as I understand it, PJSIP collected for Qt. Please tell me how to connect Risip to the project? On the issue tracker, write "How to start using Radio in my project? Using Sip in your Qt / QML project is very easy and straightforward. Make sure you have Qt installed and running properly. Create your project with Qt Creator Inside your project folder, clone the ri sipvoipsdk repo. Edit the .profile of your project and add the following this line include(ri sipvoipsdk/ri sipvoipsdk.pri) on top."

      I created a project, named the folder with Risip rusip and placed it in the folder with the project. The project included r i sipvoipsdk.pri, but it didn't help. Here is my pro file:

      include(risip/risip-voipsdk.pri)
      
      QT       += core gui
      
      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
      
      TARGET = voipPjsipTest
      TEMPLATE = app
      
      # The following define makes your compiler emit warnings if you use
      # any feature of Qt which has been marked as deprecated (the exact warnings
      # depend on your compiler). Please consult the documentation of the
      # deprecated API in order to know how to port your code away from it.
      DEFINES += QT_DEPRECATED_WARNINGS
      
      # You can also make your code fail to compile if you use deprecated APIs.
      # In order to do so, uncomment the following line.
      # You can also select to disable deprecated APIs only up to a certain version of Qt.
      #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
      
      CONFIG += c++11
      
      SOURCES += \
              main.cpp \
              mainwindow.cpp
      
      HEADERS += \
              mainwindow.h
      
      FORMS += \
              mainwindow.ui
      
      # Default rules for deployment.
      qnx: target.path = /tmp/$${TARGET}/bin
      else: unix:!android: target.path = /opt/$${TARGET}/bin
      !isEmpty(target.path): INSTALLS += target
      
      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @Mikeeeeee said in How to connect Risip in Qt:

      The project included r i sipvoipsdk.pri, but it didn't help.

      Any warnings or error messages from qmake? Or during compilation?

      (Z(:^

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

        Can't find file pjsua2.hp. There are 4 such files in the library.

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Looks like their bug, then - get in touch with the author or try to fix yourself. Repo has no stable branch, no stable tags, so there is no safe commit to try out.

          (Z(:^

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

            The author was asked this question, but he did not answer.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Did you saw that there's a Qt app already available from the same folks ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - 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
                #7

                I saw. It doesn't compile either. Seems to be the case in Windows.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  So the backend hasn't been implemented on Windows ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Hi
                    well there seems not to have that missing file for windows anyway

                    alt text

                    However, 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.

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

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

                      mrjjM 1 Reply Last reply
                      0
                      • 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

                                          • Login

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