[asterisk-bugs] [JIRA] (ASTERISK-24981) PJSIP: In-dialog NOTIFYs sent to private NAT IP address

Mark Michelson (JIRA) noreply at issues.asterisk.org
Mon Apr 20 14:32:32 CDT 2015


Mark Michelson created ASTERISK-24981:
-----------------------------------------

             Summary: PJSIP: In-dialog NOTIFYs sent to private NAT IP address
                 Key: ASTERISK-24981
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24981
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
            Reporter: Mark Michelson


When a device behind NAT creates a SUBSCRIBE dialog with Asterisk (and the rewrite_contact option is enabled), the initial SUBSCRIBE and NOTIFY transactions from Asterisk send traffic to the public IP address as expected. However, if the subscription state changes, requiring an in-dialog NOTIFY to be sent, Asterisk sends the NOTIFY to the private IP address instead.

This is due to the fact that when the 200 OK for the initial NOTIFY transaction arrives into Asterisk, {{res_pjsip_nat}} does not rewrite the contact as it is expected to. This results in the PJSIP dialog layer re-targeting the dialog to the private IP address since that IP address appears in the Contact header of the inbound 200 OK.



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



More information about the asterisk-bugs mailing list