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

One way RTP traffic

Scheduled Pinned Locked Moved NAT
2 Posts 2 Posters 1.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.
  • N
    Nigelh
    last edited by Feb 14, 2016, 2:20 AM

    Hi Guys,

    Hoping someone here might have some ideas around this one.

    I have set up an Asterisk PBX behind a Pfsense firewall. My internet IP is allocated to the WAN interface of the firewall with the Asterisk box being allocated a local network address.

    Soft phones within the local network or connecting to the network via OpenVPN are able to call each other without issues.

    The issue is that when a call is made to or received from remote soft phone that has registered with the PBX over the internet (no VPN) both the A and B parties hear dead air.
    Looking at a packet capture from the WAN interface of the Firewall (see attached) I can see the RTP stream from the internal softphone leaving the Firewall but no RTP packets are received from the remote party.

    Please note that the issue only happens with RTP packets, SIP packets (Register, Ack etc.) are sent and received without any issues.

    Thanks in advance

    Nigel

    [One way RTP.pcap](/public/imported_attachments/1/One way RTP.pcap)

    1 Reply Last reply Reply Quote 0
    • I
      iamzam
      last edited by Feb 14, 2016, 3:31 AM

      Rtp needs open ports for the return traffic.  Rtp.conf on the asterisk server is where you can define a range of ports to use such as UDP 10000-20000 . Then in pfsense create a WAN rule allowing the range in to your asterisk server.  This is in addition to 5060 for the SIP session and the NAT rule.  If both sides are behind NAT you will need a STUN server to assist with the connection I believe.

      http://linuxjournal.com/article/9399

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received