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

Bryan Hunt (JIRA) noreply at issues.asterisk.org
Sun Dec 16 09:34:45 CST 2012


    [ https://issues.asterisk.org/jira/browse/ASTERISK-20805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=200751#comment-200751 ] 

Bryan Hunt commented on ASTERISK-20805:
---------------------------------------

Michael,

Do these look like the proper steps to apply this patch?

cd /usr/src/asterisk
w-g-e-t https://issues.asterisk.org/jira/secure/attachment/45744/asterisk-20805-notify-ip.diff
patch -p0 < asterisk-20805-notify-ip.diff
amportal stop
make clean
./configure
make
make install
amportal start

Thanks.

Bryan Hunt
                
> 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, 11.1.0
>         Environment: Centos 6.2 - 32bit
> PIAF Purple
> Freepbx 2.10.1.2
> EPM 
> Polycom IP331
>            Reporter: Bryan Hunt
>            Assignee: Bryan Hunt
>         Attachments: asterisk-20805-notify-ip.diff, full.txt
>
>
> 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.
> http://forums.digium.com/viewtopic.php?f=1&t=85080
> http://lists.digium.com/pipermail/asterisk-dev/2011-July/050271.html

--
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