From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH v3 resend] netfilter: nf_conntrack_sip: Handle Cisco 7941/7945 IP phones Date: Thu, 26 May 2011 19:57:44 +0200 Message-ID: <1306432664.2543.2.camel@edumazet-laptop> References: <4DDE84F2.7080706@netfilter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Kevin Cernekee , Patrick McHardy , "David S. Miller" , netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org, coreteam@netfilter.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org To: Pablo Neira Ayuso Return-path: In-Reply-To: <4DDE84F2.7080706@netfilter.org> Sender: netfilter-devel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Le jeudi 26 mai 2011 =C3=A0 18:50 +0200, Pablo Neira Ayuso a =C3=A9crit= : > Hi Eric, >=20 > On 20/05/11 06:36, Kevin Cernekee wrote: > > Most SIP devices use a source port of 5060/udp on SIP requests, so = the > > response automatically comes back to port 5060: > >=20 > > phone_ip:5060 -> proxy_ip:5060 REGISTER > > proxy_ip:5060 -> phone_ip:5060 100 Trying > >=20 > > The newer Cisco IP phones, however, use a randomly chosen high sour= ce > > port for the SIP request but expect the response on port 5060: > >=20 > > phone_ip:49173 -> proxy_ip:5060 REGISTER > > proxy_ip:5060 -> phone_ip:5060 100 Trying > >=20 > > Standard Linux NAT, with or without nf_nat_sip, will send the reply= back > > to port 49173, not 5060: > >=20 > > phone_ip:49173 -> proxy_ip:5060 REGISTER > > proxy_ip:5060 -> phone_ip:49173 100 Trying > >=20 > > But the phone is not listening on 49173, so it will never see the r= eply. > >=20 > > This patch modifies nf_*_sip to work around this quirk by extractin= g > > the SIP response port from the Via: header, iff the source IP in th= e > > packet header matches the source IP in the SIP request. > >=20 > > Signed-off-by: Kevin Cernekee > > Acked-by: Eric Dumazet > > Cc: Patrick McHardy >=20 > @Eric: could you please confirm that you ack'ed this patch? I don't f= ind > the email with your explicit ack. Yes I did it ;) http://www.spinics.net/lists/netfilter/msg49632.html Thanks ! -- To unsubscribe from this list: send the line "unsubscribe netfilter-dev= el" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html