[asterisk-bugs] [JIRA] (ASTERISK-26656) PJSIP fails to handle NAT clients on multihomed boxes

Private Name (JIRA) noreply at issues.asterisk.org
Sat Dec 10 07:28:10 CST 2016


Private Name created ASTERISK-26656:
---------------------------------------

             Summary: PJSIP fails to handle NAT clients on multihomed boxes
                 Key: ASTERISK-26656
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26656
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_pjsip_multihomed
    Affects Versions: 13.12.2
         Environment: Linux 64
            Reporter: Private Name


In PJSIP, we have these 3 settings for an endpoint located behind a NAT
    rtp_symmetric - Send media to the address and port from which Asterisk receives it, regardless of where SDP indicates that it should be sent
    force_rport - Send responses to the source IP address and port as though port were present, even if it's not
    rewrite_contact - Rewrite SIP Contact to the source address and port of the request so that subsequent requests go to that address and port.

If the machine has one interface, PJSIP correctly determines the public IP of the client, rewrites the contact and sends RTP back to the public IP. If the machine has more than one network interface, on the same network (my case), then PJSIP gets confused and send the RTP to the private IP, this the client never gets the media.

All this can be seen with 
rtp set debug on

This issue has the tragic consequence of not allowing for any load balancing, since we can effectively have on single network interface.




--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list