Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Voip app connected via openvpn when you start phone call the audio is not heard

    Scheduled Pinned Locked Moved OpenVPN
    11 Posts 3 Posters 1.3k Views
    Loading More Posts
    • 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.
    • ?
      A Former User
      last edited by

      Hi, my network is configured as in the image below
      1616259552371-1615925405054-1613066696267-1612911584563-img-20210209-wa0000.jpg

      The router has a PBX for DECT, IP, ISDN and analog.
      On pfsense I have configured a working openvpn server.
      There are 4 clients connected to the server with smartphones.
      The app for calling via voip is installed on each client smartphone.
      The problem is that the app connects but when they call a number the audio is not heard, I don't know how to solve the problem. You can help me? Thank you

      DaddyGoD 1 Reply Last reply Reply Quote 0
      • DaddyGoD
        DaddyGo @A Former User
        last edited by DaddyGo

        @antonio-briguglio said in Voip app connected via openvpn when you start phone call the audio is not heard:

        The router has a PBX for DECT, IP, ISDN and analog.

        Hi,

        The physical ports on the router are not relevant in this regard (PBX, ISDN, etc. for....)

        Does it matter more whether dual NAT is your configuration or not?
        Since you say router and no bridge then it's dual NAT

        VOIP works that way:

        SIP = Session Initiation Protocol,it performs registration and has NAT traversal capabilities, so phones register on the service provider's server

        RTP = Real-time Transport Protocol, it is responsible for voice transmission and is not NAT compatible

        So, if you have dual-NAT config, then RTP port(s) must be forwarded ๐Ÿ˜‰

        Cats bury it so they can't see it!
        (You know what I mean if you have a cat)

        ? JKnottJ 3 Replies Last reply Reply Quote 0
        • ?
          A Former User @DaddyGo
          last edited by

          @daddygo Hi,
          So what should I do?

          DaddyGoD 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @DaddyGo
            last edited by

            @daddygo the firewall is behind the router ....
            Sorry if I write badly in your language I am Sicilian and I have a bit of difficulty in understanding ...

            1 Reply Last reply Reply Quote 0
            • JKnottJ
              JKnott @DaddyGo
              last edited by

              @daddygo said in Voip app connected via openvpn when you start phone call the audio is not heard:

              VOIP works that way:
              SIP = Session Initiation Protocol,it performs registration and has NAT traversal capabilities, so phones register on the service provider's server
              RTP = Real-time Transport Protocol, it is responsible for voice transmission and is not NAT compatible
              So, if you have dual-NAT config, then RTP port(s) must be forwarded

              Also, SIP is TCP and RTP is UDP. UTP can sometimes be a problem, as it doesn't have a "connection" the way TCP does.

              PfSense running on Qotom mini PC
              i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
              UniFi AC-Lite access point

              I haven't lost my mind. It's around here...somewhere...

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @JKnott
                last edited by

                @jknott The problem is that the app connects but when they call a number the audio is not heard, I don't know how to solve the problem. You can help me? Thank you

                JKnottJ 1 Reply Last reply Reply Quote 0
                • DaddyGoD
                  DaddyGo @A Former User
                  last edited by DaddyGo

                  @antonio-briguglio said in Voip app connected via openvpn when you start phone call the audio is not heard:

                  So what should I do?

                  First, check your pfSense WAN IP address, if that RFC1918 a private address range, you have a dual NAT configuration.
                  (https://tools.ietf.org/html/rfc1918)

                  79e411a1-6a19-4c43-b827-10cb248a4380-image.png

                  You will then need to perform port forwardings in the router and firewall.

                  Examine the VOIP client software on your phones to see which RTP port(s) to use.

                  F.E: https://www.zoiper.com/en
                  https://www.zoiper.com/en/support/answer/for/windows/116/Ports
                  (Be careful not to set a random port for RTP !)

                  9b88e551-6e2e-437a-a961-cf472b15f51c-image.png

                  Then forward this / these port(s) as described above (in NGFW and router UDP!)

                  Example of the settings of an ATA VOIP adapter:

                  2fff6b77-655c-429b-b8a3-42c7687e66c5-image.png

                  +++edit:

                  Just a test if @JKnott already wants to test UDP so much: ๐Ÿ˜‰
                  Install say ZOIPER client or MicroSIP on a PC + Wireshark

                  the test on pfSense = Packet Captures and you will see everything.

                  https://www.zoiper.com/en
                  and / or
                  https://www.microsip.org/
                  https://www.wireshark.org/

                  pfSense: https://docs.netgate.com/pfsense/en/latest/diagnostics/packetcapture/webgui.html

                  Monitor the UDP traffic.
                  This test runs on a desktop computer, because it would be difficult to test on a phone(s), the desktop should be on the same network as the phones.

                  Cats bury it so they can't see it!
                  (You know what I mean if you have a cat)

                  ? 1 Reply Last reply Reply Quote 0
                  • JKnottJ
                    JKnott @A Former User
                    last edited by

                    @antonio-briguglio

                    That's why I pointed out the difference. The connection is establish using SIP, which is TCP. The audio is carried with RTP, which is UDP. That's a good place to start in resolving this.

                    PfSense running on Qotom mini PC
                    i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
                    UniFi AC-Lite access point

                    I haven't lost my mind. It's around here...somewhere...

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by

                      @jknott OK thanks

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @DaddyGo
                        last edited by

                        @daddygo OK thanks

                        DaddyGoD 1 Reply Last reply Reply Quote 0
                        • DaddyGoD
                          DaddyGo @A Former User
                          last edited by

                          @antonio-briguglio said in Voip app connected via openvpn when you start phone call the audio is not heard:

                          OK thanks

                          Just yell if you need something ๐Ÿ˜‰

                          Cats bury it so they can't see it!
                          (You know what I mean if you have a cat)

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.