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

    Asterisk behind pfsense (no sound)

    Scheduled Pinned Locked Moved pfSense Packages
    25 Posts 3 Posters 16.6k 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.
    • marcellocM
      marcelloc
      last edited by

      @luckman212:

      Has anyone ever asked  WHY its so difficult to make SIP work behind a pfSense NAT, compared to other routers?

      I have no problems with it.

      When using many sip devices behind any firewall, consider using sipproxy.

      RTP issue sample:
      You redirected ports from 17000 to 18000 to your sip server.
      Your second sip device received a call and remote server sent rtp to 17454. In this case you will have no audio and pfSense is not guilty.

      SIP issue sample:
      You redirected port 5060 to your sip server.
      Your second sip device registers at voip.com. When voip.com checks registration who will receive this info? Again pfSense is not guilty.

      Try to set different sip ports/rtp range to each sip server/device behind your firewall.

      :) Just remember that computers do what we tell them to do, not what we want to do. :)

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • S
        serialdie
        last edited by

        @marcelloc:

        @luckman212:

        Has anyone ever asked  WHY its so difficult to make SIP work behind a pfSense NAT, compared to other routers?

        I have no problems with it.

        When using many sip devices behind any firewall, consider using sipproxy.

        RTP issue sample:
        You redirected ports from 17000 to 18000 to your sip server.
        Your second sip device received a call and remote server sent rtp to 17454. In this case you will have no audio and pfSense is not guilty.

        SIP issue sample:
        You redirected port 5060 to your sip server.
        Your second sip device registers at voip.com. When voip.com checks registration who will receive this info? Again pfSense is not guilty.

        Try to set different sip ports/rtp range to each sip server/device behind your firewall.

        :) Just remember that computers do what we tell them to do, not what we want to do. :)

        I am going to make one more test over sip tonight and see how far I can get again. In my case its was only one device and I was still unable to get outgoing RTP to function properly.
        My sip devices talk to asterisk and than asterisk talks to my provider.

        I will reply back and see what are the results again.

        1 Reply Last reply Reply Quote 0
        • S
          serialdie
          last edited by

          @marcelloc:

          @luckman212:

          Has anyone ever asked  WHY its so difficult to make SIP work behind a pfSense NAT, compared to other routers?

          I have no problems with it.

          When using many sip devices behind any firewall, consider using sipproxy.

          RTP issue sample:
          You redirected ports from 17000 to 18000 to your sip server.
          Your second sip device received a call and remote server sent rtp to 17454. In this case you will have no audio and pfSense is not guilty.

          SIP issue sample:
          You redirected port 5060 to your sip server.
          Your second sip device registers at voip.com. When voip.com checks registration who will receive this info? Again pfSense is not guilty.

          Try to set different sip ports/rtp range to each sip server/device behind your firewall.

          :) Just remember that computers do what we tell them to do, not what we want to do. :)

          I am sorry but in pfsense sip is plain impossible. I just tried everything I can think of and nothing works!
          If you have your sip working behind your pfsense by all means please post your pfsense config and prove me wrong. but for now I stand by this. SIP is not possible behind pfsense.

          1 Reply Last reply Reply Quote 0
          • marcellocM
            marcelloc
            last edited by

            Do you need inbound calls?

            If don't you do not need any nat rule, just outbound.

            Treinamentos de Elite: http://sys-squad.com

            Help a community developer! ;D

            1 Reply Last reply Reply Quote 0
            • S
              serialdie
              last edited by

              @marcelloc:

              Do you need inbound calls?

              If don't you do not need any nat rule, just outbound.

              Somebody under general gave me some hints that made the registration possible. the issue has been that outbound is not possible.
              And I do need inbound and outbound.

              1 Reply Last reply Reply Quote 0
              • S
                serialdie
                last edited by

                @marcelloc:

                Do you need inbound calls?

                If don't you do not need any nat rule, just outbound.

                Look here and see if you can chime in:

                http://forum.pfsense.org/index.php/topic,41286.0.html

                Thanks!

                1 Reply Last reply Reply Quote 0
                • marcellocM
                  marcelloc
                  last edited by

                  can you bridge your router to have real ip at wan?

                  my setup is very simple:

                  provider–>real ip-->pfsense->--192.168.3.x ip->asterisk server.

                  nothing different from nat inbound ports and sip_nat.conf.

                  Treinamentos de Elite: http://sys-squad.com

                  Help a community developer! ;D

                  1 Reply Last reply Reply Quote 0
                  • S
                    serialdie
                    last edited by

                    Well I am back…. Here is what I can say... For an unknown reason I am not able to get SIP working over port 5060. As soon as I switch to 5080 everything started to work as it should. and no I have no other sip device except for my asterisk pbx.
                    odd.....

                    1 Reply Last reply Reply Quote 0
                    • marcellocM
                      marcelloc
                      last edited by

                      Great news!!!  :)

                      Some dsl routers has a 'sip Alg' option that break out sip comunication. I have no idea why.
                      Maybe you have something like that on you network.

                      Treinamentos de Elite: http://sys-squad.com

                      Help a community developer! ;D

                      1 Reply Last reply Reply Quote 0
                      • S
                        serialdie
                        last edited by

                        @marcelloc:

                        Great news!!!  :)

                        Some dsl routers has a 'sip Alg' option that break out sip comunication. I have no idea why.
                        Maybe you have something like that on you network.

                        Nope not here… I have cable... :) but its all resolved now.

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