[asterisk-bugs] [JIRA] (ASTERISK-20805) SIP Notify message has incorrect IP address in FROM field

Bryan Hunt (JIRA) noreply at issues.asterisk.org
Sat Dec 15 10:03:45 CST 2012


Bryan Hunt created ASTERISK-20805:
-------------------------------------

             Summary: SIP Notify message has incorrect IP address in FROM field
                 Key: ASTERISK-20805
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20805
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_sip/General
    Affects Versions: 1.8.11.1
         Environment: Centos 6.2 - 32bit
PIAF Purple
Freepbx 2.10.1.2
EPM 
Polycom IP331
            Reporter: Bryan Hunt


When sending a SIP Notify 'check-sync' to our IP331 phones, the FROM portion of the Notify message does not contain the IPv4 address of the Asterisk server's interface (to which the phone is registered).  The FROM instead contains something that looks like an IPV6 localhost address: 
   From: "Unknown" <sip:Unknown@[::1]>;tag=as567b56ba
The phones will not reboot, as the from message is not giving the server that the phone is registered to.

This can be worked-around by putting in the interface's IPV4 address in the bindaddress field.  The FROM then looks like this:
    From: "Unknown" <sip:Unknown at 172.16.99.218>;tag=as60768d2a
This message does cause the phone to be rebooted.

Unfortunately, setting the bindaddress will break any environment where SIP is used on two or more NIC interfaces.

I believe that the Asterisk server should determine the IP address of the egress NIC interface (or the IP address that the phone is registered to) and place that in the FROM field in the SIP Notify message.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list